/*
Theme Name: Foxiz Pro - SayarBilgi Tech & AI
Theme URI: https://sayarbilgi.com/
Author: Antigravity / Urunveri
Author URI: https://urunveri.com/
Description: Foxiz mimarisinde 1:1 piksel hassasiyetinde sektorel Awwwards-grade tema (Açık ve Koyu Mod Destekli).
Version: 3.6.0
License: GNU General Public License v2 or later
Text Domain: foxiz-pro-sayarbilgi
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #7c3aed;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-card: 12px;
    --radius-sm: 6px;
    --gap-grid: 24px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* KOYU MOD (DARK MODE) */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --accent: #8b5cf6;
    
    --bg-body: #090d16;
    --bg-card: #111827;
    --bg-card-subtle: #1f2937;
    --text-main: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #1f2937;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* AÇIK MOD (LIGHT MODE) */
[data-theme="light"] {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #7c3aed;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* TOP BAR */
.top-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.dark-mode-toggle-btn {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.dark-mode-toggle-btn:hover {
    border-color: var(--primary);
    transform: scale(1.03);
}

/* MAIN HEADER */
.main-header {
    background: var(--bg-body);
    border-bottom: 2px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 20px; list-style: none; flex-wrap: wrap; }
.main-nav a { font-size: 14.5px; font-weight: 700; color: var(--text-main); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--primary); }

/* TRENDING FLASH BAR */
.trending-bar {
    background: var(--bg-card-subtle);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 12.5px;
    transition: background-color 0.25s ease;
}
.trending-inner { display: flex; align-items: center; gap: 12px; }
.trending-label {
    background: var(--primary);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
}

/* HERO 60/40 SPLIT */
.capital-hero-section { padding: 28px 0; border-bottom: 1px solid var(--border-color); }
.capital-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap-grid); }
@media (max-width: 900px) { .capital-hero-grid { grid-template-columns: 1fr; } }

.hero-feature-big {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    padding-right: var(--gap-grid);
}
@media (max-width: 900px) { .hero-feature-big { border-right: none; padding-right: 0; } }
.hero-feature-media {
    display: block !important;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--bg-card-subtle);
    margin-bottom: 16px;
}
.hero-feature-media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease;
}
.hero-feature-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hero-feature-big:hover .hero-feature-media img { transform: scale(1.04); }

.editorial-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}
.hero-feature-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}
.hero-feature-excerpt {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* RIGHT STACK */
.hero-feature-stack { display: flex; flex-direction: column; gap: 16px; }
.card-horizontal-compact {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.card-horizontal-compact:last-child { border-bottom: none; }
.compact-media {
    position: relative;
    width: 100%;
    padding-top: 75%;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-card-subtle);
}
.compact-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.compact-content h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

/* BROADSHEET 2-COL + NUMBERED SIDEBAR */
.broadsheet-section { padding: 36px 0; }
.broadsheet-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-grid); }
@media (max-width: 900px) { .broadsheet-grid { grid-template-columns: 1fr; } }

.news-card-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .news-card-grid-2x2 { grid-template-columns: 1fr; } }

.broadsheet-post-card { display: flex; flex-direction: column; }
.broadsheet-post-media {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card-subtle);
    margin-bottom: 12px;
}
.broadsheet-post-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.broadsheet-post-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.numbered-trending-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 20px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.widget-title-band {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 18px;
}
.numbered-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.numbered-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: flex-start; }
.big-rank-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.numbered-item-content h4 { font-size: 13.5px; font-weight: 700; line-height: 1.4; }

/* SINGLE ARTICLE POST */
.single-article-wrap { padding: 36px 0; }
.single-article-container { max-width: 860px; margin: 0 auto; }
.single-post-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}
@media (max-width: 600px) { .single-post-title { font-size: 24px; } }
.single-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-muted);
}
.single-share-trigger-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.single-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--bg-card-subtle);
}
.single-featured-image img { width: 100%; max-height: 520px; object-fit: cover; }
.article-content-body { font-size: 17.5px; line-height: 1.8; color: var(--text-main); }
.article-content-body p { margin-bottom: 20px; }
.article-content-body h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 800; margin: 32px 0 16px 0; }

#readingProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 999999;
}

/* CLEAN STANDARD PAGE & COMMUNITY CONTAINER */
.page-standard-wrap { padding: 36px 0; }
.page-standard-container { max-width: 1140px; margin: 0 auto; }
.page-standard-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
}

/* COMMUNITY HUB HEADER & NAVIGATION */
.community-nav-badge {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.community-nav-badge:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.sayarbilgi-community-hub-header {
    padding: 28px 0 10px 0;
}
.hub-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}
.hub-top-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.hub-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 8px;
}
.hub-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 850px;
}
.hub-nav-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
.hub-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--bg-card-subtle);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
}
.hub-tab:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
}
.hub-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* COMMUNITY 2-COLUMN LAYOUT (TEKNOSEYIR + REDDIT) */
.community-2col-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: flex-start;
}
@media (max-width: 992px) {
    .community-2col-layout {
        grid-template-columns: 1fr;
    }
}

.hub-cta-btn {
    background: var(--primary);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}
.hub-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* SIDEBAR CARDS */
.sidebar-community-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}
.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-card-header h3 {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sidebar-rooms-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-room-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    background: var(--bg-card-subtle);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.sidebar-room-item:hover,
.sidebar-room-item.current {
    border-color: var(--primary);
    transform: translateX(3px);
}
.room-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.room-info strong {
    display: block;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.3;
}
.room-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebar-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary) !important;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.sidebar-tag:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}

/* CLUTTER REMOVAL: HIDE RAW BUDDYPRESS DIRECTORY MENUS */
#buddypress nav.activity-type-navs,
#buddypress .subnav-filters.filters {
    display: none !important;
}
#buddypress .item-list-tabs {
    border-bottom: none !important;
}

/* FOOTER (AWWWARDS-GRADE TECH EDITION) */
.site-footer {
    background: #080C15;
    color: #94A3B8;
    padding: 70px 0 35px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .site-footer {
    background: #F8FAFC;
    color: #64748B;
    border-top: 1px solid #E2E8F0;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3B82F6, #8B5CF6, transparent);
    opacity: 0.8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr 1.8fr;
    gap: 48px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 26px;
    line-height: 1;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #94A3B8;
    margin-bottom: 20px;
    max-width: 320px;
}

[data-theme="light"] .footer-brand-desc {
    color: #64748B;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
}

.footer-status-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

[data-theme="light"] .footer-heading {
    color: #0F172A;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary, #3B82F6);
    border-radius: 2px;
}

.footer-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="light"] .footer-links a {
    color: #64748B;
}

.footer-links a:hover {
    color: #3B82F6;
    transform: translateX(4px);
}

.footer-links a::before {
    content: '›';
    font-size: 15px;
    color: #475569;
    transition: color 0.2s ease;
}

.footer-links a:hover::before {
    color: #3B82F6;
}

.footer-newsletter-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94A3B8;
    margin-bottom: 16px;
}

[data-theme="light"] .footer-newsletter-desc {
    color: #64748B;
}

.footer-newsletter-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-input-wrap {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    transition: all 0.2s ease;
}

[data-theme="light"] .footer-input-wrap {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
}

.footer-input-wrap:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.footer-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #FFFFFF;
    font-size: 13.5px;
    outline: none;
}

[data-theme="light"] .footer-input-wrap input {
    color: #0F172A;
}

.footer-input-wrap button {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-input-wrap button:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #64748B;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid #E2E8F0;
    color: #94A3B8;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
    color: #3B82F6;
}

/* BRAND LOGO STYLING & DARK/LIGHT TOGGLE */
.site-branding-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.site-branding-link:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.site-branding-link img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}
.footer-branding-logo {
    margin-bottom: 16px;
}
.footer-branding-logo img {
    height: 38px;
}

[data-theme="dark"] .logo-light-mode { display: none !important; }
[data-theme="dark"] .logo-dark-mode  { display: block !important; }
[data-theme="light"] .logo-dark-mode  { display: none !important; }
[data-theme="light"] .logo-light-mode { display: block !important; }


/* ==========================================================================
   CATEGORY & ARCHIVE PAGES (Awwwards Grade)
   ========================================================================== */
.category-archive-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 36px 0 30px;
    margin-bottom: 40px;
}
.category-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.category-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.category-breadcrumb a:hover {
    color: var(--primary-accent);
}
.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}
.category-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.category-pill-badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-accent);
    border: 1px solid rgba(0, 240, 255, 0.25);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 6px;
}
.category-archive-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.category-count-badge {
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.category-archive-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 720px;
}

/* Category Grid */
.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
@media (max-width: 991px) {
    .category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .category-posts-grid {
        grid-template-columns: 1fr;
    }
}

.category-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.category-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.cat-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0d131f;
}
.cat-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.category-post-card:hover .cat-card-media img {
    transform: scale(1.04);
}
.cat-card-reading-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(10, 15, 29, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cat-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.cat-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.cat-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}
.cat-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.cat-card-title a:hover {
    color: var(--primary-accent);
}
.cat-card-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    flex-grow: 1;
}

/* Pagination */
.category-pagination {
    margin: 32px 0 64px;
    display: flex;
    justify-content: center;
}
.category-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.category-pagination .page-numbers:hover,
.category-pagination .page-numbers.current {
    background: var(--primary-accent);
    color: #06090e;
    border-color: var(--primary-accent);
    font-weight: 700;
}

/* ==========================================================================
   HOMEPAGE CATEGORY SHOWCASE STRIPS
   ========================================================================== */
.home-cat-strip-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}
.home-cat-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.home-cat-strip-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.home-cat-strip-icon {
    font-size: 22px;
}
.home-cat-strip-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}
.home-cat-strip-badge {
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}
.home-cat-strip-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-accent);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
}
.home-cat-strip-more-btn:hover {
    transform: translateX(3px);
    text-decoration: underline;
}
.home-cat-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 991px) {
    .home-cat-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .home-cat-strip-grid {
        grid-template-columns: 1fr;
    }
}
.home-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}
.home-cat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.35);
}
.home-cat-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0d131f;
    display: block;
}
.home-cat-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.home-cat-card:hover .home-cat-card-media img {
    transform: scale(1.05);
}
.home-cat-reading {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(10, 15, 29, 0.75);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}
.home-cat-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.home-cat-card-date {
    font-size: 11.5px;
    color: var(--text-muted);
}
.home-cat-card-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.home-cat-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.home-cat-card-title a:hover {
    color: var(--primary-accent);
}


.category-api-badge {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.cat-load-more-api-btn {
    background: var(--bg-card);
    color: var(--primary-accent);
    border: 1px solid rgba(0, 240, 255, 0.35);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cat-load-more-api-btn:hover {
    background: var(--primary-accent);
    color: #06090e;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}


:root .logo-dark-mode, [data-theme="light"] .logo-dark-mode { display: none !important; }
:root .logo-light-mode, [data-theme="light"] .logo-light-mode { display: block !important; }
[data-theme="dark"] .logo-dark-mode { display: block !important; }
[data-theme="dark"] .logo-light-mode { display: none !important; }

.compact-media { display: block !important; }
.broadsheet-post-media { display: block !important; }
.home-cat-card-media { display: block !important; }
