/* ==========================================
   GTA 6 Forum Indonesia — CSS Design System
   Theme: Vice City Neon
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Colors — Neon Vice City */
    --neon-cyan: #00d4ff;
    --neon-pink: #ff2d78;
    --neon-purple: #a855f7;
    --neon-orange: #f97316;
    --neon-green: #22c55e;
    --neon-yellow: #facc15;
    /* Surfaces */
    --bg-body: #0a0e17;
    --bg-card: #111827;
    --bg-card-alt: #1a2236;
    --bg-elevated: #1f2937;
    --bg-input: #0d1117;
    --bg-hover: #1e293b;
    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #ffffff;
    --text-link: var(--neon-cyan);
    /* Border */
    --border: #1e293b;
    --border-hover: #334155;
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --grad-hot: linear-gradient(135deg, var(--neon-pink), var(--neon-orange));
    --grad-card: linear-gradient(180deg, rgba(17,24,39,.95), rgba(10,14,23,.98));
    /* Font */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    /* Spacing */
    --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
    /* Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow: 0 4px 24px rgba(0,0,0,.25);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.4);
    --glow-cyan: 0 0 20px rgba(0,212,255,.15);
    --glow-pink: 0 0 20px rgba(255,45,120,.15);
    /* Sizes */
    --header-h: 64px;
    --container: 1200px;
}

/* Light mode */
[data-theme="light"] {
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-alt: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-input: #f8fafc;
    --bg-hover: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-heading: #0f172a;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow: 0 4px 16px rgba(0,0,0,.08);
    --grad-card: linear-gradient(180deg, #fff, #f8fafc);
}

/* Neon theme — electric high-contrast */
[data-theme="neon"] {
    --neon-cyan: #00ffcc;
    --neon-pink: #ff00aa;
    --neon-purple: #bf00ff;
    --bg-body: #000000;
    --bg-card: #0a0a0a;
    --bg-card-alt: #111111;
    --bg-elevated: #141414;
    --bg-input: #050505;
    --bg-hover: #1a1a1a;
    --text-primary: #e0ffe0;
    --text-secondary: #80ffcc;
    --text-muted: #40a080;
    --text-heading: #00ffcc;
    --border: #003322;
    --border-hover: #00ffcc44;
    --shadow: 0 0 20px rgba(0,255,204,.1);
    --grad-primary: linear-gradient(135deg, #00ffcc, #bf00ff);
    --grad-hot: linear-gradient(135deg, #ff00aa, #ff6600);
    --glow-cyan: 0 0 30px rgba(0,255,204,.25);
}

/* Vice City theme — warm sunset vibes */
[data-theme="vice-city"] {
    --neon-cyan: #ff6b9d;
    --neon-pink: #c44569;
    --neon-purple: #e056a0;
    --neon-orange: #f0a500;
    --bg-body: #1a0a2e;
    --bg-card: #230f3d;
    --bg-card-alt: #2d1450;
    --bg-elevated: #331860;
    --bg-input: #150730;
    --bg-hover: #3a1d6e;
    --text-primary: #ffd6e8;
    --text-secondary: #cc8fb5;
    --text-muted: #9966aa;
    --text-heading: #ffb6d9;
    --text-link: #ff6b9d;
    --border: #3a1860;
    --border-hover: #5a2888;
    --shadow: 0 4px 24px rgba(100,0,80,.3);
    --grad-primary: linear-gradient(135deg, #ff6b9d, #c44569);
    --grad-hot: linear-gradient(135deg, #f0a500, #ff6600);
    --glow-cyan: 0 0 20px rgba(255,107,157,.2);
    --glow-pink: 0 0 20px rgba(196,69,105,.2);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg-body); color: var(--text-primary); font-size: 15px; line-height: 1.6; min-height: 100vh; }
a { color: var(--text-link); text-decoration: none; transition: .2s; }
a:hover { color: var(--neon-pink); }
img { max-width: 100%; height: auto; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 100; background: rgba(10,14,23,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); height: var(--header-h); }
[data-theme="light"] .header { background: rgba(255,255,255,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 900; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: .2s; }
.nav a:hover, .nav a.active { color: var(--neon-cyan); background: rgba(0,212,255,.08); }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }

/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: var(--sp-2); }
.mobile-menu { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--bg-card); z-index: 99; padding: var(--sp-4); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); font-size: 16px; font-weight: 500; color: var(--text-primary); border-bottom: 1px solid var(--border); }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, rgba(0,212,255,.1) 0%, rgba(168,85,247,.1) 50%, rgba(255,45,120,.1) 100%); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-10) var(--sp-6); text-align: center; margin-bottom: var(--sp-6); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(0,212,255,.05) 0%, transparent 50%), radial-gradient(circle at 70% 50%, rgba(255,45,120,.05) 0%, transparent 50%); animation: pulseGlow 6s ease-in-out infinite alternate; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: var(--sp-3); position: relative; }
.hero p { color: var(--text-secondary); font-size: clamp(0.9rem, 2vw, 1.05rem); max-width: 600px; margin: 0 auto var(--sp-6); position: relative; }

@keyframes pulseGlow { 0% { opacity: .5; } 100% { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ===== CARDS ===== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; animation: fadeInUp .4s ease; }
.card + .card { margin-top: var(--sp-4); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text-heading); }
.card-body { padding: var(--sp-4) var(--sp-5); }

/* ===== CATEGORY ROW ===== */
.category-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); transition: background .2s; }
.category-row:hover { background: var(--bg-hover); }
.category-row:last-child { border-bottom: none; }
.category-info { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.category-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.category-name { font-weight: 700; font-size: 15px; color: var(--text-heading); }
.category-name:hover { color: var(--neon-cyan); }
.category-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.category-stats { display: flex; gap: var(--sp-6); text-align: center; }
.stat-item { min-width: 50px; }
.stat-value { font-weight: 800; font-size: 16px; color: var(--text-heading); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.category-last-post { max-width: 200px; min-width: 0; text-align: right; }

/* ===== THREAD ROW ===== */
.thread-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--border); transition: background .2s; }
.thread-row:hover { background: var(--bg-hover); }
.thread-row.pinned { border-left: 3px solid var(--neon-cyan); }
.thread-info { flex: 1; min-width: 0; }
.thread-title { font-weight: 600; font-size: 14px; }
.thread-title a { color: var(--text-heading); }
.thread-title a:hover { color: var(--neon-cyan); }
.thread-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.thread-meta a { color: var(--text-secondary); }
.thread-stats-inline { display: flex; gap: var(--sp-3); font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.thread-prefix { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--prefix-color) 15%, transparent); color: var(--prefix-color); border: 1px solid color-mix(in srgb, var(--prefix-color) 30%, transparent); margin-right: 4px; vertical-align: middle; letter-spacing: .5px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); font-weight: 600; font-size: 14px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--grad-primary); color: #fff; border: none; box-shadow: var(--glow-cyan); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(0,212,255,.3); color: #fff; }
.btn-secondary { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.btn-danger { background: rgba(239,68,68,.1); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: var(--sp-3) var(--sp-6); font-size: 16px; }
.w-full { width: 100%; }

/* ===== FORMS ===== */
.form-group { margin-bottom: var(--sp-5); }
.form-label { display: block; font-weight: 600; font-size: 14px; color: var(--text-heading); margin-bottom: var(--sp-2); }
.form-input, .form-select, .form-textarea { width: 100%; padding: var(--sp-3) var(--sp-4); background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); transition: border .2s, box-shadow .2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 0 3px rgba(0,212,255,.1); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.form-error { color: var(--neon-pink); font-size: 13px; margin-top: 4px; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: .5px; }
.badge-admin { background: var(--grad-hot); color: #fff; }
.badge-mod { background: rgba(168,85,247,.2); color: var(--neon-purple); border: 1px solid rgba(168,85,247,.3); }
.badge-vip { background: rgba(250,204,21,.15); color: var(--neon-yellow); border: 1px solid rgba(250,204,21,.3); }
.badge-sub { background: rgba(0,212,255,.12); color: var(--neon-cyan); border: 1px solid rgba(0,212,255,.25); }
.badge-member { background: var(--bg-elevated); color: var(--text-muted); }
.badge-success { background: rgba(34,197,94,.15); color: var(--neon-green); }
.badge-warning { background: rgba(249,115,22,.15); color: var(--neon-orange); }
.badge-danger { background: rgba(239,68,68,.15); color: #ef4444; }
.badge-info { background: rgba(0,212,255,.12); color: var(--neon-cyan); }

/* ===== AVATAR ===== */
.user-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); object-fit: cover; border: 2px solid var(--border); flex-shrink: 0; }
.user-avatar-online { border-color: var(--neon-green); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs { display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; color: var(--text-muted); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--neon-cyan); }
.breadcrumbs .current { color: var(--text-primary); font-weight: 500; }

/* ===== ALERTS ===== */
.alert { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm); font-size: 14px; margin-bottom: var(--sp-4); animation: fadeInUp .3s; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); color: var(--neon-green); }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #ef4444; }
.alert-warning { background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.25); color: var(--neon-orange); }

/* ===== PAGINATION ===== */
.pagination-wrap { display: flex; justify-content: center; gap: var(--sp-1); margin-top: var(--sp-6); flex-wrap: wrap; }
.pagination-wrap a, .pagination-wrap span { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; border: 1px solid var(--border); color: var(--text-secondary); background: var(--bg-card); }
.pagination-wrap a:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.pagination-wrap .active span { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* ===== ONLINE WIDGET ===== */
.online-widget { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--sp-4); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 50; padding: var(--sp-2); }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-primary); }
.dropdown-menu a:hover { background: var(--bg-hover); color: var(--neon-cyan); }
.dropdown-divider { height: 1px; background: var(--border); margin: var(--sp-1) 0; }

/* ===== FOOTER ===== */
.footer { margin-top: var(--sp-10); padding: var(--sp-8) 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); text-align: center; }
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--neon-cyan); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mt-4 { margin-top: var(--sp-4); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .category-last-post { display: none; }
    .category-row { grid-template-columns: 1fr auto; }
}
@media (max-width: 768px) {
    :root { --header-h: 56px; }
    .nav { display: none; }
    .mobile-toggle { display: block; }
    .category-stats { gap: var(--sp-4); }
    .stat-value { font-size: 14px; }
    .hero { padding: var(--sp-6) var(--sp-4); }
}
@media (max-width: 480px) {
    body { font-size: 14px; }
    .hero h1 { font-size: 1.5rem; }
    .category-row { grid-template-columns: 1fr; gap: var(--sp-2); }
    .category-stats { justify-content: flex-start; }
    .card-header { padding: var(--sp-3) var(--sp-4); }
    .card-body { padding: var(--sp-3) var(--sp-4); }
    .thread-row { padding: var(--sp-3) var(--sp-4); }
    .thread-stats-inline { display: none; }
    .btn-lg { padding: var(--sp-3) var(--sp-4); font-size: 14px; }
}
@media (max-width: 380px) {
    .container { padding: 0 var(--sp-3); }
    .header-inner { padding: 0 var(--sp-3); }
    .logo { font-size: 1.1rem; }
}
