/**
 * SG77 - Design CSS
 * Mobile-first gaming platform styles
 * All classes prefixed with g910-
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --g910-primary: #FF9500;
    --g910-secondary: #FFD700;
    --g910-accent: #90EE90;
    --g910-bg: #0A0A0A;
    --g910-bg-dark: #111111;
    --g910-bg-card: #1A1A1A;
    --g910-text: #FFFFFF;
    --g910-text-muted: #CCCCCC;
    --g910-border: #333333;
    --g910-gradient: linear-gradient(135deg, #FF9500 0%, #FFD700 100%);
    --g910-shadow: 0 4px 20px rgba(255, 149, 0, 0.3);
    --g910-transition: all 0.3s ease;
    --g910-max-width: 430px;
    --g910-header-height: 60px;
    --g910-bottom-nav-height: 64px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--g910-bg);
    color: var(--g910-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--g910-transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--g910-transition);
}

ul, ol {
    list-style: none;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.g910-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--g910-header-height);
    background: var(--g910-bg-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    border-bottom: 1px solid var(--g910-border);
    transition: var(--g910-transition);
}

.g910-header.g910-header-scrolled {
    box-shadow: var(--g910-shadow);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.g910-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--g910-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g910-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.g910-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--g910-transition);
    min-width: 80px;
}

.g910-btn-register {
    background: var(--g910-gradient);
    color: var(--g910-bg);
}

.g910-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--g910-shadow);
}

.g910-btn-login {
    background: transparent;
    color: var(--g910-primary);
    border: 2px solid var(--g910-primary);
}

.g910-btn-login:hover {
    background: var(--g910-primary);
    color: var(--g910-bg);
}

.g910-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10001;
}

.g910-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--g910-primary);
    border-radius: 2px;
    transition: var(--g910-transition);
}

.g910-menu-toggle.g910-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.g910-menu-toggle.g910-active span:nth-child(2) {
    opacity: 0;
}

.g910-menu-toggle.g910-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.g910-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--g910-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 0 20px;
    overflow-y: auto;
    border-left: 1px solid var(--g910-border);
}

.g910-mobile-menu.g910-menu-open {
    right: 0;
}

.g910-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--g910-transition);
}

.g910-mobile-menu.g910-menu-open + .g910-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.g910-menu-nav {
    padding: 0 20px;
}

.g910-menu-nav li {
    margin-bottom: 5px;
}

.g910-menu-nav a {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--g910-text);
    border-left: 3px solid transparent;
    transition: var(--g910-transition);
}

.g910-menu-nav a:hover {
    background: var(--g910-bg-card);
    border-left-color: var(--g910-primary);
    color: var(--g910-primary);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.g910-main {
    margin-top: var(--g910-header-height);
    min-height: calc(100vh - var(--g910-header-height) - var(--g910-bottom-nav-height));
}

@media (max-width: 768px) {
    .g910-main {
        padding-bottom: 80px;
    }
}

.g910-container {
    max-width: var(--g910-max-width);
    margin: 0 auto;
    padding: 20px 15px;
}

/* ========================================
   CAROUSEL
   ======================================== */
.g910-carousel {
    position: relative;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--g910-shadow);
}

.g910-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.g910-carousel-slide {
    min-width: 100%;
    position: relative;
}

.g910-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.g910-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.g910-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--g910-transition);
}

.g910-carousel-dot.g910-active {
    background: var(--g910-primary);
    transform: scale(1.2);
}

/* ========================================
   PAGE TITLE
   ======================================== */
.g910-page-title {
    text-align: center;
    margin-bottom: 30px;
}

.g910-page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--g910-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.g910-page-title p {
    color: var(--g910-text-muted);
    font-size: 0.95rem;
}

/* ========================================
   GAME GRID
   ======================================== */
.g910-game-section {
    margin-bottom: 40px;
}

.g910-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--g910-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.g910-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--g910-gradient);
    border-radius: 2px;
}

.g910-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.g910-game-card {
    background: var(--g910-bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--g910-transition);
    border: 1px solid var(--g910-border);
}

.g910-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--g910-primary);
    box-shadow: var(--g910-shadow);
}

.g910-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g910-game-card-title {
    padding: 8px 5px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--g910-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   CONTENT MODULES
   ======================================== */
.g910-content-module {
    background: var(--g910-bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--g910-border);
}

.g910-module-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--g910-accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.g910-module-content {
    color: var(--g910-text-muted);
    line-height: 1.8;
}

.g910-module-content p {
    margin-bottom: 12px;
}

.g910-module-content ul {
    list-style: disc;
    padding-left: 20px;
}

.g910-module-content li {
    margin-bottom: 8px;
}

/* ========================================
   FAQ ITEMS
   ======================================== */
.g910-faq-item {
    background: var(--g910-bg-dark);
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--g910-border);
    overflow: hidden;
}

.g910-faq-question {
    padding: 15px;
    font-weight: 600;
    color: var(--g910-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--g910-transition);
}

.g910-faq-question:hover {
    background: var(--g910-bg-card);
    color: var(--g910-primary);
}

.g910-faq-answer {
    padding: 0 15px 15px;
    color: var(--g910-text-muted);
    line-height: 1.7;
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.g910-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.g910-feature-card {
    background: var(--g910-bg-dark);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--g910-border);
    transition: var(--g910-transition);
}

.g910-feature-card:hover {
    border-color: var(--g910-primary);
    transform: translateY(-3px);
}

.g910-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--g910-accent);
}

.g910-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--g910-text);
    margin-bottom: 8px;
}

.g910-feature-desc {
    font-size: 0.85rem;
    color: var(--g910-text-muted);
    line-height: 1.5;
}

/* ========================================
   BOTTOM NAVIGATION
   ======================================== */
.g910-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--g910-bottom-nav-height);
    background: var(--g910-bg-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--g910-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.g910-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--g910-text-muted);
    font-size: 0.7rem;
    gap: 4px;
    transition: var(--g910-transition);
    border-radius: 8px;
    margin: 5px;
}

.g910-bottom-nav-item.g910-active,
.g910-bottom-nav-item:hover {
    color: var(--g910-primary);
    background: rgba(255, 149, 0, 0.1);
}

.g910-bottom-nav-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .g910-bottom-nav {
        display: none;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.g910-footer {
    background: var(--g910-bg-dark);
    padding: 40px 15px 100px;
    border-top: 1px solid var(--g910-border);
}

.g910-footer-section {
    max-width: var(--g910-max-width);
    margin: 0 auto;
}

.g910-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.g910-footer-link {
    padding: 8px 16px;
    background: var(--g910-bg-card);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--g910-text-muted);
    border: 1px solid var(--g910-border);
    transition: var(--g910-transition);
}

.g910-footer-link:hover {
    background: var(--g910-primary);
    color: var(--g910-bg);
    border-color: var(--g910-primary);
}

.g910-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.g910-partner-logo {
    width: 60px;
    height: 40px;
    background: var(--g910-bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--g910-border);
}

.g910-copyright {
    text-align: center;
    color: var(--g910-text-muted);
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid var(--g910-border);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.g910-text-center {
    text-align: center;
}

.g910-text-gradient {
    background: var(--g910-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g910-mt-1 { margin-top: 10px; }
.g910-mt-2 { margin-top: 20px; }
.g910-mt-3 { margin-top: 30px; }
.g910-mb-1 { margin-bottom: 10px; }
.g910-mb-2 { margin-bottom: 20px; }
.g910-mb-3 { margin-bottom: 30px; }

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 380px) {
    .g910-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .g910-section-title {
        font-size: 1.3rem;
    }

    .g910-page-title h1 {
        font-size: 1.75rem;
    }
}

@media (min-width: 769px) {
    .g910-main {
        padding-bottom: 40px;
    }

    .g910-container {
        max-width: 1200px;
    }

    .g910-game-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .g910-footer {
        padding-bottom: 40px;
    }

    .g910-menu-toggle {
        display: none;
    }

    .g910-desktop-nav {
        display: flex;
        gap: 20px;
    }

    .g910-desktop-nav a {
        color: var(--g910-text-muted);
        font-size: 0.9rem;
        transition: var(--g910-transition);
    }

    .g910-desktop-nav a:hover {
        color: var(--g910-primary);
    }
}
