/**
 * Beyblade X Game - Theme Stylesheet
 * Prefix: va2b-
 * Color Palette: #3CB371 | #8B0000 | #FF6347 | #0A0A0A | #FFB6C1
 */

/* === CSS Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #F0E6D8;
    background-color: #0A0A0A;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* === Header Styles === */
.va2b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 100%);
    border-bottom: 2px solid #3CB371;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 16px rgba(60, 179, 113, 0.25);
}

.va2b-logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.va2b-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3CB371;
}

.va2b-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #3CB371, #FFB6C1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.va2b-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.va2b-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.va2b-btn-register {
    background: linear-gradient(135deg, #3CB371, #2E8B57);
    color: #fff;
    box-shadow: 0 2px 10px rgba(60, 179, 113, 0.4);
}

.va2b-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(60, 179, 113, 0.55);
}

.va2b-btn-login {
    background: transparent;
    color: #FFB6C1;
    border: 1.5px solid #FFB6C1;
}

.va2b-btn-login:hover {
    background: rgba(255, 182, 193, 0.12);
    transform: translateY(-1px);
}

.va2b-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1.5px solid #3CB371;
    border-radius: 8px;
    cursor: pointer;
    color: #3CB371;
    font-size: 1.6rem;
    transition: all 0.25s ease;
}

.va2b-menu-toggle:hover {
    background: rgba(60, 179, 113, 0.12);
}

/* === Mobile Menu Overlay === */
#sitefa2-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.va2b-menu-open {
    overflow: hidden;
}

.va2b-mobile-menu-inner h3 {
    font-size: 1.6rem;
    color: #3CB371;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(60, 179, 113, 0.25);
}

.va2b-mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.35rem;
    color: #F0E6D8;
    border-bottom: 1px solid rgba(255, 182, 193, 0.08);
    transition: color 0.2s ease;
}

.va2b-mobile-nav-link:hover {
    color: #3CB371;
}

.va2b-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: #FF6347;
    cursor: pointer;
    padding: 0.4rem;
}

/* === Main Content Area === */
.va2b-main {
    margin-top: 56px;
    padding: 1.2rem;
    min-height: calc(100vh - 56px);
}

@media (max-width: 768px) {
    .va2b-main {
        padding-bottom: 90px;
    }
}

/* === Hero Section === */
.va2b-hero {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(60, 179, 113, 0.2);
    position: relative;
    overflow: hidden;
}

.va2b-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(60, 179, 113, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.va2b-hero-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.va2b-hero-title span {
    color: #3CB371;
}

.va2b-hero-desc {
    font-size: 1.2rem;
    color: #B8A99A;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    max-width: 95%;
}

.va2b-hero-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #FF6347, #8B0000);
    color: #fff;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 14px rgba(255, 99, 71, 0.35);
}

.va2b-hero-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 22px rgba(255, 99, 71, 0.5);
}

/* === Section Titles === */
.va2b-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 4px solid #3CB371;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.va2b-section-title i {
    color: #FF6347;
    font-size: 1.4rem;
}

/* === Category Tabs === */
.va2b-cat-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.4rem;
}

.va2b-cat-tabs::-webkit-scrollbar {
    display: none;
}

.va2b-cat-tab {
    flex-shrink: 0;
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(26, 26, 46, 0.8);
    color: #B8A99A;
    border: 1px solid rgba(60, 179, 113, 0.15);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.va2b-cat-tab:hover {
    border-color: #3CB371;
    color: #3CB371;
}

.va2b-cat-tab.va2b-active {
    background: linear-gradient(135deg, #3CB371, #2E8B57);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(60, 179, 113, 0.35);
}

/* === Game Grid === */
.va2b-game-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.va2b-game-card {
    background: linear-gradient(145deg, #1a1a2e, #16162a);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(60, 179, 113, 0.12);
    transition: all 0.28s ease;
    cursor: pointer;
}

.va2b-game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(60, 179, 113, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.va2b-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.va2b-game-name {
    padding: 0.5rem 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #F0E6D8;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Feature Cards === */
.va2b-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.va2b-feature-card {
    background: linear-gradient(145deg, #1a1a2e, #12121f);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    border: 1px solid rgba(139, 0, 0, 0.2);
    text-align: center;
    transition: all 0.28s ease;
}

.va2b-feature-card:hover {
    border-color: #8B0000;
    transform: translateY(-2px);
}

.va2b-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #FF6347;
}

.va2b-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFB6C1;
    margin-bottom: 0.3rem;
}

.va2b-feature-desc {
    font-size: 1rem;
    color: #8A8078;
    line-height: 1.45;
}

/* === Content Text Blocks === */
.va2b-content-block {
    background: linear-gradient(145deg, #14142a, #0e0e1c);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(60, 179, 113, 0.1);
}

.va2b-content-block h2 {
    font-size: 1.45rem;
    color: #3CB371;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.va2b-content-block p {
    font-size: 1.25rem;
    color: #B8A99A;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.va2b-content-block ul {
    padding-left: 1.2rem;
}

.va2b-content-block li {
    font-size: 1.2rem;
    color: #B8A99A;
    line-height: 1.65;
    margin-bottom: 0.5rem;
    list-style: disc;
}

.va2b-inline-link {
    color: #3CB371;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.va2b-inline-link:hover {
    color: #FF6347;
}

/* === Footer === */
.va2b-footer {
    background: linear-gradient(180deg, #0d0d1a 0%, #070710 100%);
    border-top: 1px solid rgba(60, 179, 113, 0.15);
    padding: 2rem 1.2rem 6rem;
    text-align: center;
}

.va2b-footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #3CB371;
    margin-bottom: 0.8rem;
}

.va2b-footer-text {
    font-size: 1.05rem;
    color: #6A6058;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.va2b-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    margin-bottom: 1.2rem;
}

.va2b-footer-links a {
    font-size: 1.05rem;
    color: #8A8078;
    transition: color 0.2s ease;
}

.va2b-footer-links a:hover {
    color: #3CB371;
}

.va2b-footer-disclaimer {
    font-size: 0.95rem;
    color: #5A5048;
    line-height: 1.55;
    border-top: 1px solid rgba(255, 182, 193, 0.06);
    padding-top: 1rem;
}

/* === Mobile Bottom Navigation === */
.va2b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #0d0d1a 0%, #0a0a14 98%, #3CB371 100%);
    border-top: 2px solid rgba(60, 179, 113, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 62px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.va2b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 58px;
    cursor: pointer;
    border: none;
    background: none;
    color: #8A8078;
    transition: all 0.25s ease;
    padding: 0.3rem;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.va2b-nav-item::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FF6347;
    transition: transform 0.25s ease;
}

.va2b-nav-item:hover,
.va2b-nav-item.va2b-active {
    color: #3CB371;
}

.va2b-nav-item:hover::after,
.va2b-nav-item.va2b-active::after {
    transform: translateX(-50%) scale(1);
}

.va2b-nav-icon {
    font-size: 1.5rem !important;
    line-height: 1;
    margin-bottom: 2px;
    transition: transform 0.25s ease;
}

.va2b-nav-item:hover .va2b-nav-icon {
    transform: scale(1.15) rotate(-5deg);
}

.va2b-nav-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .va2b-bottom-nav {
        display: none;
    }

    .va2b-main {
        padding-bottom: 2rem;
    }
}

/* === Responsive Adjustments === */
@media (max-width: 380px) {
    .va2b-logo-text {
        font-size: 1.25rem;
    }

    .va2b-btn {
        padding: 0.48rem 0.85rem;
        font-size: 1.05rem;
    }

    .va2b-hero-title {
        font-size: 1.55rem;
    }

    .va2b-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .va2b-feature-list {
        grid-template-columns: 1fr;
    }
}

/* === Utility Classes === */
.va2b-text-center { text-align: center; }
.va2b-mt-1 { margin-top: 1rem; }
.va2b-mb-1 { margin-bottom: 1rem; }
.va2b-highlight { color: #3CB371; font-weight: 700; }
.va2b-danger { color: #FF6347; }
.va2b-pink { color: #FFB6C1; }

/* === Animation Keyframes === */
@keyframes va2b-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

@keyframes va2b-slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
