/**
 * 9999 Game - Main Stylesheet
 * Class prefix: g3a7-
 * CSS variables: --g3a7-*
 */

:root {
    --g3a7-primary: #5F9EA0;
    --g3a7-accent: #00CED1;
    --g3a7-bg-dark: #000080;
    --g3a7-bg-mid: #212F3D;
    --g3a7-text-light: #F0F8FF;
    --g3a7-text-muted: #E0FFFF;
    --g3a7-border: rgba(0, 206, 209, 0.25);
    --g3a7-card-bg: #1a2740;
    --g3a7-shadow: rgba(0, 206, 209, 0.15);
    --g3a7-radius: 12px;
    --g3a7-font: 'Noto Sans Bengali', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--g3a7-font);
    background: var(--g3a7-bg-dark);
    color: var(--g3a7-text-light);
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

/* ========== HEADER ========== */
.g3a7-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, #000060 0%, #212F3D 100%);
    z-index: 1000;
    padding: 8px 12px;
    border-bottom: 1px solid var(--g3a7-border);
    backdrop-filter: blur(10px);
}

.g3a7-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.g3a7-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.g3a7-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.g3a7-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--g3a7-accent);
    letter-spacing: 0.5px;
}

.g3a7-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.g3a7-btn-login,
.g3a7-btn-register {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--g3a7-font);
    transition: all 0.3s ease;
}

.g3a7-btn-login {
    background: transparent;
    color: var(--g3a7-accent);
    border: 1.5px solid var(--g3a7-accent);
}

.g3a7-btn-login:hover {
    background: rgba(0, 206, 209, 0.15);
}

.g3a7-btn-register {
    background: linear-gradient(135deg, #00CED1, #5F9EA0);
    color: #000080;
    font-weight: 700;
}

.g3a7-btn-register:hover {
    background: linear-gradient(135deg, #5F9EA0, #00CED1);
    transform: scale(1.03);
}

.g3a7-menu-toggle {
    background: none;
    border: none;
    color: var(--g3a7-accent);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

/* ========== MOBILE MENU ========== */
.g3a7-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #000060 0%, #212F3D 100%);
    z-index: 9999;
    transition: right 0.35s ease;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.g3a7-mobile-menu.g3a7-menu-active {
    right: 0;
}

.g3a7-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.g3a7-menu-overlay.g3a7-overlay-active {
    opacity: 1;
    pointer-events: auto;
}

.g3a7-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--g3a7-accent);
    font-size: 24px;
    cursor: pointer;
}

.g3a7-menu-link {
    display: block;
    padding: 14px 0;
    color: var(--g3a7-text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 206, 209, 0.12);
    transition: color 0.2s;
}

.g3a7-menu-link:hover {
    color: var(--g3a7-accent);
}

/* ========== CAROUSEL ========== */
.g3a7-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--g3a7-radius);
    margin-top: 64px;
    cursor: pointer;
}

.g3a7-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.g3a7-carousel-slide {
    min-width: 100%;
    aspect-ratio: 16/9;
}

.g3a7-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g3a7-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.g3a7-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(240, 248, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.g3a7-carousel-dot.g3a7-dot-active {
    background: var(--g3a7-accent);
    width: 22px;
    border-radius: 4px;
}

/* ========== MAIN CONTENT ========== */
.g3a7-main {
    padding: 12px;
    padding-bottom: 80px;
}

.g3a7-section {
    margin-bottom: 24px;
}

.g3a7-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--g3a7-text-light);
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 3px solid var(--g3a7-accent);
}

/* ========== CATEGORY TABS ========== */
.g3a7-cat-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.g3a7-cat-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--g3a7-bg-mid);
    color: var(--g3a7-text-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s;
    font-family: var(--g3a7-font);
}

.g3a7-cat-tab.g3a7-tab-active,
.g3a7-cat-tab:hover {
    background: linear-gradient(135deg, #00CED1, #5F9EA0);
    color: #000080;
    border-color: var(--g3a7-accent);
}

/* ========== GAME GRID ========== */
.g3a7-game-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.g3a7-game-grid.g3a7-grid-active {
    display: grid;
}

.g3a7-game-item {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.g3a7-game-item:hover {
    transform: scale(1.05);
}

.g3a7-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--g3a7-border);
    margin-bottom: 4px;
}

.g3a7-game-name {
    font-size: 11px;
    color: var(--g3a7-text-muted);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== CONTENT MODULES ========== */
.g3a7-module {
    background: var(--g3a7-card-bg);
    border-radius: var(--g3a7-radius);
    padding: 20px 16px;
    border: 1px solid var(--g3a7-border);
}

.g3a7-module h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--g3a7-accent);
    margin-bottom: 12px;
}

.g3a7-module h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--g3a7-text-light);
    margin-bottom: 8px;
}

.g3a7-module p {
    font-size: 14px;
    color: var(--g3a7-text-muted);
    margin-bottom: 10px;
    line-height: 1.7;
}

.g3a7-module ul {
    padding-left: 18px;
    margin-bottom: 10px;
}

.g3a7-module li {
    font-size: 14px;
    color: var(--g3a7-text-muted);
    margin-bottom: 6px;
    line-height: 1.6;
}

.g3a7-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #00CED1, #5F9EA0);
    color: #000080;
    font-weight: 700;
    font-size: 15px;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--g3a7-font);
    transition: all 0.3s;
}

.g3a7-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--g3a7-shadow);
}

/* ========== FEATURE CARDS ========== */
.g3a7-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.g3a7-feature-card {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.1), rgba(95, 158, 160, 0.08));
    border: 1px solid var(--g3a7-border);
    border-radius: var(--g3a7-radius);
    padding: 16px 12px;
    text-align: center;
}

.g3a7-feature-card i {
    font-size: 28px;
    color: var(--g3a7-accent);
    margin-bottom: 8px;
    display: block;
}

.g3a7-feature-card span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--g3a7-text-light);
}

/* ========== FOOTER ========== */
.g3a7-footer {
    background: linear-gradient(180deg, #212F3D, #000060);
    padding: 24px 16px 16px;
    border-top: 1px solid var(--g3a7-border);
}

.g3a7-footer-logo {
    text-align: center;
    margin-bottom: 16px;
}

.g3a7-footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--g3a7-accent);
}

.g3a7-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-bottom: 16px;
}

.g3a7-footer-links a {
    color: var(--g3a7-text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.g3a7-footer-links a:hover {
    color: var(--g3a7-accent);
}

.g3a7-footer-copy {
    text-align: center;
    font-size: 11px;
    color: rgba(224, 255, 255, 0.5);
    padding-top: 12px;
    border-top: 1px solid rgba(0, 206, 209, 0.1);
}

/* ========== BOTTOM NAVIGATION ========== */
.g3a7-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 62px;
    background: linear-gradient(135deg, #000060, #212F3D);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--g3a7-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.g3a7-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: rgba(224, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--g3a7-font);
    position: relative;
}

.g3a7-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--g3a7-accent);
    transition: width 0.25s;
}

.g3a7-nav-btn:hover::before,
.g3a7-nav-btn.g3a7-nav-active::before {
    width: 70%;
}

.g3a7-nav-btn:hover,
.g3a7-nav-btn.g3a7-nav-active {
    color: var(--g3a7-accent);
}

.g3a7-nav-btn i,
.g3a7-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.g3a7-nav-label {
    font-size: 10px;
    font-weight: 600;
}

/* ========== SCROLL TO TOP ========== */
.g3a7-scroll-top {
    position: fixed;
    bottom: 74px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00CED1, #5F9EA0);
    color: #000080;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 2px 12px var(--g3a7-shadow);
}

.g3a7-scroll-top.g3a7-scroll-visible {
    opacity: 1;
    pointer-events: auto;
}

.g3a7-scroll-top:hover {
    transform: scale(1.1);
}

/* ========== PAGE CONTENT ========== */
.g3a7-page-hero {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.15), rgba(95, 158, 160, 0.1));
    padding: 20px 16px;
    border-radius: var(--g3a7-radius);
    margin-bottom: 20px;
    border: 1px solid var(--g3a7-border);
}

.g3a7-page-hero h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--g3a7-accent);
    margin-bottom: 8px;
}

.g3a7-content-block {
    margin-bottom: 20px;
}

.g3a7-content-block h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--g3a7-text-light);
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid var(--g3a7-accent);
}

.g3a7-content-block p {
    font-size: 14px;
    color: var(--g3a7-text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

.g3a7-content-block ul,
.g3a7-content-block ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.g3a7-content-block li {
    font-size: 14px;
    color: var(--g3a7-text-muted);
    margin-bottom: 6px;
    line-height: 1.7;
}

/* ========== TESTIMONIAL CARDS ========== */
.g3a7-testimonial {
    background: var(--g3a7-card-bg);
    border-radius: var(--g3a7-radius);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--g3a7-border);
}

.g3a7-testimonial-name {
    font-weight: 700;
    color: var(--g3a7-accent);
    margin-bottom: 6px;
    font-size: 14px;
}

.g3a7-testimonial-text {
    font-size: 13px;
    color: var(--g3a7-text-muted);
    line-height: 1.6;
    font-style: italic;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 769px) {
    .g3a7-bottom-nav {
        display: none;
    }
}

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

/* ========== UTILITY ========== */
.g3a7-text-center { text-align: center; }
.g3a7-mt-12 { margin-top: 12px; }
.g3a7-mb-12 { margin-bottom: 12px; }
.g3a7-mb-20 { margin-bottom: 20px; }
