/**
 * bk3.click - Design Stylesheet
 * Dynamic prefix: s0fa-
 * Palette: #F0F0F0 | #FFA500 | #FF6347 | #008000 | #1C2833 | #40E0D0
 */

:root {
    --s0fa-primary: #FFA500;
    --s0fa-accent: #FF6347;
    --s0fa-green: #008000;
    --s0fa-dark: #1C2833;
    --s0fa-highlight: #40E0D0;
    --s0fa-light: #F0F0F0;
    --s0fa-bg: #0d1117;
    --s0fa-card: #161b22;
    --s0fa-border: #30363d;
    --s0fa-text: #F0F0F0;
    --s0fa-text-muted: #8b949e;
    --s0fa-radius: 12px;
    --s0fa-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--s0fa-bg);
    color: var(--s0fa-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--s0fa-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--s0fa-highlight); }

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

/* ========== HEADER ========== */
.s0fa-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(135deg, var(--s0fa-dark) 0%, #2d3748 100%);
    border-bottom: 2px solid var(--s0fa-primary);
    height: 60px; display: flex; align-items: center;
    padding: 0 16px; justify-content: space-between;
}
.s0fa-header-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 22px; font-weight: 800; color: var(--s0fa-primary);
}
.s0fa-header-logo img { width: 36px; height: 36px; border-radius: 50%; }
.s0fa-header-actions { display: flex; align-items: center; gap: 10px; }
.s0fa-btn-register {
    background: linear-gradient(135deg, var(--s0fa-accent), #ff8c42);
    color: #fff; padding: 8px 18px; border: none; border-radius: 20px;
    font-weight: 700; font-size: 14px; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}
.s0fa-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(255,99,71,0.5); }
.s0fa-btn-login {
    background: transparent; color: var(--s0fa-highlight);
    border: 1.5px solid var(--s0fa-highlight); padding: 7px 16px;
    border-radius: 20px; font-weight: 600; font-size: 14px; cursor: pointer;
    transition: background 0.3s;
}
.s0fa-btn-login:hover { background: rgba(64,224,208,0.1); }
.s0fa-hamburger {
    display: none; background: none; border: none; color: var(--s0fa-light);
    font-size: 24px; cursor: pointer; padding: 4px;
}
@media (max-width: 768px) { .s0fa-hamburger { display: block; } }

/* ========== MOBILE MENU ========== */
.s0fa-menu-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 9998; opacity: 0; transition: opacity 0.3s;
}
.s0fa-overlay-active { display: block; opacity: 1; }
.s0fa-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: var(--s0fa-dark); z-index: 9999; transition: right 0.3s ease;
    overflow-y: auto; padding: 80px 20px 20px;
}
.s0fa-menu-active { right: 0; }
.s0fa-menu-close {
    position: absolute; top: 16px; right: 16px; background: none;
    border: none; color: var(--s0fa-light); font-size: 28px; cursor: pointer;
}
.s0fa-mobile-menu a {
    display: block; padding: 12px 16px; color: var(--s0fa-light);
    font-size: 15px; border-bottom: 1px solid var(--s0fa-border);
    transition: background 0.2s, color 0.2s;
}
.s0fa-mobile-menu a:hover { background: rgba(255,165,0,0.1); color: var(--s0fa-primary); }

/* ========== CAROUSEL ========== */
.s0fa-carousel {
    position: relative; width: 100%; max-width: 430px; margin: 0 auto;
    aspect-ratio: 16/9; overflow: hidden; border-radius: var(--s0fa-radius);
}
.s0fa-carousel-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 0.8s ease;
}
.s0fa-slide-active { opacity: 1; }
.s0fa-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s0fa-carousel-dots {
    position: absolute; bottom: 12px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 8px; z-index: 2;
}
.s0fa-carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(240,240,240,0.5); cursor: pointer;
    transition: background 0.3s, transform 0.3s; border: none;
}
.s0fa-dot-active { background: var(--s0fa-primary); transform: scale(1.3); }

/* ========== MAIN CONTENT ========== */
.s0fa-main { padding-top: 68px; min-height: 100vh; }
@media (max-width: 768px) { .s0fa-main { padding-bottom: 80px; } }

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

.s0fa-section { padding: 24px 0; }
.s0fa-section-title {
    font-size: 22px; font-weight: 800; margin-bottom: 16px;
    padding-left: 12px; border-left: 4px solid var(--s0fa-primary);
    color: var(--s0fa-light);
}
.s0fa-section-subtitle { color: var(--s0fa-text-muted); margin-bottom: 20px; font-size: 14px; }

/* ========== GAME GRID ========== */
.s0fa-category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 16px; }
.s0fa-category-tab {
    flex-shrink: 0; padding: 8px 16px; border-radius: 20px;
    background: var(--s0fa-card); border: 1px solid var(--s0fa-border);
    color: var(--s0fa-text-muted); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; white-space: nowrap;
}
.s0fa-category-tab:hover, .s0fa-tab-active {
    background: var(--s0fa-primary); color: var(--s0fa-dark); border-color: var(--s0fa-primary);
}

.s0fa-game-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (min-width: 769px) { .s0fa-game-grid { grid-template-columns: repeat(4, 1fr); } }

.s0fa-game-card {
    background: var(--s0fa-card); border-radius: var(--s0fa-radius);
    overflow: hidden; border: 1px solid var(--s0fa-border);
    transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;
}
.s0fa-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255,165,0,0.2);
}
.s0fa-game-card img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    background: var(--s0fa-border);
}
.s0fa-game-card-title {
    padding: 8px 6px; font-size: 12px; font-weight: 600;
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--s0fa-light);
}

/* ========== HERO / PROMO SECTION ========== */
.s0fa-hero-banner {
    background: linear-gradient(135deg, var(--s0fa-dark) 0%, #2c3e50 50%, var(--s0fa-dark) 100%);
    padding: 32px 16px; text-align: center; position: relative; overflow: hidden;
}
.s0fa-hero-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,165,0,0.08) 0%, transparent 70%);
}
.s0fa-hero-title {
    font-size: 28px; font-weight: 900; margin-bottom: 8px;
    background: linear-gradient(90deg, var(--s0fa-primary), var(--s0fa-highlight));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; position: relative;
}
.s0fa-hero-subtitle { color: var(--s0fa-text-muted); margin-bottom: 20px; font-size: 15px; position: relative; }
.s0fa-hero-cta {
    display: inline-block; padding: 12px 36px;
    background: linear-gradient(135deg, var(--s0fa-accent), var(--s0fa-primary));
    color: #fff; font-weight: 800; font-size: 16px;
    border-radius: 30px; cursor: pointer; border: none;
    transition: transform 0.2s, box-shadow 0.3s; position: relative;
}
.s0fa-hero-cta:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,165,0,0.4); }

/* ========== FEATURES ========== */
.s0fa-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.s0fa-feature-card {
    background: var(--s0fa-card); border: 1px solid var(--s0fa-border);
    border-radius: var(--s0fa-radius); padding: 20px 16px; text-align: center;
    transition: border-color 0.3s;
}
.s0fa-feature-card:hover { border-color: var(--s0fa-primary); }
.s0fa-feature-icon { font-size: 32px; margin-bottom: 10px; color: var(--s0fa-primary); }
.s0fa-feature-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--s0fa-light); }
.s0fa-feature-desc { font-size: 12px; color: var(--s0fa-text-muted); }

/* ========== WHY CHOOSE / HIGHLIGHTS ========== */
.s0fa-highlights { display: flex; flex-direction: column; gap: 12px; }
.s0fa-highlight-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--s0fa-card); padding: 14px 16px;
    border-radius: var(--s0fa-radius); border-left: 3px solid var(--s0fa-green);
}
.s0fa-highlight-icon { font-size: 24px; color: var(--s0fa-green); flex-shrink: 0; }
.s0fa-highlight-text { font-size: 14px; color: var(--s0fa-light); }
.s0fa-highlight-text strong { color: var(--s0fa-primary); }

/* ========== FAQ ========== */
.s0fa-faq-item {
    background: var(--s0fa-card); border: 1px solid var(--s0fa-border);
    border-radius: var(--s0fa-radius); margin-bottom: 10px; overflow: hidden;
}
.s0fa-faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; cursor: pointer; font-weight: 600;
    font-size: 14px; color: var(--s0fa-light); transition: color 0.3s;
}
.s0fa-faq-question:hover { color: var(--s0fa-primary); }
.s0fa-faq-icon { transition: transform 0.3s; font-size: 18px; color: var(--s0fa-primary); }
.s0fa-faq-icon-rotate { transform: rotate(180deg); }
.s0fa-faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    padding: 0 16px; color: var(--s0fa-text-muted); font-size: 13px; line-height: 1.7;
}
.s0fa-faq-open { max-height: 300px; padding: 0 16px 14px; }

/* ========== BOTTOM NAV ========== */
.s0fa-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 1000; height: 60px;
    background: linear-gradient(180deg, var(--s0fa-dark), #0a0e14);
    border-top: 1px solid var(--s0fa-border);
    justify-content: space-around; align-items: center;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
}
@media (max-width: 768px) { .s0fa-bottom-nav { display: flex; } }

.s0fa-bottom-nav-btn {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-width: 60px; min-height: 56px;
    background: none; border: none; color: var(--s0fa-text-muted);
    cursor: pointer; transition: color 0.3s, transform 0.2s;
    font-size: 10px; gap: 3px;
}
.s0fa-bottom-nav-btn:hover, .s0fa-bottom-active {
    color: var(--s0fa-primary); transform: scale(1.05);
}
.s0fa-bottom-nav-btn i, .s0fa-bottom-nav-btn .material-icons {
    font-size: 22px;
}
.s0fa-bottom-active i, .s0fa-bottom-active .material-icons { color: var(--s0fa-highlight); }

/* ========== FOOTER ========== */
.s0fa-footer {
    background: var(--s0fa-dark); border-top: 2px solid var(--s0fa-primary);
    padding: 32px 16px 20px; text-align: center;
}
.s0fa-footer-brand { font-size: 20px; font-weight: 800; color: var(--s0fa-primary); margin-bottom: 10px; }
.s0fa-footer-desc { font-size: 13px; color: var(--s0fa-text-muted); margin-bottom: 20px; max-width: 360px; margin-left: auto; margin-right: auto; }
.s0fa-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.s0fa-footer-links a {
    color: var(--s0fa-text-muted); font-size: 12px; padding: 4px 8px;
    border-radius: 4px; transition: color 0.3s, background 0.3s;
}
.s0fa-footer-links a:hover { color: var(--s0fa-primary); background: rgba(255,165,0,0.1); }
.s0fa-footer-copy { font-size: 11px; color: var(--s0fa-text-muted); border-top: 1px solid var(--s0fa-border); padding-top: 16px; }

/* ========== CONTENT TEXT ========== */
.s0fa-content-text { font-size: 14px; line-height: 1.8; color: var(--s0fa-text-muted); }
.s0fa-content-text p { margin-bottom: 14px; }
.s0fa-content-text strong { color: var(--s0fa-primary); }

.s0fa-breadcrumb { padding: 12px 0; font-size: 12px; color: var(--s0fa-text-muted); }
.s0fa-breadcrumb a { color: var(--s0fa-primary); }

/* ========== INTERNAL LINKS ========== */
.s0fa-internal-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.s0fa-internal-links a {
    padding: 6px 14px; background: var(--s0fa-card); border: 1px solid var(--s0fa-border);
    border-radius: 16px; font-size: 12px; color: var(--s0fa-highlight);
    transition: all 0.3s;
}
.s0fa-internal-links a:hover { background: var(--s0fa-primary); color: var(--s0fa-dark); border-color: var(--s0fa-primary); }

/* ========== PROMO CTA BANNER ========== */
.s0fa-promo-banner {
    background: linear-gradient(135deg, rgba(255,165,0,0.15), rgba(64,224,208,0.1));
    border: 1px solid var(--s0fa-primary); border-radius: var(--s0fa-radius);
    padding: 20px 16px; text-align: center; margin: 20px 0;
}
.s0fa-promo-banner-title { font-size: 18px; font-weight: 800; color: var(--s0fa-primary); margin-bottom: 8px; }
.s0fa-promo-banner-text { font-size: 13px; color: var(--s0fa-text-muted); margin-bottom: 14px; }

/* ========== UTILITY ========== */
.s0fa-no-scroll { overflow: hidden; }
.s0fa-text-center { text-align: center; }
.s0fa-mt-16 { margin-top: 16px; }
.s0fa-mb-16 { margin-bottom: 16px; }
