/**
 * 6win Gaming Platform - Main Stylesheet
 * Prefix: g6d2-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --g6d2-primary: #ffd700;
    --g6d2-primary-dark: #c9a800;
    --g6d2-secondary: #1a1a2e;
    --g6d2-accent: #e94560;
    --g6d2-dark: #0f0f1a;
    --g6d2-darker: #070710;
    --g6d2-light: #ffffff;
    --g6d2-gray: #8a8a9a;
    --g6d2-gray-dark: #4a4a5a;
    --g6d2-success: #00d26a;
    --g6d2-gradient: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    --g6d2-gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    --g6d2-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --g6d2-shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.3);
    --g6d2-radius: 12px;
    --g6d2-radius-sm: 8px;
    --g6d2-transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--g6d2-darker);
    color: var(--g6d2-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.g6d2-menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--g6d2-transition);
}

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

ul, ol {
    list-style: none;
}

/* Container */
.g6d2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.g6d2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: var(--g6d2-transition);
}

.g6d2-header.g6d2-scrolled {
    background: rgba(7, 7, 16, 0.98);
    box-shadow: var(--g6d2-shadow);
}

.g6d2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.g6d2-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g6d2-logo img {
    height: 40px;
    width: auto;
}

.g6d2-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--g6d2-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g6d2-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.g6d2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--g6d2-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--g6d2-transition);
}

.g6d2-btn-primary {
    background: var(--g6d2-gradient);
    color: var(--g6d2-dark);
}

.g6d2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--g6d2-shadow-gold);
}

.g6d2-btn-outline {
    background: transparent;
    color: var(--g6d2-primary);
    border: 2px solid var(--g6d2-primary);
}

.g6d2-btn-outline:hover {
    background: var(--g6d2-primary);
    color: var(--g6d2-dark);
}

.g6d2-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--g6d2-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Desktop Navigation */
.g6d2-nav-desktop {
    display: flex;
    align-items: center;
    gap: 24px;
}

.g6d2-nav-desktop a {
    color: var(--g6d2-gray);
    font-weight: 500;
    position: relative;
}

.g6d2-nav-desktop a:hover {
    color: var(--g6d2-primary);
}

.g6d2-nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--g6d2-primary);
    transition: var(--g6d2-transition);
}

.g6d2-nav-desktop a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.g6d2-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.g6d2-menu-overlay.g6d2-active {
    display: block;
    opacity: 1;
}

#app826-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--g6d2-secondary);
    z-index: 9999;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#app826-mobile-menu.g6d2-active {
    right: 0;
}

.g6d2-mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--g6d2-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.g6d2-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g6d2-mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--g6d2-light);
    border-radius: var(--g6d2-radius-sm);
    transition: var(--g6d2-transition);
}

.g6d2-mobile-nav a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--g6d2-primary);
}

/* Hero Section */
.g6d2-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--g6d2-gradient-dark);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.g6d2-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.g6d2-hero-content {
    text-align: center;
    padding: 40px 16px;
    position: relative;
    z-index: 1;
}

.g6d2-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--g6d2-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g6d2-hero-subtitle {
    font-size: 1.1rem;
    color: var(--g6d2-gray);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.g6d2-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* Section Styles */
.g6d2-section {
    padding: 60px 0;
}

.g6d2-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--g6d2-light);
}

.g6d2-section-title span {
    color: var(--g6d2-primary);
}

/* Game Grid */
.g6d2-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.g6d2-game-card {
    background: var(--g6d2-secondary);
    border-radius: var(--g6d2-radius);
    overflow: hidden;
    transition: var(--g6d2-transition);
    cursor: pointer;
}

.g6d2-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--g6d2-shadow);
}

.g6d2-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g6d2-game-card-title {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--g6d2-light);
    background: rgba(0, 0, 0, 0.3);
}

/* Category Tabs */
.g6d2-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.g6d2-tab-btn {
    padding: 10px 20px;
    background: var(--g6d2-secondary);
    border: 1px solid var(--g6d2-gray-dark);
    border-radius: var(--g6d2-radius-sm);
    color: var(--g6d2-gray);
    font-weight: 500;
    cursor: pointer;
    transition: var(--g6d2-transition);
}

.g6d2-tab-btn:hover,
.g6d2-tab-btn.g6d2-active {
    background: var(--g6d2-primary);
    color: var(--g6d2-dark);
    border-color: var(--g6d2-primary);
}

.g6d2-tab-content {
    display: none;
}

.g6d2-tab-content.g6d2-active {
    display: block;
}

/* Features Section */
.g6d2-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.g6d2-feature-card {
    background: var(--g6d2-secondary);
    padding: 24px;
    border-radius: var(--g6d2-radius);
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: var(--g6d2-transition);
}

.g6d2-feature-card:hover {
    border-color: var(--g6d2-primary);
}

.g6d2-feature-icon {
    font-size: 2.5rem;
    color: var(--g6d2-primary);
    margin-bottom: 16px;
}

.g6d2-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.g6d2-feature-desc {
    font-size: 0.9rem;
    color: var(--g6d2-gray);
}

/* Footer */
.g6d2-footer {
    background: var(--g6d2-secondary);
    padding: 40px 0 100px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.g6d2-footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.g6d2-footer-section h4 {
    color: var(--g6d2-primary);
    font-size: 1rem;
    margin-bottom: 16px;
}

.g6d2-footer-section p,
.g6d2-footer-section a {
    color: var(--g6d2-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

.g6d2-footer-section a:hover {
    color: var(--g6d2-primary);
}

.g6d2-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g6d2-footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.g6d2-footer-partners img {
    height: 30px;
    opacity: 0.6;
    transition: var(--g6d2-transition);
}

.g6d2-footer-partners img:hover {
    opacity: 1;
}

.g6d2-footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.g6d2-footer-bottom p {
    color: var(--g6d2-gray);
    font-size: 0.85rem;
}

/* Mobile Bottom Navigation */
.g6d2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 26, 0.99) 100%);
    border-top: 2px solid var(--g6d2-primary);
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.g6d2-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 48px;
    padding: 4px 8px;
    color: var(--g6d2-gray);
    transition: var(--g6d2-transition);
    cursor: pointer;
    border-radius: var(--g6d2-radius-sm);
}

.g6d2-bottom-nav-item:hover,
.g6d2-bottom-nav-item.g6d2-active {
    color: var(--g6d2-primary);
    background: rgba(255, 215, 0, 0.1);
}

.g6d2-bottom-nav-item i,
.g6d2-bottom-nav-item .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.g6d2-bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Back to Top */
.g6d2-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: var(--g6d2-primary);
    color: var(--g6d2-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--g6d2-transition);
    z-index: 999;
    box-shadow: var(--g6d2-shadow-gold);
}

.g6d2-back-to-top.g6d2-visible {
    opacity: 1;
    visibility: visible;
}

.g6d2-back-to-top:hover {
    transform: translateY(-4px);
}

/* Toast Notification */
.g6d2-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--g6d2-success);
    color: var(--g6d2-light);
    padding: 12px 24px;
    border-radius: var(--g6d2-radius-sm);
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.g6d2-toast.g6d2-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Content Styles */
.g6d2-content {
    padding: 100px 0 40px;
}

.g6d2-content h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--g6d2-primary);
}

.g6d2-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--g6d2-light);
}

.g6d2-content h3 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    color: var(--g6d2-light);
}

.g6d2-content p {
    margin-bottom: 16px;
    color: var(--g6d2-gray);
    line-height: 1.8;
}

.g6d2-content ul,
.g6d2-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.g6d2-content li {
    margin-bottom: 8px;
    color: var(--g6d2-gray);
    line-height: 1.6;
}

.g6d2-content a {
    color: var(--g6d2-primary);
    text-decoration: underline;
}

.g6d2-content a:hover {
    color: var(--g6d2-primary-dark);
}

/* Promo Banner */
.g6d2-promo-banner {
    background: var(--g6d2-gradient);
    padding: 16px;
    border-radius: var(--g6d2-radius);
    text-align: center;
    margin: 24px 0;
}

.g6d2-promo-banner p {
    color: var(--g6d2-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

/* Desktop Responsive */
@media (min-width: 769px) {
    .g6d2-bottom-nav {
        display: none;
    }

    .g6d2-footer {
        padding-bottom: 40px;
    }

    .g6d2-hero-title {
        font-size: 3.5rem;
    }

    .g6d2-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .g6d2-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .g6d2-footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .g6d2-back-to-top {
        bottom: 24px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .g6d2-nav-desktop {
        display: none;
    }

    .g6d2-menu-toggle {
        display: block;
    }

    main {
        padding-bottom: 80px;
    }

    .g6d2-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .g6d2-hero-title {
        font-size: 2rem;
    }

    .g6d2-section {
        padding: 40px 0;
    }

    .g6d2-section-title {
        font-size: 1.5rem;
    }

    .g6d2-content {
        padding: 80px 0 40px;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .g6d2-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utility Classes */
.g6d2-text-center {
    text-align: center;
}

.g6d2-mb-0 {
    margin-bottom: 0;
}

.g6d2-mb-1 {
    margin-bottom: 8px;
}

.g6d2-mb-2 {
    margin-bottom: 16px;
}

.g6d2-mb-3 {
    margin-bottom: 24px;
}

.g6d2-mb-4 {
    margin-bottom: 32px;
}

.g6d2-hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .g6d2-hidden-mobile {
        display: block;
    }

    .g6d2-hidden-desktop {
        display: none;
    }
}
