/* assets/css/styles.css — SEO Blog Platform V2.5 Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Variables (Dark Theme) ─────────────────────────────────────────────── */
:root {
    --bg-base:        #0a0f1e;
    --bg-secondary:   #111827;
    --bg-tertiary:    #1a2035;
    --glass-bg:       rgba(17, 24, 39, 0.75);
    --glass-border:   rgba(255, 255, 255, 0.07);
    --glass-hover:    rgba(255, 255, 255, 0.04);
    --accent:         #6366f1;
    --accent-2:       #a855f7;
    --accent-3:       #ec4899;
    --accent-grad:    linear-gradient(135deg, #6366f1, #a855f7);
    --accent-grad-2:  linear-gradient(135deg, #a855f7, #ec4899);
    --success:        #10b981;
    --warning:        #f59e0b;
    --danger:         #ef4444;
    --info:           #06b6d4;
    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;
    --sidebar-w:      260px;
    --header-h:       64px;
    --radius:         14px;
    --radius-sm:      10px;
    --radius-lg:      22px;
    --shadow:         0 4px 24px rgba(0,0,0,.5);
    --shadow-lg:      0 12px 48px rgba(0,0,0,.7);
    --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --glow:           0 0 30px rgba(99, 102, 241, 0.15);
}

/* ─── Light Mode ─────────────────────────────────────────────────────────────── */
[data-theme="light"] {
    --bg-base:        #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --glass-bg:       rgba(255, 255, 255, 0.85);
    --glass-border:   rgba(0, 0, 0, 0.06);
    --glass-hover:    rgba(0, 0, 0, 0.03);
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --shadow:         0 4px 24px rgba(0,0,0,.06);
    --shadow-lg:      0 12px 48px rgba(0,0,0,.1);
    --glow:           0 0 30px rgba(99, 102, 241, 0.08);
}

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { opacity: .85; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ─── Animated Background Mesh ───────────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: meshFloat 20s ease-in-out infinite alternate;
}
@keyframes meshFloat {
    0%   { opacity: 1; }
    50%  { opacity: 0.7; }
    100% { opacity: 1; }
}
body > * { position: relative; z-index: 1; }

/* ─── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Scroll Reveal Animations ──────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Glass Panel ───────────────────────────────────────────────────────────── */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.3rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity .25s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.btn:active { transform: translateY(0); }
.btn-primary   { background: var(--accent-grad); color: #fff; }
.btn-success   { background: var(--success); color: #fff; }
.btn-warning   { background: var(--warning); color: #000; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-ghost     { background: var(--glass-hover); border: 1px solid var(--glass-border); color: var(--text-primary); }
.btn-sm        { padding: .35rem .8rem; font-size: .8rem; }
.btn-lg        { padding: .85rem 2rem; font-size: 1rem; }
.btn-icon      { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 10px; }

/* ─── Form Controls ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.form-control {
    width: 100%;
    padding: .65rem 1rem;
    background: rgba(15, 23, 42, .6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: .95rem;
    transition: border-color .25s, box-shadow .25s;
}
[data-theme="light"] .form-control {
    background: rgba(248, 250, 252, .9);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.char-count { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; text-align: right; }
.char-count.warn { color: var(--warning); }
.char-count.over { color: var(--danger); }

/* ─── Badges ────────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .22rem .7rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.badge-primary { background: rgba(99,102,241,.12); color: var(--accent); border: 1px solid rgba(99,102,241,.25); }
.badge-success { background: rgba(16,185,129,.12); color: var(--success); border: 1px solid rgba(16,185,129,.25); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--warning); border: 1px solid rgba(245,158,11,.25); }
.badge-danger  { background: rgba(239,68,68,.12);  color: var(--danger);  border: 1px solid rgba(239,68,68,.25); }
.badge-info    { background: rgba(6,182,212,.12);  color: var(--info);    border: 1px solid rgba(6,182,212,.25); }
.badge-muted   { background: var(--glass-bg);      color: var(--text-muted); border: 1px solid var(--glass-border); }

/* ─── Alerts ────────────────────────────────────────────────────────────────── */
.alert {
    padding: .9rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .9rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.alert-success { background: rgba(16,185,129,.08);  border-color: var(--success); color: var(--success); }
.alert-error   { background: rgba(239,68,68,.08);   border-color: var(--danger);  color: var(--danger); }
.alert-warning { background: rgba(245,158,11,.08);  border-color: var(--warning); color: var(--warning); }
.alert-info    { background: rgba(6,182,212,.08);   border-color: var(--info);    color: var(--info); }

/* ─── Admin Layout ──────────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform .3s ease;
}
.sidebar-logo {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: .75rem;
}
.sidebar-logo .logo-icon {
    width: 42px; height: 42px;
    background: var(--accent-grad);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
}
.sidebar-logo span { font-size: 1.1rem; font-weight: 800; }
.sidebar-logo small { display: block; font-size: .7rem; color: var(--text-muted); font-weight: 400; margin-top: 1px; }

.sidebar-nav { padding: 1rem .75rem; flex: 1; }
.nav-section { margin-bottom: 1.5rem; }
.nav-section-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 0 .5rem;
    margin-bottom: .5rem;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: .9rem;
    font-weight: 500;
    transition: all .25s;
    margin-bottom: 2px;
    text-decoration: none;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .7; }
.nav-link:hover { background: var(--glass-hover); color: var(--text-primary); }
.nav-link:hover svg { opacity: 1; }
.nav-link.active {
    background: rgba(99,102,241,.1);
    color: var(--accent);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--accent);
}
.nav-link.active svg { opacity: 1; }
.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem .75rem;
    border-top: 1px solid var(--glass-border);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
}
.user-avatar {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent-grad);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.user-name  { font-size: .9rem; font-weight: 600; }
.user-role  { font-size: .75rem; color: var(--text-muted); text-transform: capitalize; }

/* Main content area */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.admin-topbar {
    height: var(--header-h);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}
.topbar-title { font-size: 1.2rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.admin-content { padding: 2rem; flex: 1; }

/* ─── Cards & Stat Widgets ──────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s;
    backdrop-filter: blur(12px);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--glow); }
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    border-radius: 50%;
    opacity: .06;
    transform: translate(30px, -30px);
}
.stat-card.blue::before   { background: var(--accent); }
.stat-card.purple::before { background: var(--accent-2); }
.stat-card.green::before  { background: var(--success); }
.stat-card.orange::before { background: var(--warning); }
.stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.stat-icon.blue   { background: rgba(99,102,241,.12); color: var(--accent); }
.stat-icon.purple { background: rgba(168,85,247,.12); color: var(--accent-2); }
.stat-icon.green  { background: rgba(16,185,129,.12); color: var(--success); }
.stat-icon.orange { background: rgba(245,158,11,.12); color: var(--warning); }
.stat-value { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: .3rem; }
.stat-trend { font-size: .8rem; margin-top: .5rem; color: var(--success); }

/* ─── Mini Bar Chart ────────────────────────────────────────────────────────── */
.mini-chart { display: flex; align-items: flex-end; gap: 3px; height: 60px; padding-top: .5rem; }
.mini-bar {
    flex: 1; min-width: 6px;
    background: rgba(99,102,241,.25);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: background .2s, height .6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}
.mini-bar:hover { background: rgba(99,102,241,.5); }
.mini-bar-label { display: flex; gap: 3px; margin-top: 4px; }
.mini-bar-label span {
    flex: 1; font-size: .6rem; color: var(--text-muted);
    text-align: center; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Top Posts Bar ─────────────────────────────────────────────────────────── */
.top-posts-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.bar-track { flex: 1; height: 6px; background: var(--glass-border); border-radius: 3px; overflow: hidden; }
.bar-fill  { height: 100%; background: var(--accent-grad); border-radius: 3px; transition: width .8s cubic-bezier(0.4, 0, 0.2, 1); }

/* ─── DataTable Override ────────────────────────────────────────────────────── */
.dt-wrap { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(12px); }
.dt-header { padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--glass-border); }
.dt-header h3 { font-size: 1.1rem; font-weight: 700; }

table.dataTable { width: 100% !important; border-collapse: collapse; }
table.dataTable thead th {
    background: rgba(15, 23, 42, .5) !important;
    color: var(--text-secondary) !important;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .9rem 1rem !important;
    border-bottom: 1px solid var(--glass-border) !important;
    white-space: nowrap;
}
table.dataTable tbody tr { border-bottom: 1px solid rgba(255,255,255,.03) !important; transition: background .15s; }
table.dataTable tbody tr:hover { background: var(--glass-hover) !important; }
table.dataTable tbody td { padding: .85rem 1rem !important; color: var(--text-primary); font-size: .9rem; vertical-align: middle; }
table.dataTable tbody td:first-child { border-left: none; }

.dataTables_wrapper { padding: 0 !important; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: rgba(15, 23, 42, .7) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: .4rem .8rem !important;
    margin-left: .5rem;
}
.dataTables_wrapper .dataTables_filter { margin: 1rem 1.5rem; }
.dataTables_wrapper .dataTables_length { margin: 1rem 1.5rem; }
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label { color: var(--text-secondary); font-size: .85rem; }
.dataTables_wrapper .dataTables_info { padding: 1rem 1.5rem; color: var(--text-muted); font-size: .85rem; }
.dataTables_wrapper .dataTables_paginate { padding: 1rem 1.5rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: transparent !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm) !important;
    padding: .35rem .75rem !important;
    margin: 0 2px;
    font-size: .85rem;
    transition: all .2s !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--glass-hover) !important;
    color: var(--text-primary) !important;
    border-color: var(--accent) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent-grad) !important;
    color: #fff !important;
    border-color: transparent !important;
}
div.dataTables_wrapper div.dataTables_processing {
    background: var(--glass-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-sm) !important;
}

/* ─── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all .3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(.92) translateY(20px);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close {
    width: 34px; height: 34px;
    border: none;
    background: var(--glass-hover);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: all .2s;
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-footer {
    display: flex; gap: .75rem; justify-content: flex-end;
    margin-top: 1.5rem; padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}
.modal-lg { max-width: 800px; }

/* ─── SEO Preview ────────────────────────────────────────────────────────────── */
.serp-preview {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border: 1px solid #dfe1e5;
}
.serp-title { color: #1a0dab; font-size: 18px; font-weight: normal; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-url   { color: #006621; font-size: 13px; margin-bottom: 4px; }
.serp-desc  { color: #545454; font-size: 13px; line-height: 1.4; max-height: 2.8em; overflow: hidden; }

/* ─── Reading Progress Bar ───────────────────────────────────────────────────── */
#readingProgress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--accent-grad);
    width: 0%;
    z-index: 9999;
    transition: width .1s linear;
}
.progress-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 4px;
    background: transparent;
    z-index: 10001;
    transition: opacity .3s;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-grad);
    box-shadow: 0 0 12px var(--accent);
    transition: width 0.1s ease;
}

/* ─── Back to Top ───────────────────────────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    background: var(--accent-grad);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 24px rgba(99,102,241,.4);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    z-index: 500;
}
#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(99,102,241,.5); }

/* ─── Dark / Light Mode Toggle ───────────────────────────────────────────────── */
.theme-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: all .25s;
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); background: rgba(99,102,241,.1); transform: rotate(15deg); }

/* ─── Copy Code Button ───────────────────────────────────────────────────────── */
.code-wrapper { position: relative; }
.copy-code-btn {
    position: absolute;
    top: .6rem; right: .6rem;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.25);
    color: var(--accent);
    padding: .25rem .6rem;
    border-radius: 6px;
    font-size: .75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
}
.code-wrapper:hover .copy-code-btn { opacity: 1; }
.copy-code-btn.copied { color: var(--success); border-color: var(--success); background: rgba(16,185,129,.1); }

/* ─── Reading Time Badge ─────────────────────────────────────────────────────── */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    color: var(--text-muted);
}

/* ─── Public / Blog Layout ──────────────────────────────────────────────────── */
.pub-header {
    background: rgba(10, 15, 30, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0; z-index: 500;
    padding: 0 2rem;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
}
[data-theme="light"] .pub-header { background: rgba(255,255,255,.92); }

.pub-logo { font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.pub-logo .logo-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent-grad);
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.4); }
    50%      { box-shadow: 0 0 0 6px rgba(99,102,241,0); }
}

.pub-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.pub-nav a { font-size: .9rem; font-weight: 500; color: var(--text-secondary); position: relative; }
.pub-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-grad);
    transition: width .3s;
    border-radius: 2px;
}
.pub-nav a:hover { color: var(--text-primary); }
.pub-nav a:hover::after { width: 100%; }

/* Header search */
.pub-search {
    display: flex; align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: .35rem .35rem .35rem 1rem;
    gap: .5rem;
    transition: border-color .25s, box-shadow .25s;
}
.pub-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.pub-search input {
    background: transparent; border: none; outline: none;
    color: var(--text-primary); font-size: .88rem;
    width: 140px;
    transition: width .3s;
}
.pub-search:focus-within input { width: 200px; }
.pub-search input::placeholder { color: var(--text-muted); }
.pub-search button {
    width: 30px; height: 30px;
    background: var(--accent-grad);
    border: none; border-radius: 50%;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    transition: transform .2s;
}
.pub-search button:hover { transform: scale(1.1); }

.pub-main { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }

/* ─── Post Grid ─────────────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.75rem; }

.post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), var(--glow);
    border-color: rgba(99,102,241,.3);
}

.post-card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1), filter .6s ease;
}
.post-card:hover .post-card-img { transform: scale(1.05); }

/* Image Blur-up Effect */
.blur-up { filter: blur(12px); transform: scale(1.05); transition: filter .6s ease, transform .6s ease; }
.blur-up.loaded { filter: blur(0); transform: scale(1); }

.post-card-img-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(99,102,241,.15));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
}
/* Wrap card image in overflow:hidden when hovering */
.post-card > a:first-child { overflow: hidden; display: block; }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: .6rem; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.post-card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.35; }
.post-card-title a { color: var(--text-primary); }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { font-size: .9rem; color: var(--text-secondary); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-footer { border-top: 1px solid var(--glass-border); padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* ─── Hero Slider ────────────────────────────────────────────────────────────── */
.hero-slider {
    position: relative;
    height: 540px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-lg);
    background: var(--bg-secondary);
}
.slider-wrapper { position: relative; width: 100%; height: 100%; }
.slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .8s cubic-bezier(0.4, 0, 0.2, 1), visibility .8s;
    display: flex; align-items: flex-end;
}
.slide.active { opacity: 1; visibility: visible; z-index: 10; }
.slide-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
}
.slide.active .slide-img { transform: scale(1.12); }
.slide-overlay {
    position: absolute; inset: 0;
    background: transparent;
    z-index: 2;
    display: flex; align-items: flex-end; padding: 3rem;
    pointer-events: none;
}
.slide-content { max-width: 800px; z-index: 3; }

/* Animations for slide content */
.slide-anim-item {
    opacity: 0;
    transform: translateY(25px);
    transition: all .6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.active .slide-anim-item { opacity: 1; transform: translateY(0); }
.slide.active .slide-anim-item:nth-child(1) { transition-delay: .1s; }
.slide.active .slide-anim-item:nth-child(2) { transition-delay: .2s; }
.slide.active .slide-anim-item:nth-child(3) { transition-delay: .35s; }
.slide.active .slide-anim-item:nth-child(4) { transition-delay: .45s; }
.slide.active .slide-anim-item:nth-child(5) { transition-delay: .55s; }

.slide-title { font-size: clamp(1.8rem, 5vw, 3rem); margin: 1rem 0; line-height: 1.1; }
.slide-title a { color: #fff; }
.slide-title a:hover { color: var(--accent); }
.slide-excerpt { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 600px; }
.slide-meta { display: flex; gap: 1.5rem; color: #94a3b8; font-size: .9rem; margin-bottom: 2rem; }
.slide-actions { display: flex; gap: 1rem; }

/* Navigation Controls */
.slider-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(12px);
    transition: all .3s;
    font-size: 1.2rem;
}
.slider-nav:hover {
    background: var(--accent-grad);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(99,102,241,.4);
}
.slider-nav.prev { left: 1.5rem; }
.slider-nav.next { right: 1.5rem; }

/* Indicators */
.slider-dots {
    position: absolute;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: .75rem; z-index: 20;
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    border: none; cursor: pointer;
    transition: all .3s;
}
.dot.active {
    background: var(--accent);
    width: 36px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(99,102,241,.4);
}

@media (max-width: 768px) {
    .hero-slider { height: 440px; }
    .slide-overlay { padding: 1.5rem; }
    .slide-meta { gap: .75rem; font-size: .8rem; }
    .slider-nav { display: none; }
    .slide-excerpt { display: none; }
}

/* Pagination */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.page-btn {
    padding: .55rem 1.1rem; border-radius: 10px; font-size: .85rem; font-weight: 600;
    border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text-primary);
    cursor: pointer; transition: all .25s; text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--accent-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ─── Post View ─────────────────────────────────────────────────────────────── */
.post-hero { max-height: 500px; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 2.5rem; box-shadow: var(--shadow-lg); }
.post-hero img { width: 100%; height: 500px; object-fit: cover; }
.post-article { max-width: 780px; margin: 0 auto; }
.post-article h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.post-meta { display: flex; align-items: center; gap: 1.5rem; color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; flex-wrap: wrap; }
.post-content { font-size: 1.05rem; line-height: 1.9; color: #cbd5e1; }
[data-theme="light"] .post-content { color: #334155; }
.post-content h2,
.post-content h3,
.post-content h4 { color: var(--text-primary); margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: .4rem; }
.post-content blockquote { border-left: 4px solid var(--accent); padding-left: 1.25rem; color: var(--text-secondary); font-style: italic; margin: 1.5rem 0; background: rgba(99,102,241,.04); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post-content pre { background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 1.25rem; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: .88rem; position: relative; }
.post-content code { background: rgba(99,102,241,.1); color: var(--accent); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: .86em; }
.post-content pre code { background: transparent; color: inherit; padding: 0; border-radius: 0; }
.post-content img { border-radius: var(--radius-sm); margin: 1.5rem auto; cursor: zoom-in; transition: transform .3s; box-shadow: var(--shadow); }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ─── Table of Contents ─────────────────────────────────────────────────────── */
.toc-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
}
.toc-sidebar h4 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 700;
}
.toc-sidebar a {
    display: block;
    padding: .4rem 0 .4rem 1rem;
    font-size: .85rem;
    color: var(--text-secondary);
    border-left: 2px solid var(--glass-border);
    transition: all .2s;
    line-height: 1.4;
}
.toc-sidebar a:hover { color: var(--text-primary); border-color: var(--text-muted); }
.toc-sidebar a.active { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.toc-sidebar a.toc-h3 { padding-left: 2rem; font-size: .82rem; }

/* ─── Author Bio Card ───────────────────────────────────────────────────────── */
.author-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-top: 3rem;
    backdrop-filter: blur(12px);
}
.author-card-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--accent-grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(99,102,241,.3);
}
.author-card-info h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.author-card-info p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Like Button ───────────────────────────────────────────────────────────── */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.like-btn:hover { border-color: var(--danger); transform: scale(1.05); }
.like-btn.liked { background: rgba(239,68,68,.1); border-color: var(--danger); color: var(--danger); }
.like-btn .like-icon { font-size: 1.2rem; transition: transform .3s; }
.like-btn:hover .like-icon { transform: scale(1.2); }
.like-btn.liked .like-icon { animation: likeHeart .4s ease; }
@keyframes likeHeart {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Share buttons */
.share-btns { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); }

/* Comments */
.comment-form { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.5rem; margin-top: 2rem; backdrop-filter: blur(12px); }
.comment-item { padding: 1.25rem 0; border-bottom: 1px solid var(--glass-border); }
.comment-author { font-weight: 700; margin-bottom: .25rem; }
.comment-date { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }

/* ─── Search Results Page ────────────────────────────────────────────────────── */
.search-hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: radial-gradient(circle at center, rgba(99,102,241,.06), transparent 70%);
}
.search-bar-lg {
    display: flex; gap: .5rem;
    max-width: 600px; margin: 1.5rem auto 0;
}
.search-bar-lg input {
    flex: 1; padding: .85rem 1.25rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 14px; color: var(--text-primary); font-size: 1rem;
    transition: border-color .25s, box-shadow .25s;
}
.search-bar-lg input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.search-bar-lg button {
    padding: .85rem 1.5rem;
    background: var(--accent-grad); color: #fff;
    border: none; border-radius: 14px;
    font-weight: 600; cursor: pointer; font-size: 1rem;
    transition: all .25s;
}
.search-bar-lg button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,.4); }
.search-result-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}
.search-result-item:last-child { border-bottom: none; }
.search-highlight { background: rgba(99,102,241,.15); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.search-results-wrap { max-width: 800px; margin: 0 auto; padding: 2rem; }

/* ─── Login Page ────────────────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-base);
    position: relative; overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(99,102,241,.12), transparent 70%);
    top: -250px; right: -250px;
    pointer-events: none;
    animation: loginGlow 8s ease-in-out infinite alternate;
}
.login-page::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168,85,247,.08), transparent 70%);
    bottom: -150px; left: -150px;
    pointer-events: none;
    animation: loginGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes loginGlow {
    0%   { opacity: .6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}
.login-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 90%; max-width: 420px;
    backdrop-filter: blur(24px);
    position: relative; z-index: 1;
    box-shadow: var(--shadow-lg);
    animation: slideUp .5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-icon {
    width: 64px; height: 64px;
    background: var(--accent-grad);
    border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(99,102,241,.3);
}
.login-logo h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.login-logo p { font-size: .88rem; color: var(--text-muted); }

/* ─── Newsletter Section ────────────────────────────────────────────────────── */
.newsletter-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}
.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(99,102,241,.06), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(168,85,247,.04), transparent 50%);
    pointer-events: none;
}
.newsletter-section h2 { font-size: 1.6rem; margin-bottom: .5rem; position: relative; }
.newsletter-section p { color: var(--text-secondary); margin-bottom: 1.5rem; position: relative; }
.newsletter-form {
    display: flex; gap: .5rem;
    max-width: 460px; margin: 0 auto;
    position: relative;
}
.newsletter-form input {
    flex: 1; padding: .8rem 1.2rem;
    background: rgba(15, 23, 42, .5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: .95rem;
}
[data-theme="light"] .newsletter-form input { background: rgba(255,255,255,.6); }
.newsletter-form input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.newsletter-form button {
    padding: .8rem 1.5rem;
    background: var(--accent-grad);
    color: #fff;
    border: none; border-radius: 12px;
    font-weight: 700; cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,.4); }

/* ─── Trending Ticker ───────────────────────────────────────────────────────── */
.trending-ticker {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 2rem;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    position: sticky;
    top: 64px; /* Below header */
    z-index: 400;
}
.trending-ticker .label {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--accent);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
    position: relative;
    padding-right: 2rem;
}
.trending-ticker .label::after {
    content: '';
    position: absolute;
    right: 0;
    width: 1px; height: 18px;
    background: var(--glass-border);
}
.trending-ticker .label::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.ticker-scroll {
    display: flex;
    gap: 4rem;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
    align-items: center;
}
.ticker-scroll:hover { animation-play-state: paused; }
.ticker-scroll a {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color .3s;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ticker-scroll a::before { content: '•'; color: var(--glass-border); }
.ticker-scroll a:hover { color: var(--accent); }
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Utility Classes ───────────────────────────────────────────────────────── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-sm { font-size: .85rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-right { text-align: right; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.divider { border: none; border-top: 1px solid var(--glass-border); margin: 1.5rem 0; }
.block { display: block; }

/* ─── Loading Spinner ───────────────────────────────────────────────────────── */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast Notifications ───────────────────────────────────────────────────── */
#toast-container {
    position: fixed; top: 1rem; right: 1rem;
    z-index: 99999;
    display: flex; flex-direction: column; gap: .5rem;
}
.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: .85rem 1.2rem;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: .75rem;
    font-size: .9rem;
    animation: toastIn .35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--accent);
    backdrop-filter: blur(12px);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ─── Public Footer ─────────────────────────────────────────────────────────── */
.pub-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    margin-top: 4rem;
}
.pub-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}
.pub-footer-brand .pub-logo { margin-bottom: .75rem; font-size: 1.3rem; }
.pub-footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }
.pub-footer-col h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .75rem; }
.pub-footer-col a { display: block; font-size: .88rem; color: var(--text-secondary); margin-bottom: .45rem; transition: color .2s; }
.pub-footer-col a:hover { color: var(--accent); }
.pub-footer-bottom {
    max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: space-between;
    font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; gap: .5rem;
}

/* ─── Category Showcase Circle Wise ────────────────────────────────────────── */
.cat-showcase { margin: 2rem 0; padding: 1rem 0; }
.cat-list-circles {
    display: flex; gap: 1.5rem;
    overflow-x: auto;
    padding: .5rem .5rem 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cat-list-circles::-webkit-scrollbar { display: none; }

.cat-circle-item {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center;
    gap: .75rem; text-align: center; width: 90px;
}
.cat-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; color: #fff;
    background: var(--accent-grad);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 2px solid var(--glass-border);
}
.cat-circle-item:hover .cat-circle {
    transform: translateY(-8px) scale(1.12);
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.4);
    border-color: var(--accent);
}
.cat-circle-item:nth-child(2n) .cat-circle { background: linear-gradient(135deg, #10b981, #06b6d4); }
.cat-circle-item:nth-child(3n) .cat-circle { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cat-circle-item:nth-child(4n) .cat-circle { background: linear-gradient(135deg, #a855f7, #ec4899); }
.cat-circle-item:nth-child(5n) .cat-circle { background: linear-gradient(135deg, #06b6d4, #6366f1); }

.cat-circle-name {
    font-size: .82rem; font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap; transition: color .2s;
}
.cat-circle-item:hover .cat-circle-name { color: var(--text-primary); }

.cat-circle-count {
    position: absolute; top: -3px; right: -3px;
    background: var(--danger); color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: 2px 6px; border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

/* ─── Skeleton Loading Shimmer ──────────────────────────────────────────────── */
.skeleton {
    background: var(--bg-secondary);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    from { background-position: -200% 0; }
    to { background-position: 200% 0; }
}

/* ─── Floating Social Share Bar ────────────────────────────────────────────── */
.share-bar {
    position: sticky; top: 100px; left: 0;
    width: 50px;
    display: flex; flex-direction: column;
    gap: .75rem; z-index: 1000;
    margin-left: -80px;
}
@media (max-width: 1200px) {
    .share-bar {
        position: fixed; top: auto; bottom: 2rem; left: 50%;
        transform: translateX(-50%);
        flex-direction: row; width: auto; margin-left: 0;
        padding: .75rem 1.25rem;
        background: var(--glass-bg); backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        border-radius: 50px; box-shadow: var(--shadow-lg);
    }
}
.share-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: .95rem;
}
.share-btn:hover {
    transform: translateY(-5px);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}
.share-btn.copied { background: var(--success); color: #fff; }

/* ─── Article Readability ──────────────────────────────────────────────────── */
.post-body { font-size: 1.125rem; line-height: 1.8; color: var(--text-primary); }
.post-body p { margin-bottom: 2rem; }
.post-body h2 { margin: 3rem 0 1.5rem; }
.post-body img { border-radius: var(--radius); margin: 2rem 0; box-shadow: var(--shadow); }

/* ─── Magazine Spotlight Grid ─────────────────────────────────────────────── */
.spotlight-section { margin-bottom: 4rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
.section-header h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.section-header h2::before { content: ''; width: 4px; height: 24px; background: var(--accent-grad); border-radius: 4px; display: inline-block; }

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    height: 620px;
}
.spotlight-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 100%; box-shadow: var(--shadow); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.spotlight-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.spotlight-item.main { grid-row: 1 / span 2; }
.spotlight-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.spotlight-item:hover img { transform: scale(1.06); }

.spotlight-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.95) 0%, rgba(10, 15, 30, 0.4) 50%, transparent 100%);
    padding: 2rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: .75rem; color: #fff;
}
.spotlight-item.main .spotlight-title { font-size: 2rem; }
.spotlight-title { font-size: 1.25rem; font-weight: 800; line-height: 1.2; margin: 0; }
.spotlight-title a { color: #fff; }
.spotlight-meta { display: flex; align-items: center; gap: 1rem; font-size: .85rem; color: #94a3b8; }

@media (max-width: 992px) {
    .spotlight-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
    .spotlight-item { height: 350px; }
    .spotlight-item.main { grid-row: auto; height: 450px; }
}

/* ─── Image Lightbox ────────────────────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all .3s;
    cursor: zoom-out;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    transform: scale(.9);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-overlay.active img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: #fff; font-size: 1.3rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); transform: scale(1.1); }

/* ─── SEO Score Meter ───────────────────────────────────────────────────────── */
.seo-score {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}
.seo-score-ring {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
    flex-shrink: 0;
}
.seo-score-ring.good { background: rgba(16,185,129,.12); color: var(--success); border: 2px solid var(--success); }
.seo-score-ring.ok   { background: rgba(245,158,11,.12); color: var(--warning); border: 2px solid var(--warning); }
.seo-score-ring.bad  { background: rgba(239,68,68,.12); color: var(--danger); border: 2px solid var(--danger); }
.seo-score-text { font-size: .85rem; color: var(--text-secondary); }
.seo-score-text strong { display: block; color: var(--text-primary); font-size: .95rem; margin-bottom: .2rem; }

/* ─── Share Bar & Buttons ────────────────────────────────────────────────────── */
.share-bar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
}
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.share-btn:hover {
    background: var(--accent-grad);
    color: #fff;
    transform: translateX(5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    border-color: transparent;
}
.share-btn.copied { background: var(--success); color: #fff; border-color: transparent; }

.share-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}
.share-btns a.share-btn {
    width: auto;
    height: auto;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

/* ─── Like Button ───────────────────────────────────────────────────────────── */
.like-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.like-btn .like-icon {
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.like-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}
.like-btn:hover .like-icon { transform: scale(1.2); }
.like-btn.liked {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}
.like-btn.liked .like-icon { transform: scale(1.3); animation: heartBeat 0.6s infinite alternate; }

@keyframes heartBeat {
    0% { transform: scale(1.2); }
    100% { transform: scale(1.4); }
}

.like-count { font-variant-numeric: tabular-nums; }

.kbd-hint {
    position: fixed;
    bottom: 1.5rem; left: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: .6rem 1rem;
    font-size: .78rem;
    color: var(--text-muted);
    backdrop-filter: blur(12px);
    z-index: 100;
    opacity: .6;
    transition: opacity .3s;
}
.kbd-hint:hover { opacity: 1; }
.kbd-hint kbd {
    display: inline-block;
    padding: 1px 6px;
    background: var(--glass-hover);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    margin: 0 2px;
}

/* ─── AI Assistant (ChatGPT Style) ─────────────────────────────────────────── */
#ai-assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#ai-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-grad);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
#ai-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}
#ai-toggle .ai-icon { font-size: 1.6rem; }
#ai-toggle .ai-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--bg-base);
}

#ai-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}
#ai-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-header {
    padding: 1.25rem;
    background: var(--accent-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ai-header strong { font-size: 1rem; letter-spacing: -0.02em; }
#ai-close {
    background: rgba(0,0,0,0.2);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.2s;
}
#ai-close:hover { background: rgba(0,0,0,0.4); }

.ai-status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 8px #10b981;
}

#ai-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--glass-bg);
}

.ai-msg {
    max-width: 85%;
    padding: 0.8rem 1.1rem;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
    animation: msgIn 0.3s ease-out;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-msg.bot {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}
.ai-msg.user {
    background: var(--accent-grad);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.ai-msg.thinking {
    font-style: italic;
    color: var(--text-muted);
    background: transparent;
    padding: 0;
    border: none;
}

.ai-footer {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}
#ai-form {
    display: flex;
    gap: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    padding: 0.4rem;
    border-radius: 30px;
}
#ai-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding-left: 1rem;
    font-size: 0.9rem;
}
#ai-input:focus { outline: none; }
#ai-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-grad);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
#ai-send:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    #ai-window {
        width: 350px;
        height: 500px;
        bottom: 75px;
        right: 0;
    }
}

@media (max-width: 480px) {
    #ai-assistant {
        right: 1rem;
        bottom: 1rem;
    }
    #ai-window {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        height: -webkit-fill-available;
        border-radius: 0;
        margin: 0;
        z-index: 10001;
        transform: translateY(100%);
    }
    #ai-window.active {
        transform: translateY(0);
    }
    #ai-toggle {
        width: 56px;
        height: 56px;
        z-index: 10002;
    }
    .ai-header {
        padding: 1.2rem 1.5rem;
        border-radius: 0;
    }
    #ai-messages {
        padding: 1.5rem 1rem;
    }
    .ai-footer {
        padding: 1rem;
        background: var(--bg-secondary);
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
    #ai-form {
        padding: 0.5rem;
    }
}



/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
    .pub-nav { display: none; }
    .pub-search input { width: 100px; }
    .pub-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .admin-content { padding: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; gap: 2rem; }
    .pub-main { padding: 2rem 1.5rem; }
    .pub-footer-inner { grid-template-columns: 1fr; }
    .pub-footer-bottom { flex-direction: column; text-align: center; }
    .author-card { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .toc-sidebar { display: none; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .pub-search { display: none; }
    #backToTop { bottom: 1.25rem; right: 1.25rem; }
    .kbd-hint { display: none; }
}

/* ─── Category Showcase ──────────────────────────────────────────────────────── */
.cat-showcase { margin: 4rem 0; padding: 2rem 0; }
.cat-list-circles { 
    display: flex; 
    justify-content: center; 
    gap: 4rem; 
    flex-wrap: wrap; 
}
.cat-circle-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1.5rem; 
    text-decoration: none; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 130px;
}
.cat-circle { 
    width: 90px; 
    height: 90px; 
    border-radius: 50%; 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.2rem; 
    position: relative; 
    transition: all 0.4s;
    backdrop-filter: blur(15px);
}
.cat-circle-item:hover .cat-circle { 
    transform: translateY(-12px) rotate(8deg); 
    border-color: var(--accent); 
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}
.cat-circle-name { 
    font-size: 0.72rem; 
    font-weight: 800; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.18em; 
    text-align: center;
    transition: color 0.3s;
    line-height: 1.5;
    padding: 0 10px;
}
.cat-circle-item:hover .cat-circle-name { color: var(--accent); }
.cat-circle-count { 
    position: absolute; 
    top: -5px; 
    right: -5px; 
    background: var(--accent-grad); 
    color: #fff; 
    font-size: 0.65rem; 
    font-weight: 900; 
    padding: 3px 8px; 
    border-radius: 20px; 
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

/* ─── Editor's Spotlight ─────────────────────────────────────────────────────── */
.spotlight-section { margin-top: 5rem; }
.spotlight-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 2rem; 
    min-height: 500px;
}
.spotlight-main { 
    position: relative; 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-lg);
    background: #000;
}
.spotlight-main img { 
    width: 100%; height: 100%; object-fit: cover; 
    opacity: 0.7; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.spotlight-main:hover img { transform: scale(1.08); }
.spotlight-main-content { 
    position: absolute; bottom: 0; left: 0; right: 0; padding: 3rem;
    background: linear-gradient(to top, rgba(10,15,30,0.95) 0%, rgba(10,15,30,0.5) 60%, transparent 100%);
    z-index: 2;
}
.spotlight-main-content h2 { font-size: 2.2rem; margin: 1rem 0; line-height: 1.2; color: #fff; }
.spotlight-main-content h2 a { color: inherit; }

.spotlight-subs { display: flex; flex-direction: column; gap: 1.5rem; }
.spotlight-sub-item { 
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); 
    border-radius: var(--radius); transition: all 0.3s;
}
.spotlight-sub-item:hover { border-color: var(--accent); transform: translateX(5px); background: rgba(99,102,241,0.05); }
.spotlight-sub-item h3 { font-size: 1.1rem; margin: 0.75rem 0; line-height: 1.4; }
.spotlight-sub-item .meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 1rem; }

@media (max-width: 992px) {
    .spotlight-grid { grid-template-columns: 1fr; }
    .spotlight-main { min-height: 400px; }
}

