[x-cloak] { display: none !important; }

/* ── ROOT TOKENS ───────────────────────────────────────────── */
:root {
    --crimson: #dc2626;
    --crimson-dark: #991b1b;
    --crimson-deep: #7f1d1d;
    --amber: #f59e0b;
    --amber-dark: #b45309;
    --emerald: #10b981;
    --black-pure: #000000;
    --black-rich: #0a0a0a;
    --black-card: #111111;
    --black-surface: #171717;
    --gray-900: #1a1a1a;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #a3a3a3;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
}

/* ── 3D BUTTON SYSTEM ──────────────────────────────────────── */
.btn-3d {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    color: #fff;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    line-height: 1.2;
}

.btn-crimson {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    box-shadow: 0 4px 0 0 #7f1d1d, 0 6px 12px -2px rgba(220, 38, 38, 0.4);
}
.btn-crimson:hover {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
    box-shadow: 0 5px 0 0 #7f1d1d, 0 8px 16px -2px rgba(220, 38, 38, 0.5);
    transform: translateY(-1px);
}
.btn-crimson:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 0 #7f1d1d, 0 2px 4px -1px rgba(220, 38, 38, 0.3);
}

.btn-amber {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow: 0 4px 0 0 #92400e, 0 6px 12px -2px rgba(245, 158, 11, 0.4);
    color: #1a1a1a;
}
.btn-amber:hover {
    background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
    box-shadow: 0 5px 0 0 #92400e, 0 8px 16px -2px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}
.btn-amber:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 0 #92400e, 0 2px 4px -1px rgba(245, 158, 11, 0.3);
}

.btn-emerald {
    background: linear-gradient(180deg, #34d399 0%, #10b981 50%, #059669 100%);
    box-shadow: 0 4px 0 0 #065f46, 0 6px 12px -2px rgba(16, 185, 129, 0.4);
    color: #fff;
}
.btn-emerald:hover {
    background: linear-gradient(180deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
    box-shadow: 0 5px 0 0 #065f46, 0 8px 16px -2px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}
.btn-emerald:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 0 #065f46, 0 2px 4px -1px rgba(16, 185, 129, 0.3);
}

.btn-dark {
    background: linear-gradient(180deg, #262626 0%, #171717 50%, #0a0a0a 100%);
    box-shadow: 0 4px 0 0 #000000, 0 6px 12px -2px rgba(0, 0, 0, 0.5);
    color: #fff;
}
.btn-dark:hover {
    background: linear-gradient(180deg, #404040 0%, #262626 50%, #171717 100%);
    box-shadow: 0 5px 0 0 #000000, 0 8px 16px -2px rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}
.btn-dark:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 0 #000000, 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

.btn-outline-3d {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-300);
    border: 2px solid var(--gray-700);
    border-radius: 0.75rem;
    background: var(--gray-900);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 3px 0 0 #000;
}
.btn-outline-3d:hover {
    border-color: var(--gray-500);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 0 #000, 0 4px 12px -2px rgba(0,0,0,0.4);
}
.btn-outline-3d:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 0 #000;
}

/* ── POST CONTENT ──────────────────────────────────────────── */
.post-content {
    font-size: 1.15rem;
    line-height: 1.95;
    letter-spacing: 0.01em;
    color: var(--gray-300);
}
.post-content p { margin-bottom: 1.6em; }
.post-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    color: #fafafa;
    letter-spacing: -0.01em;
}
.post-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    color: var(--gray-200);
}
.post-content img {
    width: 1000px;
    max-width: 100%;
    height: 562px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin: 1.8em auto;
    display: block;
}
.post-content blockquote {
    border-left: 4px solid var(--crimson);
    padding: 1.2em 1.6em;
    margin: 1.8em 0;
    background: var(--gray-900);
    border-radius: 0 0.75rem 0.75rem 0;
    color: var(--gray-400);
    font-style: italic;
}
.post-content ul, .post-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.6em;
}
.post-content li { margin-bottom: 0.6em; }
.post-content a {
    color: var(--amber);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-content a:hover { color: #fbbf24; }

/* ── AD PLACEHOLDERS ───────────────────────────────────────── */
.ad-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}
.ad-placeholder {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    border: 1px solid #262626;
    border-radius: 1rem;
    color: #525252;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'Inter', sans-serif;
}
.ad-placeholder::before {
    content: 'ADVERTISEMENT';
    font-weight: 700;
    font-size: 0.6rem;
    color: #404040;
    letter-spacing: 0.2em;
}
.ad-placeholder svg {
    opacity: 0.3;
    width: 24px;
    height: 24px;
}

/* ── CATEGORY BADGE ────────────────────────────────────────── */
.cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    background: rgba(220, 38, 38, 0.12);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.cat-badge-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.15);
}

/* ── LINE CLAMPS ───────────────────────────────────────────── */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── EDITORIAL CARD HOVER ──────────────────────────────────── */
.editorial-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.editorial-card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
    transform: translateY(-4px);
}
.editorial-card .card-img-wrap {
    overflow: hidden;
    position: relative;
}
.editorial-card .card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    pointer-events: none;
}
.editorial-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.editorial-card:hover img {
    transform: scale(1.08);
}

/* ── HERO CARD (large featured) ────────────────────────────── */
.hero-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-card:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 32px 64px -16px rgba(0,0,0,0.7);
}
.hero-card img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-card:hover img {
    transform: scale(1.05);
}

/* ── TRENDING NUMBER ───────────────────────────────────────── */
.trend-num {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    background: var(--gray-800);
    color: var(--gray-500);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.group:hover .trend-num {
    background: var(--crimson);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* ── SIDEBAR WIDGET ────────────────────────────────────────── */
.sidebar-widget {
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* ── BREAKING TICKER ───────────────────────────────────────── */
.breaking-ticker {
    animation: ticker 35s linear infinite;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ── SHIMMER ───────────────────────────────────────────────── */
.shimmer {
    background: linear-gradient(90deg, #1a1a1a 25%, #262626 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── PREMIUM SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--black-rich); }
::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }

/* ── FOCUS STYLES ──────────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
    border-color: var(--crimson) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* ── DIVIDER ───────────────────────────────────────────────── */
.divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
}

/* ── SECTION ACCENT LINE ───────────────────────────────────── */
.accent-line {
    width: 3px;
    height: 2rem;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--crimson), var(--amber));
}

/* ── ADMIN NAV ACTIVE ──────────────────────────────────────── */
.admin-nav-active {
    background: linear-gradient(135deg, rgba(220,38,38,0.1), rgba(220,38,38,0.05));
    color: #ef4444;
    border: 1px solid rgba(220,38,38,0.15);
}

html { scroll-behavior: smooth; }

/* ── LIGHT MODE OVERRIDES ────────────────────────────────── */
[data-theme="light"] .editorial-card {
    background: #ffffff;
    border-color: #e5e5e5;
}
[data-theme="light"] .editorial-card:hover {
    border-color: #d4d4d4;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
}
[data-theme="light"] .hero-card {
    background: #ffffff;
    border-color: #e5e5e5;
}
[data-theme="light"] .hero-card:hover {
    border-color: #d4d4d4;
    box-shadow: 0 32px 64px -16px rgba(0,0,0,0.1);
}
[data-theme="light"] .sidebar-widget {
    background: #ffffff;
    border-color: #e5e5e5;
}
[data-theme="light"] .trend-num {
    background: #f0f0f0;
    color: #525252;
}
[data-theme="light"] .group:hover .trend-num {
    background: #dc2626;
    color: #fff;
}
[data-theme="light"] .post-content h2 { color: #1a1a1a; }
[data-theme="light"] .post-content h3 { color: #262626; }
[data-theme="light"] .post-content blockquote { background: #f5f5f5; color: #525252; }
[data-theme="light"] .ad-placeholder { background: #f5f5f5; border-color: #e5e5e5; color: #a3a3a3; }
[data-theme="light"] .ad-placeholder::before { color: #a3a3a3; }
[data-theme="light"] .shimmer { background: linear-gradient(90deg, #f0f0f0 25%, #e5e5e5 50%, #f0f0f0 75%); background-size: 200% 100%; }
[data-theme="light"] ::-webkit-scrollbar-track { background: #f5f5f5; }
