:root {
    --bg-dark: #0c0d12;
    --bg-card: #13151f;
    --bg-card-hover: #191c2a;
    --bg-sidebar: #11131c;
    --bg-input: #171926;
    
    --primary: #f43f5e; /* Vibrant Crimson/Rose */
    --primary-hover: #e11d48;
    --primary-glow: rgba(244, 63, 94, 0.25);
    
    --secondary: #3b82f6; /* Game Blue */
    --accent-gold: #eab308; /* VIP Rank */
    --accent-green: #22c55e; /* Status Undetected */
    
    --apex-color: #ef4444;
    --warzone-color: #3b82f6;
    --r6-color: #eab308;
    --fortnite-color: #a855f7;
    --rust-color: #f97316;

    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;

    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(244, 63, 94, 0.3);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--primary); }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}
.btn:disabled, .btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}
.btn-vip {
    background: linear-gradient(135deg, #d97706, var(--accent-gold));
    color: #000;
    font-weight: 700;
}
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.input-field {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    outline: none;
}
.input-field:focus {
    border-color: var(--primary);
}

/* Header & Ticker */
.top-notice {
    background: #090a0e;
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 2rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(12, 13, 18, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent-gold));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}
.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 0.4rem;
}
.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.nav-tab.active {
    color: white;
    background: var(--primary);
}

/* Google AdSense Unit Styling (High Conversion Layout) */
.adsense-unit {
    background: rgba(15, 17, 25, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.adsense-label {
    font-size: 0.65rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    display: block;
    font-weight: 700;
}
.adsense-banner-mock {
    background: linear-gradient(90deg, #1e2235, #252a40, #1e2235);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.adsense-banner-mock:hover {
    background: linear-gradient(90deg, #252a40, #2d334d, #252a40);
}
.ad-title { font-weight: 700; font-size: 0.95rem; color: #60a5fa; }
.ad-sub { font-size: 0.8rem; color: var(--text-muted); }

/* Main Forum Container */
.forum-container {
    max-width: 1320px;
    margin: 1.5rem auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
}
@media (max-width: 992px) {
    .forum-container { grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar-box {
    padding: 1.1rem;
    margin-bottom: 1.25rem;
}
.sidebar-title {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-list { list-style: none; }
.cat-item {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    margin-bottom: 0.2rem;
}
.cat-item:hover, .cat-item.active {
    background: rgba(244, 63, 94, 0.12);
    color: white;
}
.cat-item.active {
    border-left: 3px solid var(--primary);
}
.cat-count {
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
}

/* Dynamic Game Banner Header */
.game-category-banner {
    width: 100%;
    height: 185px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center 28%;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.game-category-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12,13,18,0.92) 0%, rgba(12,13,18,0.65) 50%, rgba(12,13,18,0.2) 100%),
                linear-gradient(0deg, rgba(12,13,18,0.9) 0%, rgba(12,13,18,0) 60%);
}
.banner-info {
    position: relative;
    z-index: 2;
}
.banner-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}
.banner-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Clean Resource Item Row (No side thumbnails) */
.resource-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}
.resource-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.game-color-stripe {
    width: 4px;
    height: 42px;
    border-radius: 2px;
    flex-shrink: 0;
}
.stripe-apex { background: var(--apex-color); }
.stripe-warzone { background: var(--secondary); }
.stripe-r6 { background: var(--r6-color); }
.stripe-fortnite { background: var(--fortnite-color); }
.stripe-rust { background: var(--rust-color); }

.resource-details {
    flex: 1;
    min-width: 0;
}

.resource-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.resource-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}
.resource-title:hover {
    color: var(--primary);
}

.tag-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.tag-apex { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.tag-warzone { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.tag-r6 { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234,179,8,0.3); }
.tag-fortnite { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.tag-rust { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }

.tag-author { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }
.tag-author-drala { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.3); }

.resource-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.resource-stats-side {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}
.stat-box {
    text-align: center;
}
.stat-box .val {
    font-weight: 800;
    font-size: 1rem;
}
.stat-box .lbl {
    font-size: 0.7rem;
    color: var(--text-dark);
    text-transform: uppercase;
}

/* User Badges */
.user-rank-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.rank-vip { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.rank-leaker { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid #a855f7; }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.ad-placeholder {
    width: 100%;
    height: 130px;
    background: rgba(0,0,0,0.6);
    border: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.progress-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    width: 0%;
    transition: width 1s linear;
}
