/**
 * 3JL Building - Theme Stylesheet
 * Color Palette: #3CB371 (Primary) | #0D1117 (Background) | #ADB5BD (Secondary)
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --w4f88-primary: #3CB371;
    --w4f88-primary-dark: #2E8B57;
    --w4f88-primary-light: #4ECB8A;
    --w4f88-bg-dark: #0D1117;
    --w4f88-bg-darker: #080B0F;
    --w4f88-bg-card: #161B22;
    --w4f88-bg-card-hover: #1F2937;
    --w4f88-text-light: #FFFFFF;
    --w4f88-text-muted: #ADB5BD;
    --w4f88-text-dark: #6B7280;
    --w4f88-border: #21262D;
    --w4f88-success: #10B981;
    --w4f88-warning: #F59E0B;
    --w4f88-error: #EF4444;
    --w4f88-gradient: linear-gradient(135deg, #3CB371 0%, #2E8B57 100%);
    --w4f88-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --w4f88-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --w4f88-radius: 12px;
    --w4f88-radius-sm: 8px;
    --w4f88-header-height: 60px;
    --w4f88-bottom-nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--w4f88-bg-dark);
    color: var(--w4f88-text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   Header Styles
======================================== */
.w4f88-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--w4f88-header-height);
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--w4f88-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.w4f88-header.w4f88-scrolled {
    background: rgba(13, 17, 23, 0.98);
    box-shadow: var(--w4f88-shadow);
}

.w4f88-header-inner {
    max-width: 430px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.w4f88-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--w4f88-text-light);
}

.w4f88-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--w4f88-gradient);
    border-radius: var(--w4f88-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

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

.w4f88-header-actions {
    display: flex;
    gap: 10px;
}

.w4f88-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--w4f88-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.w4f88-btn-primary {
    background: var(--w4f88-gradient);
    color: var(--w4f88-text-light);
}

.w4f88-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 179, 113, 0.4);
}

.w4f88-btn-secondary {
    background: transparent;
    color: var(--w4f88-text-light);
    border: 1px solid var(--w4f88-primary);
}

.w4f88-btn-secondary:hover {
    background: var(--w4f88-primary);
}

/* ========================================
   Main Content
======================================== */
.w4f88-main {
    padding-top: var(--w4f88-header-height);
    min-height: 100vh;
}

.w4f88-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
   Hero Section
======================================== */
.w4f88-hero {
    background: linear-gradient(180deg, var(--w4f88-bg-darker) 0%, var(--w4f88-bg-dark) 100%);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.w4f88-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(60, 179, 113, 0.1) 0%, transparent 50%);
    animation: w4f88-pulse 4s ease-in-out infinite;
}

@keyframes w4f88-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.w4f88-hero-content {
    position: relative;
    z-index: 1;
}

.w4f88-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

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

.w4f88-hero-subtitle {
    font-size: 16px;
    color: var(--w4f88-text-muted);
    margin-bottom: 24px;
}

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

.w4f88-btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* ========================================
   Game Categories
======================================== */
.w4f88-categories {
    padding: 24px 0;
    background: var(--w4f88-bg-dark);
}

.w4f88-categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.w4f88-categories-scroll::-webkit-scrollbar {
    display: none;
}

.w4f88-category-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--w4f88-bg-card);
    border: 1px solid var(--w4f88-border);
    border-radius: 20px;
    color: var(--w4f88-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w4f88-category-btn:hover,
.w4f88-category-btn.w4f88-active {
    background: var(--w4f88-primary);
    border-color: var(--w4f88-primary);
    color: var(--w4f88-text-light);
}

/* ========================================
   Game Grid
======================================== */
.w4f88-games-section {
    padding: 24px 0;
}

.w4f88-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w4f88-section-title i {
    color: var(--w4f88-primary);
}

.w4f88-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.w4f88-game-card {
    background: var(--w4f88-bg-card);
    border-radius: var(--w4f88-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--w4f88-border);
}

.w4f88-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--w4f88-primary);
    box-shadow: 0 8px 20px rgba(60, 179, 113, 0.2);
}

.w4f88-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.w4f88-game-name {
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w4f88-game-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--w4f88-warning);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ========================================
   Features Section
======================================== */
.w4f88-features {
    padding: 32px 0;
    background: var(--w4f88-bg-card);
}

.w4f88-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.w4f88-feature-item {
    background: var(--w4f88-bg-dark);
    border-radius: var(--w4f88-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--w4f88-border);
    transition: all 0.3s ease;
}

.w4f88-feature-item:hover {
    border-color: var(--w4f88-primary);
    transform: translateY(-2px);
}

.w4f88-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--w4f88-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.w4f88-feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.w4f88-feature-desc {
    font-size: 12px;
    color: var(--w4f88-text-muted);
}

/* ========================================
   Bonus Section
======================================== */
.w4f88-bonus {
    padding: 32px 0;
    background: linear-gradient(135deg, rgba(60, 179, 113, 0.1) 0%, transparent 100%);
}

.w4f88-bonus-card {
    background: var(--w4f88-bg-card);
    border-radius: var(--w4f88-radius);
    padding: 24px;
    border: 2px solid var(--w4f88-primary);
    text-align: center;
}

.w4f88-bonus-amount {
    font-size: 42px;
    font-weight: 800;
    background: var(--w4f88-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.w4f88-bonus-label {
    font-size: 16px;
    color: var(--w4f88-text-muted);
    margin-bottom: 16px;
}

/* ========================================
   FAQ Section
======================================== */
.w4f88-faq {
    padding: 32px 0;
}

.w4f88-faq-item {
    background: var(--w4f88-bg-card);
    border-radius: var(--w4f88-radius);
    margin-bottom: 12px;
    border: 1px solid var(--w4f88-border);
    overflow: hidden;
}

.w4f88-faq-question {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.w4f88-faq-question i {
    transition: transform 0.3s ease;
    color: var(--w4f88-primary);
}

.w4f88-faq-item.w4f88-open .w4f88-faq-question i {
    transform: rotate(180deg);
}

.w4f88-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.w4f88-faq-item.w4f88-open .w4f88-faq-answer {
    max-height: 500px;
}

.w4f88-faq-answer-inner {
    padding: 0 16px 16px;
    font-size: 14px;
    color: var(--w4f88-text-muted);
    line-height: 1.7;
}

/* ========================================
   Footer Styles
======================================== */
.w4f88-footer {
    background: var(--w4f88-bg-darker);
    padding: 40px 0 100px;
    border-top: 1px solid var(--w4f88-border);
}

.w4f88-footer-logo {
    text-align: center;
    margin-bottom: 24px;
}

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

.w4f88-footer-links a {
    color: var(--w4f88-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.w4f88-footer-links a:hover {
    color: var(--w4f88-primary);
}

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

.w4f88-partner-logo {
    height: 30px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.w4f88-partner-logo:hover {
    opacity: 1;
}

.w4f88-footer-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--w4f88-text-dark);
}

/* ========================================
   Mobile Bottom Navigation
======================================== */
.w4f88-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--w4f88-bottom-nav-height);
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--w4f88-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 4px 0;
}

.w4f88-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    color: var(--w4f88-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 6px 10px;
}

.w4f88-nav-item:hover,
.w4f88-nav-item.w4f88-active {
    color: var(--w4f88-primary);
    background: rgba(60, 179, 113, 0.1);
}

.w4f88-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

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

.w4f88-nav-item.w4f88-promo {
    background: var(--w4f88-gradient);
    color: var(--w4f88-text-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -20px;
    box-shadow: 0 4px 12px rgba(60, 179, 113, 0.4);
}

.w4f88-nav-item.w4f88-promo i {
    font-size: 24px;
    margin-bottom: 0;
}

.w4f88-nav-item.w4f88-promo span {
    display: none;
}

/* ========================================
   Mobile Menu
======================================== */
.w4f88-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.w4f88-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--w4f88-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--w4f88-border);
}

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

.w4f88-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--w4f88-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w4f88-menu-close {
    width: 36px;
    height: 36px;
    background: var(--w4f88-bg-card);
    border: none;
    border-radius: 50%;
    color: var(--w4f88-text-light);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w4f88-menu-links {
    padding: 16px 0;
}

.w4f88-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--w4f88-text-light);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.w4f88-menu-link:hover {
    background: var(--w4f88-bg-card);
    color: var(--w4f88-primary);
}

.w4f88-menu-link i {
    width: 24px;
    text-align: center;
    color: var(--w4f88-primary);
}

/* ========================================
   Utility Classes
======================================== */
.w4f88-text-center { text-align: center; }
.w4f88-text-primary { color: var(--w4f88-primary); }
.w4f88-text-muted { color: var(--w4f88-text-muted); }
.w4f88-mb-16 { margin-bottom: 16px; }
.w4f88-mb-24 { margin-bottom: 24px; }
.w4f88-mt-24 { margin-top: 24px; }

/* ========================================
   Animations
======================================== */
@keyframes pro842-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pro842-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes pro842-toast-out {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

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

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

    .w4f88-container {
        max-width: 768px;
    }

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

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

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

    .w4f88-hero-title {
        font-size: 26px;
    }

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

@media (max-width: 360px) {
    .w4f88-hero-buttons {
        flex-direction: column;
    }

    .w4f88-btn-large {
        width: 100%;
    }
}
