/**
 * themes.css - 5 Mẫu Giao Diện Tùy Biến Cho Trending Forum
 * 1. theme-modern_clean    : Xu Hướng & Khởi Nghiệp (Reddit / ProductHunt Style)
 * 2. theme-tech_dark       : Công Nghệ & Lập Trình Viên (Dark Cyberpunk / Hacker News)
 * 3. theme-community_qa    : Hỏi Đáp & Tri Thức (Quora / StackOverflow / Giaidap.wiki)
 * 4. theme-editorial_minimal: Tạp Chí & Báo Chí (Medium / Substack / Báo chí phong cách)
 * 5. theme-vibrant_gaming  : Giải Trí & Game Thủ (Discord / Twitch / Gen Z Neon)
 */

/* ==========================================================================
   THEME 1: XU HƯỚNG HIỆN ĐẠI (MODERN CLEAN - MẶC ĐỊNH)
   ========================================================================== */
body.theme-modern_clean {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-light: #fff7ed;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
}

/* ==========================================================================
   THEME 2: KỸ THUẬT & LẬP TRÌNH (TECH DARK / CYBERPUNK)
   ========================================================================== */
body.theme-tech_dark {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.15);
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-light: rgba(6, 182, 212, 0.15);
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --bg-body: #0b0f19;
    --bg-card: #111827;
    --bg-input: #1f2937;
    --border: #1f2937;
    --border-hover: #374151;
    --text-main: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.7);
}

body.theme-tech_dark {
    background-color: #0b0f19;
    color: #f3f4f6;
}

body.theme-tech_dark .site-header {
    background: #111827;
    border-bottom: 1px solid #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.theme-tech_dark .site-logo {
    color: #10b981;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.theme-tech_dark .post-card {
    background: #111827;
    border: 1px solid #1f2937;
    transition: all 0.2s ease;
}

body.theme-tech_dark .post-card:hover {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.18);
    transform: translateY(-2px);
}

body.theme-tech_dark .tag-pill,
body.theme-tech_dark .post-tag-item {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #1f2937;
    color: #34d399;
    border: 1px solid #374151;
}

body.theme-tech_dark .tag-pill:hover,
body.theme-tech_dark .post-tag-item:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #6ee7b7;
}

body.theme-tech_dark .vote-btn {
    background: #1f2937;
    border: 1px solid #374151;
    color: #9ca3af;
}

body.theme-tech_dark .vote-btn:hover,
body.theme-tech_dark .vote-btn.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
}

body.theme-tech_dark .btn-primary {
    background: #10b981;
    color: #0b0f19;
    font-weight: 700;
}

body.theme-tech_dark .btn-primary:hover {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

body.theme-tech_dark .feed-hero-card {
    background: #111827;
    border-color: #1f2937;
}

body.theme-tech_dark .feed-hero-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.theme-tech_dark .feed-hero-title {
    color: #f3f4f6;
}

body.theme-tech_dark .feed-hero-desc {
    color: #9ca3af;
}

body.theme-tech_dark .feed-header-tabs {
    background: #111827;
    border-color: #1f2937;
}

body.theme-tech_dark .card-widget {
    background: #111827;
    border-color: #1f2937;
}

body.theme-tech_dark .post-detail-box,
body.theme-tech_dark .comments-container,
body.theme-tech_dark .form-card {
    background: #111827;
    border-color: #1f2937;
}

body.theme-tech_dark .site-footer {
    background: #0b0f19;
    border-top-color: #1f2937;
}

/* ==========================================================================
   THEME 3: HỎI ĐÁP & TRI THỨC (COMMUNITY Q&A / GIAIDAP.WIKI STYLE)
   ========================================================================== */
body.theme-community_qa {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --accent: #d97706;
    --accent-hover: #b45309;
    --accent-light: #fffbeb;
    --bg-body: #f0f4f8;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --border: #cbd5e1;
    --border-hover: #94a3b8;
    --text-main: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
}

body.theme-community_qa .site-header {
    background: #ffffff;
    border-bottom: 2px solid #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

body.theme-community_qa .site-logo {
    color: #1d4ed8;
    font-weight: 900;
}

body.theme-community_qa .post-card {
    border: 1px solid #cbd5e1;
    border-left: 4px solid #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

body.theme-community_qa .post-card:hover {
    border-color: #94a3b8;
    border-left-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

body.theme-community_qa .vote-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
}

body.theme-community_qa .vote-btn.active {
    background: #2563eb;
    color: #ffffff;
}

body.theme-community_qa .tab-btn.active {
    background: #2563eb;
    color: #ffffff;
}

body.theme-community_qa .feed-hero-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #1d4ed8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

body.theme-community_qa .feed-hero-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

body.theme-community_qa .feed-hero-title {
    color: #1e293b;
    font-weight: 800;
}

/* ==========================================================================
   THEME 4: TẠP CHÍ & BÁO CHÍ (EDITORIAL MINIMAL / MEDIUM STYLE)
   ========================================================================== */
body.theme-editorial_minimal {
    --primary: #991b1b;
    --primary-hover: #7f1d1d;
    --primary-light: #fef2f2;
    --accent: #b45309;
    --accent-hover: #92400e;
    --accent-light: #fffbeb;
    --bg-body: #faf9f5;
    --bg-card: #ffffff;
    --bg-input: #f5f5f4;
    --border: #e7e5e4;
    --border-hover: #d6d3d1;
    --text-main: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    --radius-sm: 2px;
    --radius: 6px;
    --radius-lg: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.theme-editorial_minimal .site-header {
    background: #faf9f5;
    border-bottom: 2px solid #1c1917;
    box-shadow: none;
}

body.theme-editorial_minimal .site-logo {
    color: #1c1917;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    letter-spacing: -0.8px;
}

body.theme-editorial_minimal .post-card-title,
body.theme-editorial_minimal .post-detail-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.3px;
}

body.theme-editorial_minimal .post-card {
    border: 1px solid #e7e5e4;
    box-shadow: none;
    padding: 22px 24px;
}

body.theme-editorial_minimal .post-card:hover {
    border-color: #a8a29e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.theme-editorial_minimal .tag-pill,
body.theme-editorial_minimal .post-tag-item {
    border-radius: 4px;
    background: #f5f5f4;
    color: #44403c;
    font-size: 0.82rem;
    border: 1px solid #e7e5e4;
}

body.theme-editorial_minimal .btn-primary {
    background: #1c1917;
    color: #ffffff;
    border-radius: 4px;
}

body.theme-editorial_minimal .btn-primary:hover {
    background: #991b1b;
}

body.theme-editorial_minimal .feed-hero-card {
    background: #faf9f5;
    border: 1px solid #e7e5e4;
    box-shadow: none;
}

body.theme-editorial_minimal .feed-hero-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    color: #1c1917;
    font-weight: 700;
}

body.theme-editorial_minimal .feed-hero-badge {
    background: #fef2f2;
    color: #991b1b;
}

body.theme-editorial_minimal .feed-hero-desc {
    color: #44403c;
}

/* ==========================================================================
   THEME 5: GIẢI TRÍ & GAMING (VIBRANT ENTERTAINMENT / GEN Z NEON)
   ========================================================================== */
body.theme-vibrant_gaming {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: rgba(139, 92, 246, 0.2);
    --accent: #ec4899;
    --accent-hover: #db2777;
    --accent-light: rgba(236, 72, 153, 0.2);
    --success: #10b981;
    --danger: #f43f5e;
    --warning: #f59e0b;
    --bg-body: #0d0b1a;
    --bg-card: #17142b;
    --bg-input: #231f3d;
    --border: #2d2850;
    --border-hover: #483d7a;
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 14px 28px rgba(0, 0, 0, 0.6);
    background-color: #0d0b1a;
    color: #f8fafc;
}

body.theme-vibrant_gaming .site-header {
    background: #17142b;
    border-bottom: 2px solid #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

body.theme-vibrant_gaming .site-logo {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

body.theme-vibrant_gaming .post-card {
    background: #17142b;
    border: 1px solid #2d2850;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.theme-vibrant_gaming .post-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    transform: translateY(-3px) scale(1.005);
}

body.theme-vibrant_gaming .btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    border: none;
    font-weight: 700;
}

body.theme-vibrant_gaming .btn-primary:hover {
    box-shadow: 0 6px 22px rgba(236, 72, 153, 0.6);
    transform: translateY(-1px);
}

body.theme-vibrant_gaming .tag-pill,
body.theme-vibrant_gaming .post-tag-item {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 9999px;
}

body.theme-vibrant_gaming .tag-pill:hover,
body.theme-vibrant_gaming .post-tag-item:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

body.theme-vibrant_gaming .feed-hero-card {
    background: #17142b;
    border: 1px solid #2d2850;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.18);
}

body.theme-vibrant_gaming .feed-hero-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

body.theme-vibrant_gaming .feed-hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-vibrant_gaming .feed-header-tabs,
body.theme-vibrant_gaming .card-widget,
body.theme-vibrant_gaming .post-detail-box,
body.theme-vibrant_gaming .comments-container,
body.theme-vibrant_gaming .form-card {
    background: #17142b;
    border-color: #2d2850;
}

body.theme-vibrant_gaming .tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

body.theme-vibrant_gaming .site-footer {
    background: #0d0b1a;
    border-top: 1px solid #2d2850;
}
