/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #0a0a1a;
    --dark-light: #12122a;
    --dark-card: #1a1a3e;
    --text: #e0e0ff;
    --text-muted: #9999cc;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--primary));
    --shadow: 0 10px 40px rgba(108, 92, 231, 0.2);
    --shadow-lg: 0 20px 60px rgba(108, 92, 231, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    padding: 12px 0;
}
.navbar { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.logo img { border-radius: 8px; }
.logo:hover { color: var(--secondary); }
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a {
    padding: 8px 16px; border-radius: 8px; color: var(--text-muted);
    font-weight: 500; font-size: 0.95rem; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(108, 92, 231, 0.2); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px;
    background: radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(0, 206, 201, 0.1) 0%, transparent 50%),
                var(--dark);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-title {
    font-size: 3.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge {
    padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    background: rgba(108, 92, 231, 0.15); border: 1px solid rgba(108, 92, 231, 0.3); color: var(--text);
}
.badge i { margin-right: 4px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--secondary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-particles {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 700;
    font-size: 1rem; border: none; cursor: pointer; transition: var(--transition);
    text-decoration: none; color: #fff;
}
.btn-primary { background: var(--gradient); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-outline {
    background: transparent; border: 2px solid var(--primary); color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-glow {
    animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
    from { box-shadow: 0 0 10px rgba(108, 92, 231, 0.4); }
    to { box-shadow: 0 0 30px rgba(108, 92, 231, 0.8), 0 0 60px rgba(0, 206, 201, 0.3); }
}
.btn-danger { background: linear-gradient(135deg, var(--danger), var(--accent)); }
.btn-success { background: linear-gradient(135deg, var(--success), var(--secondary)); }

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 10px;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 50px; font-size: 1.1rem; }

/* ===== GAMES SECTION ===== */
.games-section { padding: 80px 0; }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card {
    background: var(--dark-card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(108, 92, 231, 0.15); transition: var(--transition);
    text-decoration: none; color: var(--text); display: block;
}
.game-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text); }
.game-card-img { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.game-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.game-card:hover .game-card-img img { transform: scale(1.1); }
.game-card-overlay {
    position: absolute; inset: 0; background: rgba(108, 92, 231, 0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.game-card:hover .game-card-overlay { opacity: 1; }
.play-btn { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.5rem; }
.game-card-body { padding: 20px; }
.game-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.game-rating { color: var(--warning); font-size: 0.85rem; margin-bottom: 8px; }
.game-rating span { color: var(--text-muted); margin-left: 4px; }
.game-card-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.game-tag {
    display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem;
    font-weight: 600; background: rgba(108, 92, 231, 0.2); color: var(--secondary);
}

/* ===== CTA SECTION ===== */
.cta-section { padding: 60px 0; }
.cta-box {
    background: var(--gradient); border-radius: var(--radius); padding: 60px 40px;
    text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-box h2 { font-size: 2.5rem; color: #fff; margin-bottom: 16px; position: relative; }
.cta-box p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 30px; position: relative; }
.cta-box .btn { background: #fff; color: var(--primary); position: relative; }
.cta-box .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* ===== ARTICLES ===== */
.articles-section { padding: 80px 0; }
.articles-section-alt { padding-top: 0; }
.articles-grid { display: grid; gap: 30px; }
.article-card {
    display: grid; grid-template-columns: 300px 1fr; gap: 0;
    background: var(--dark-card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(108, 92, 231, 0.15); transition: var(--transition);
}
.article-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.article-img { overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; min-height: 250px; transition: var(--transition); }
.article-card:hover .article-img img { transform: scale(1.05); }
.article-body { padding: 24px; }
.article-category {
    display: inline-block; padding: 4px 14px; border-radius: 12px; font-size: 0.8rem;
    font-weight: 600; background: rgba(108, 92, 231, 0.2); color: var(--secondary); margin-bottom: 12px;
}
.article-body h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; }
.article-toc {
    font-size: 0.85rem; color: var(--text-muted); padding: 10px 14px;
    background: rgba(108, 92, 231, 0.08); border-radius: 8px; margin-bottom: 14px;
}
.article-content p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }

/* ===== FAQ ===== */
.faq-preview { padding: 80px 0; }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--dark-card); border-radius: var(--radius-sm); margin-bottom: 12px;
    border: 1px solid rgba(108, 92, 231, 0.15); overflow: hidden;
}
.faq-question {
    width: 100%; padding: 18px 24px; background: none; border: none;
    color: var(--text); font-size: 1rem; font-weight: 600; text-align: left;
    cursor: pointer; transition: var(--transition); display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: var(--transition); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-question:hover { background: rgba(108, 92, 231, 0.1); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 24px 18px; color: var(--text-muted); font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-light); border-top: 1px solid rgba(108, 92, 231, 0.15);
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.footer-logo img { border-radius: 6px; }
.footer-col h4 { color: var(--text); margin-bottom: 16px; font-size: 1.05rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--secondary); }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags span {
    padding: 4px 12px; border-radius: 12px; font-size: 0.8rem;
    background: rgba(108, 92, 231, 0.15); color: var(--text-muted);
}
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(108, 92, 231, 0.1); }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-disclaimer { font-size: 0.75rem; margin-top: 8px; opacity: 0.6; }

/* ===== GENERATOR PAGE ===== */
.generator-page { padding: 120px 0 80px; min-height: 100vh; }
.generator-wrapper {
    max-width: 600px; margin: 0 auto;
    background: var(--dark-card); border-radius: var(--radius); padding: 40px;
    border: 1px solid rgba(108, 92, 231, 0.2); box-shadow: var(--shadow-lg);
}
.generator-header { text-align: center; margin-bottom: 30px; }
.generator-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.generator-header p { color: var(--text-muted); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; }
.form-input {
    width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
    background: var(--dark); border: 1px solid rgba(108, 92, 231, 0.3);
    color: var(--text); font-size: 1rem; transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2); }
.platform-select { display: flex; gap: 12px; }
.platform-btn {
    flex: 1; padding: 14px; border-radius: var(--radius-sm); border: 2px solid rgba(108, 92, 231, 0.3);
    background: var(--dark); color: var(--text-muted); font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); text-align: center;
}
.platform-btn:hover, .platform-btn.active { border-color: var(--primary); color: var(--text); background: rgba(108, 92, 231, 0.15); }
.platform-btn i { display: block; font-size: 2rem; margin-bottom: 8px; }
.resource-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.resource-btn {
    padding: 12px; border-radius: var(--radius-sm); border: 2px solid rgba(108, 92, 231, 0.3);
    background: var(--dark); color: var(--text-muted); font-weight: 600; cursor: pointer;
    transition: var(--transition); text-align: center;
}
.resource-btn:hover, .resource-btn.active { border-color: var(--secondary); color: var(--secondary); background: rgba(0, 206, 201, 0.1); }

/* Generator Steps */
.generator-steps { display: none; }
.generator-steps.active { display: block; }
.progress-bar-wrapper { margin-bottom: 30px; }
.progress-bar {
    height: 8px; background: var(--dark); border-radius: 4px; overflow: hidden;
}
.progress-fill {
    height: 100%; background: var(--gradient); border-radius: 4px;
    transition: width 0.5s ease; width: 0%;
}
.progress-text { text-align: center; margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); }
.step-status {
    text-align: center; padding: 20px; font-size: 1.1rem;
}
.step-status .spinner {
    width: 50px; height: 50px; border: 4px solid rgba(108, 92, 231, 0.2);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Recaptcha Fake */
.recaptcha-box {
    background: #f9f9f9; border: 2px solid #d3d3d3; border-radius: 4px;
    padding: 16px; display: flex; align-items: center; gap: 14px;
    max-width: 320px; margin: 20px auto; cursor: pointer;
}
.recaptcha-checkbox {
    width: 28px; height: 28px; border: 2px solid #c1c1c1; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; background: #fff;
    transition: var(--transition);
}
.recaptcha-checkbox.checked { background: var(--success); border-color: var(--success); }
.recaptcha-checkbox.checked::after { content: '✓'; color: #fff; font-weight: 700; }
.recaptcha-text { color: #555; font-size: 0.95rem; }
.recaptcha-logo { margin-left: auto; text-align: center; }
.recaptcha-logo img { width: 32px; height: 32px; }
.recaptcha-logo span { display: block; font-size: 0.6rem; color: #999; }

/* Verification Result */
.verification-result {
    text-align: center; padding: 30px; display: none;
}
.verification-result.show { display: block; }
.verification-result .icon-fail { font-size: 4rem; color: var(--danger); margin-bottom: 16px; }
.verification-result h3 { margin-bottom: 12px; }
.verification-result p { color: var(--text-muted); margin-bottom: 20px; }

/* ===== PAGE STYLES ===== */
.page-hero {
    padding: 140px 0 60px; text-align: center;
    background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
}
.page-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; }
.page-content { padding: 60px 0; }
.content-card {
    background: var(--dark-card); border-radius: var(--radius); padding: 40px;
    border: 1px solid rgba(108, 92, 231, 0.15); margin-bottom: 30px;
}
.content-card h2 { font-size: 1.5rem; margin-bottom: 16px; color: var(--secondary); }
.content-card h3 { font-size: 1.2rem; margin-bottom: 12px; margin-top: 20px; }
.content-card p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.content-card ul { list-style: none; padding-left: 0; }
.content-card li { padding: 8px 0; color: var(--text-muted); padding-left: 24px; position: relative; }
.content-card li::before { content: '✅'; position: absolute; left: 0; }

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form textarea {
    width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
    background: var(--dark); border: 1px solid rgba(108, 92, 231, 0.3);
    color: var(--text); font-size: 1rem; min-height: 150px; resize: vertical;
    font-family: inherit;
}
.contact-form textarea:focus { outline: none; border-color: var(--primary); }

/* SSS Page */
.sss-page { padding: 60px 0 80px; }
.sss-search {
    max-width: 500px; margin: 0 auto 40px; position: relative;
}
.sss-search input {
    width: 100%; padding: 16px 20px 16px 50px; border-radius: 30px;
    background: var(--dark-card); border: 1px solid rgba(108, 92, 231, 0.3);
    color: var(--text); font-size: 1rem;
}
.sss-search input:focus { outline: none; border-color: var(--primary); }
.sss-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.sss-counter { text-align: center; margin-bottom: 30px; color: var(--text-muted); }
.sss-categories { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.sss-cat-btn {
    padding: 8px 20px; border-radius: 20px; border: 1px solid rgba(108, 92, 231, 0.3);
    background: var(--dark-card); color: var(--text-muted); cursor: pointer; font-size: 0.9rem;
    transition: var(--transition);
}
.sss-cat-btn:hover, .sss-cat-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.faq-list { max-width: 900px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--dark-light); flex-direction: column; padding: 20px;
        border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    }
    .nav-links.active { display: flex; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2.2rem; }
    .hero-badges { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { order: -1; }
    .games-grid { grid-template-columns: 1fr; }
    .article-card { grid-template-columns: 1fr; }
    .article-img img { min-height: 200px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
    .cta-box h2 { font-size: 1.8rem; }
    .generator-wrapper { margin: 0 16px; padding: 24px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .platform-select { flex-direction: column; }
    .resource-options { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Floating animation for hero image */
.hero-image { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Pulse for CTA */
.btn-glow { position: relative; }
.btn-glow::before {
    content: ''; position: absolute; inset: -3px; border-radius: inherit;
    background: var(--gradient); z-index: -1; filter: blur(15px); opacity: 0.5;
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Card shimmer */
.game-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: 0.5s;
}
.game-card:hover::before { left: 100%; }
.game-card { position: relative; overflow: hidden; }
