/**
 * X7Game - Main Stylesheet
 * Website: x7game.sbs
 * CSS Prefix: w678d-
 * Version: 1.0.0
 */

/* ========================================
   CSS Variables & Root Configuration
   ======================================== */
:root {
    --w678d-primary: #FFD700;
    --w678d-secondary: #1a1a2e;
    --w678d-accent: #e94560;
    --w678d-dark: #0f0f1a;
    --w678d-darker: #0a0a12;
    --w678d-light: #ffffff;
    --w678d-gray: #a0a0a0;
    --w678d-gray-dark: #333344;
    --w678d-success: #00c853;
    --w678d-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --w678d-gradient-accent: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    --w678d-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --w678d-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --w678d-radius: 12px;
    --w678d-radius-sm: 8px;
    --w678d-transition: all 0.3s ease;
}

/* ========================================
   Base Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

/* ========================================
   Header Styles
   ======================================== */
.w678d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    transition: var(--w678d-transition);
}

.w678d-header.w678d-scrolled {
    background: rgba(10, 10, 18, 0.98);
    box-shadow: var(--w678d-shadow);
}

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

.w678d-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.w678d-logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--w678d-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

.w678d-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.w678d-btn-secondary {
    background: transparent;
    color: var(--w678d-light);
    border: 2px solid var(--w678d-primary);
}

.w678d-btn-secondary:hover {
    background: var(--w678d-primary);
    color: var(--w678d-dark);
}

/* ========================================
   Mobile Menu
   ======================================== */
.w678d-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--w678d-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.w678d-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--w678d-transition);
}

.w678d-menu-overlay.w678d-active {
    opacity: 1;
    visibility: visible;
}

.w678d-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--w678d-secondary);
    z-index: 9999;
    padding: 60px 20px 20px;
    transition: var(--w678d-transition);
    overflow-y: auto;
}

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

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

.w678d-mobile-menu .w678d-nav-link {
    display: block;
    padding: 14px 16px;
    color: var(--w678d-light);
    font-size: 16px;
    border-bottom: 1px solid var(--w678d-gray-dark);
}

.w678d-mobile-menu .w678d-nav-link:hover {
    background: var(--w678d-gray-dark);
    color: var(--w678d-primary);
}

/* ========================================
   Hero Section
   ======================================== */
.w678d-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 16px 40px;
    background: linear-gradient(135deg, var(--w678d-darker) 0%, var(--w678d-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.w678d-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;
}

.w678d-hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.w678d-hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.w678d-hero-title span {
    background: var(--w678d-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* ========================================
   Game Categories
   ======================================== */
.w678d-categories {
    padding: 60px 16px;
    background: var(--w678d-dark);
}

.w678d-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

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

.w678d-tab-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.w678d-tab-btn {
    padding: 12px 24px;
    background: var(--w678d-gray-dark);
    border: none;
    border-radius: var(--w678d-radius-sm);
    color: var(--w678d-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w678d-transition);
}

.w678d-tab-btn:hover,
.w678d-tab-btn.w678d-active {
    background: var(--w678d-gradient);
    color: var(--w678d-dark);
}

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

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

.w678d-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.w678d-game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--w678d-shadow-lg);
}

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

.w678d-game-card-title {
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Features Section
   ======================================== */
.w678d-features {
    padding: 60px 16px;
    background: var(--w678d-darker);
}

.w678d-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.w678d-feature-card {
    background: var(--w678d-secondary);
    padding: 30px;
    border-radius: var(--w678d-radius);
    text-align: center;
    transition: var(--w678d-transition);
}

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

.w678d-feature-icon {
    font-size: 48px;
    color: var(--w678d-primary);
    margin-bottom: 16px;
}

.w678d-feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.w678d-feature-desc {
    color: var(--w678d-gray);
    font-size: 14px;
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.w678d-cta {
    padding: 80px 16px;
    background: linear-gradient(135deg, var(--w678d-secondary) 0%, var(--w678d-dark) 100%);
    text-align: center;
}

.w678d-cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.w678d-cta-text {
    color: var(--w678d-gray);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer
   ======================================== */
.w678d-footer {
    background: var(--w678d-darker);
    padding: 40px 16px 20px;
    border-top: 1px solid var(--w678d-gray-dark);
}

.w678d-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.w678d-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.w678d-footer-link {
    color: var(--w678d-gray);
    font-size: 14px;
}

.w678d-footer-link:hover {
    color: var(--w678d-primary);
}

.w678d-footer-copyright {
    text-align: center;
    color: var(--w678d-gray);
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid var(--w678d-gray-dark);
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.w678d-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%);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    display: none;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.w678d-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 56px;
    padding: 6px 8px;
    cursor: pointer;
    transition: var(--w678d-transition);
    border-radius: 12px;
}

.w678d-bottom-nav-item:hover {
    background: rgba(255, 215, 0, 0.1);
}

.w678d-bottom-nav-item.w678d-active {
    background: rgba(255, 215, 0, 0.15);
}

.w678d-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: var(--w678d-transition);
}

.w678d-bottom-nav-item:hover .w678d-bottom-nav-icon,
.w678d-bottom-nav-item.w678d-active .w678d-bottom-nav-icon {
    color: var(--w678d-primary);
    transform: scale(1.1);
}

.w678d-bottom-nav-text {
    font-size: 11px;
    color: var(--w678d-gray);
    font-weight: 500;
    transition: var(--w678d-transition);
}

.w678d-bottom-nav-item:hover .w678d-bottom-nav-text,
.w678d-bottom-nav-item.w678d-active .w678d-bottom-nav-text {
    color: var(--w678d-primary);
}

/* ========================================
   Container & Utilities
   ======================================== */
.w678d-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.w678d-text-center {
    text-align: center;
}

.w678d-mb-16 {
    margin-bottom: 16px;
}

.w678d-mb-24 {
    margin-bottom: 24px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 768px) {
    .w678d-header-actions .w678d-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .w678d-btn-text {
        display: none;
    }

    .w678d-menu-toggle {
        display: flex;
    }

    .w678d-hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 100px;
    }

    .w678d-hero-title {
        font-size: 28px;
    }

    .w678d-hero-subtitle {
        font-size: 15px;
    }

    .w678d-section-title {
        font-size: 24px;
    }

    .w678d-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .w678d-game-card-title {
        font-size: 11px;
        padding: 8px;
    }

    .w678d-bottom-nav {
        display: flex;
    }

    .w678d-footer {
        padding-bottom: 80px;
    }

    main {
        padding-bottom: 80px;
    }

    .w678d-cta-title {
        font-size: 26px;
    }

    .w678d-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .w678d-hero-title {
        font-size: 24px;
    }

    .w678d-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .w678d-tab-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .w678d-bottom-nav {
        display: none;
    }
}

/* Page specific padding for mobile nav */
@media (max-width: 768px) {
    .w678d-page-content {
        padding-bottom: 80px;
    }
}
