﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Flavor Theme â€” Davenport-Inspired Premium Magazine
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --c-bg: #ffffff;
    --c-bg-alt: #f8f9fa;
    --c-surface: #ffffff;
    --c-text: #1a1a1a;
    --c-text-2: #555555;
    --c-text-3: #999999;
    --c-border: #e8e8e8;
    --c-border-light: #f0f0f0;
    --c-accent: #e63946;
    --c-accent-dark: #c1121f;
    --c-accent-bg: #fef2f2;
    --c-dark: #111111;
    --c-dark-2: #222222;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 4px;
    --radius-lg: 8px;
    --transition: 0.25s ease;
    --container: 1200px;
}

/* â”€â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--c-text); background: var(--c-bg); }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
.visually-hidden { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Trending Bar
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.trending-bar {
    display: flex;
    align-items: center;
    background: var(--c-dark);
    color: #fff;
    font-size: 0.78rem;
    height: 36px;
    overflow: hidden;
}
.trending-bar-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    background: var(--c-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
}
.trending-bar-track { flex: 1; overflow: hidden; height: 100%; }
.trending-bar-scroll {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    height: 100%;
    animation: ticker 35s linear infinite;
    width: max-content;
    padding: 0 1rem;
}
.trending-bar-scroll:hover { animation-play-state: paused; }
.trending-bar-item { white-space: nowrap; color: rgba(255,255,255,0.7); }
.trending-bar-item:hover { color: #fff; }
.trending-bar-item::before { content: '\2014'; margin-right: 0.75rem; color: var(--c-accent); font-weight: 700; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Header
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Top bar */
.header-top {
    border-bottom: 1px solid var(--c-border);
    padding: 1.5rem 0;
}
.header-top-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.header-top-left { display: flex; align-items: center; }
.header-date {
    font-size: 0.8rem;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.header-top-center { text-align: center; }
.site-logo { display: inline-block; }
.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--c-text);
    letter-spacing: -0.5px;
    line-height: 1;
}
.site-logo:hover .logo-text { color: var(--c-text); }
.logo-img { max-height: 42px; width: auto; display: block; }
.header-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}
.header-search-toggle,
.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    background: transparent;
    color: var(--c-text);
    transition: all var(--transition);
}
.header-search-toggle:hover,
.header-icon-btn:hover {
    background: var(--c-text);
    color: #fff;
    border-color: var(--c-text);
}

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--c-surface);
    z-index: 200;
    padding: 2rem 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.search-overlay-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}
.search-overlay-form input {
    flex: 1;
    border: none;
    border-bottom: 2px solid var(--c-text);
    padding: 0.75rem 0;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    outline: none;
    background: transparent;
    color: var(--c-text);
}
.search-overlay-form input::placeholder { color: var(--c-text-3); }
.search-overlay-form button {
    background: none;
    border: none;
    color: var(--c-text);
    padding: 0.5rem;
}
.search-overlay-close { position: absolute; top: 0.5rem; right: -3rem; }

/* Main navigation */
.header-nav {
    background: var(--c-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-menu li { position: relative; }
.nav-menu li a {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    transition: all var(--transition);
}
.nav-menu li a:hover,
.nav-menu li.active > a {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 50;
}
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a {
    color: var(--c-text-2);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid var(--c-border-light);
}
.nav-menu .sub-menu a:hover { color: var(--c-accent); background: var(--c-bg-alt); }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 0.85rem 0;
    position: absolute;
    left: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Layout
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.site-wrapper { padding: 2.5rem 0 4rem; }

.content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}
.main-content { min-width: 0; }

/* Breadcrumb */
.breadcrumb {
    font-size: 0.78rem;
    color: var(--c-text-3);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb-item { display: inline-flex; align-items: center; }
.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    padding: 0 0.5rem;
    color: var(--c-text-3);
    font-size: 0.9rem;
}
.breadcrumb-item.active { color: var(--c-text-2); font-weight: 500; }
.breadcrumb a { color: var(--c-text-3); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--c-accent); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Hero Banner (fallback when no slider)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hero-banner {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
}
.hero-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.hero-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-banner-content { position: relative; z-index: 1; max-width: 600px; padding: 2rem; }
.hero-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--c-accent);
}
.hero-banner h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-banner p { font-size: 1rem; opacity: 0.7; max-width: 440px; margin: 0 auto; }

/* Home hero wrapper */
.home-hero { margin-bottom: 2rem; }
.home-hero .featured-slider { margin-bottom: 0; border-radius: var(--radius-lg); overflow: hidden; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Featured Grid (Homepage â€” 3 posts)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.featured-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4px;
    margin-bottom: 3rem;
}
.fg-main,
.fg-secondary { position: relative; overflow: hidden; }
.fg-image {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.fg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.fg-main .fg-image img { min-height: 340px; }
.fg-secondary .fg-image img { min-height: 168px; }
.fg-main:hover .fg-image img,
.fg-secondary:hover .fg-image img { transform: scale(1.04); }
.fg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}
.fg-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    color: #fff;
}
.fg-cat {
    display: inline-block;
    background: var(--c-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.75rem;
}
.fg-main h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}
.fg-secondary h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}
.fg-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    opacity: 0.7;
}
.fg-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Section Divider
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.section-divider {
    text-align: center;
    margin-bottom: 2rem;
}
.section-title {
    display: inline-block;
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--c-text);
}
.section-title span { background: var(--c-bg); padding: 0 1.25rem; position: relative; z-index: 1; }
.section-divider .section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -200px;
    right: -200px;
    height: 1px;
    background: var(--c-border);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Post Grid & Post Card
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.post-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.post-card:hover .post-card-thumb-link img { transform: scale(1.05); }

/* Thumbnail */
.post-card-thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--c-bg-alt);
}
.post-card-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.post-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-3);
    opacity: .35;
}
.card-cat {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: var(--c-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.22rem 0.6rem;
    border-radius: 4px;
    z-index: 2;
    text-decoration: none;
    line-height: 1.4;
}

/* Body */
.post-card-body {
    padding: 1rem 1.15rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.post-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-title a {
    color: var(--c-text);
    text-decoration: none;
    transition: color .15s;
}
.post-card-title a:hover { color: var(--c-accent); }
.post-card-excerpt {
    font-size: 0.82rem;
    color: var(--c-text-2);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Footer */
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    margin-top: auto;
    border-top: 1px solid var(--c-border-light);
}
.pc-footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}
.pc-footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.pc-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.pc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pc-author-info { min-width: 0; }
.pc-author-name {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--c-text);
    text-decoration: none;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-author-name:hover { color: var(--c-accent); }
.pc-date {
    display: block;
    font-size: 0.68rem;
    color: var(--c-text-3);
    line-height: 1.2;
    margin-top: 1px;
}
.meta-author { font-weight: 600; color: var(--c-text-2); }

/* Sponsored Card Badge */
.sp-card-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: var(--sp-color, #f59e0b);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Card Rating & View Count */
.pc-rating {
    font-size: 0.7rem;
    color: var(--c-text-3);
    white-space: nowrap;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Featured Slider (module)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.featured-slider {
    position: relative;
    overflow: hidden;
    background: var(--c-dark);
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    max-height: 400px;
}
.slider-track { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease-in-out; }
.slide.active { opacity: 1; z-index: 1; }
.slide-image { position: absolute; inset: 0; }
.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease-out;
}
.slide.active .slide-image img { transform: scale(1.05); }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
}
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem 2rem;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}
.slide-categories { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }
.slide-categories .category-badge {
    background: var(--c-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    border-radius: 0;
}
.slide-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}
.slide-title a { color: #fff; }
.slide-title a:hover { color: rgba(255,255,255,0.85); }
.slide-excerpt { font-size: 0.82rem; opacity: 0.75; line-height: 1.5; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}
.slide-content .btn-sm,
.slide-content .btn-primary {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #fff;
    color: #fff;
    transition: all var(--transition);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.slide-content .btn-sm:hover,
.slide-content .btn-primary:hover { background: #fff; color: var(--c-dark); }

/* Slider nav */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 0;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    opacity: 0;
}
.featured-slider:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: #fff; color: var(--c-dark); border-color: #fff; }
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-dots {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}
.slider-dot {
    width: 12px;
    height: 3px;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}
.slider-dot.active { background: #fff; width: 28px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Single Post
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.single-post { max-width: 100%; }

/* ── Single Post Hero ── */
.sp-hero { margin-bottom: 2rem; }
.sp-cats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sp-cat {
    display: inline-block;
    background: var(--c-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.25rem 0.7rem;
    transition: background var(--transition);
}
.sp-cat:hover { background: var(--c-accent-dark); color: #fff; }
.sp-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--c-text);
}
.sp-excerpt {
    font-size: 1.1rem;
    color: var(--c-text-2);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--c-accent);
    padding-left: 1rem;
}
.sp-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--c-border-light);
    border-bottom: 1px solid var(--c-border-light);
}
.sp-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sp-author-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.sp-author-name { font-weight: 700; font-size: 0.9rem; color: var(--c-text); }
.sp-author-name:hover { color: var(--c-accent); }
.sp-author-name-row { display: flex; align-items: center; gap: 0.4rem; }
.sp-meta-info { display: flex; align-items: center; gap: 0.15rem; font-size: 0.78rem; color: var(--c-text-3); margin-top: 0.1rem; }
.sp-meta-dot { margin: 0 0.3rem; }
.sp-meta-link { color: var(--c-text-3); }
.sp-meta-link:hover { color: var(--c-accent); }
.sp-meta-rating { white-space: nowrap; }

/* ── Featured Image ── */
.sp-featured { margin: 0 0 2rem; overflow: hidden; border-radius: 4px; }
.sp-featured img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }

/* ── Sponsored Notice ── */
.sp-sponsored-notice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #92400e;
    margin-bottom: 2rem;
}
.sp-sponsored-pill {
    display: inline-block;
    background: var(--sp-c, #f59e0b);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    white-space: nowrap;
}

/* ── Post Body (inherits .prose) ── */
.sp-body { margin-bottom: 2rem; }
.sp-body a.internal-link { color: var(--c-accent); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; transition: color .2s; }
.sp-body a.internal-link:hover { color: var(--c-text); text-decoration-style: solid; }

/* ── Rating Box ── */
.sp-rating-box {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.sp-rating-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.sp-rating-header h3 { font-family: var(--font-heading); font-size: 1.1rem; margin: 0; }
.sp-rating-summary { display: flex; align-items: center; gap: 0.5rem; }
.sp-rating-avg { font-size: 1.5rem; font-weight: 700; color: var(--c-accent); }
.sp-rating-stars span { color: var(--c-border); font-size: 1rem; }
.sp-rating-stars span.filled { color: #f59e0b; }
.sp-rating-count { font-size: 0.82rem; color: var(--c-text-3); }
.sp-rating-form { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.sp-rating-btn { padding: 0.45rem 1.25rem; background: var(--c-accent); color: #fff; border: none; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.sp-rating-btn:hover { background: var(--c-accent-dark); }
.sp-rating-yours { font-size: 0.85rem; color: var(--c-text-2); }
.sp-rating-login { font-size: 0.9rem; color: var(--c-text-2); }
.sp-rating-login a { color: var(--c-accent); font-weight: 600; }

/* ── Tags ── */
.sp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--c-border-light);
    border-bottom: 1px solid var(--c-border-light);
}
.sp-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--c-bg-alt);
    color: var(--c-text-2);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    transition: all var(--transition);
}
.sp-tag:hover { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }

/* ── Bottom Share Bar ── */
.sp-bottom-bar {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

/* ── Author Box ── */
.sp-author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border-light);
    border-radius: 8px;
    margin: 2rem 0;
}
.sp-ab-avatar img,
.sp-ab-avatar .avatar-placeholder.avatar-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.sp-ab-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-accent);
    margin-bottom: 0.25rem;
}
.sp-ab-info h4 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 400; margin-bottom: 0.35rem; }
.sp-ab-info h4 a { color: var(--c-text); }
.sp-ab-info h4 a:hover { color: var(--c-accent); }
.sp-ab-info p { font-size: 0.88rem; color: var(--c-text-2); line-height: 1.65; margin-bottom: 0.5rem; }
.sp-ab-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-accent);
    margin-top: 0.25rem;
}
.sp-ab-link:hover { color: var(--c-accent-dark); }

/* ── Related Posts ── */
.sp-related { margin-top: 3rem; }
.sp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sp-related-card { background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: 6px; overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.sp-related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sp-rc-thumb { display: block; overflow: hidden; }
.sp-rc-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform 0.3s; }
.sp-related-card:hover .sp-rc-thumb img { transform: scale(1.04); }
.sp-rc-body { padding: 1rem 1.25rem; }
.sp-rc-body h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 400; line-height: 1.35; margin-bottom: 0.35rem; }
.sp-rc-body h3 a { color: var(--c-text); }
.sp-rc-body h3 a:hover { color: var(--c-accent); }
.sp-rc-body time { font-size: 0.72rem; color: var(--c-text-3); text-transform: uppercase; letter-spacing: 0.5px; }

/* Prose */
.prose { font-size: 1.05rem; line-height: 1.9; color: var(--c-text); }
.prose h2 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 400; margin: 2.5rem 0 1rem; }
.prose h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 400; margin: 2rem 0 0.75rem; }
.prose p { margin-bottom: 1.5rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.5rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-accent-dark); }
.prose img { margin: 1.5rem 0; }
.prose blockquote {
    border-left: 4px solid var(--c-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--c-bg-alt);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--c-text-2);
}
.prose blockquote p { margin-bottom: 0.25rem; }
.prose pre {
    background: #0d1117;
    color: #e6edf3;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    position: relative;
}
.prose code {
    font-family: var(--font-mono);
    font-size: 0.84em;
    background: var(--c-bg-alt);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    color: var(--c-accent-dark, var(--c-accent));
    border: 1px solid var(--c-border-light);
    word-break: break-word;
}
.prose pre code { background: transparent; padding: 0; color: inherit; border: none; font-size: inherit; border-radius: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.prose th, .prose td { padding: 0.75rem 1rem; border: 1px solid var(--c-border); text-align: left; }
.prose th { background: var(--c-bg-alt); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--c-border); margin: 2.5rem 0; }

/* Post tags — kept for backward compat, new single uses .sp-tag */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--c-border-light);
    border-bottom: 1px solid var(--c-border-light);
}
.tags-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-text);
    margin-right: 0.25rem;
}
.tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--c-bg-alt);
    color: var(--c-text-2);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    transition: all var(--transition);
}
.tag:hover { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }

/* Share buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.share-label { font-size: 0.8rem; font-weight: 700; color: var(--c-text-2); margin-right: 0.5rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all var(--transition);
    color: #fff;
}
.share-twitter { background: #1a1a1a; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-email { background: var(--c-text-3); }
.share-copy { background: var(--c-bg-2); color: var(--c-text-2); border: 1px solid var(--c-border-light); cursor: pointer; }
.share-copy:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.share-copy.copied { background: #059669; color: #fff; border-color: #059669; }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }

/* Author box — backward compat */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--c-bg-alt);
    margin: 2rem 0;
    border: 1px solid var(--c-border-light);
    border-radius: 8px;
}
.author-box .author-avatar img,
.author-box .avatar-placeholder.avatar-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-accent);
    margin-bottom: 0.25rem;
}
.author-info h4 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 400; margin-bottom: 0.35rem; }
.author-info h4 a { color: var(--c-text); }
.author-info h4 a:hover { color: var(--c-accent); }
.author-info p { font-size: 0.88rem; color: var(--c-text-2); line-height: 1.65; }

/* Related posts */
.related-posts { margin-top: 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Comments
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.comments-section { margin-top: 3rem; }
.comment-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.comment {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border-light);
}
.comment-avatar img,
.comment-avatar .avatar-placeholder { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; font-size: 0.9rem; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.comment-author { font-size: 0.9rem; font-weight: 700; }
.comment-meta time { font-size: 0.75rem; color: var(--c-text-3); }
.comment-content { font-size: 0.9rem; color: var(--c-text-2); line-height: 1.65; }
.comment-replies { margin-left: 3rem; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.comment.reply { background: var(--c-surface); }

/* Comment form */
.comment-form-wrap { margin-top: 2.5rem; }
.comment-form-wrap h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 400; margin-bottom: 1.5rem; }
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--c-text-2); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--c-border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--c-text);
    background: var(--c-surface);
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--c-dark); }
.form-group input.is-invalid,
.form-group textarea.is-invalid { border-color: var(--c-accent); }
.form-error { font-size: 0.78rem; color: var(--c-accent); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Buttons
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.btn-primary { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.btn-primary:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { background: transparent; color: var(--c-dark); border-color: var(--c-dark); }
.btn-outline:hover { background: var(--c-dark); color: #fff; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Alerts & Pagination
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.alert { padding: 0.85rem 1.25rem; font-size: 0.9rem; margin-bottom: 1.25rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.pagination { display: flex; justify-content: center; gap: 0.25rem; margin-top: 3rem; }
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
}
.pagination a { color: var(--c-text-2); border: 1px solid var(--c-border); }
.pagination a:hover { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.pagination .active,
.pagination .current { background: var(--c-dark); color: #fff; border: 1px solid var(--c-dark); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Sidebar
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sidebar { position: sticky; top: 60px; align-self: start; }
.widget {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.widget-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--c-dark);
    color: var(--c-text);
}
.widget-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--c-border-light);
    gap: 0.75rem;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list li a { color: var(--c-text-2); font-size: 0.875rem; flex: 1; min-width: 0; }
.widget-list li a:hover { color: var(--c-accent); }
.widget-list li small { flex-shrink: 0; font-size: 0.75rem; color: var(--c-text-3); white-space: nowrap; }
.widget-list .count { color: var(--c-text-3); font-size: 0.8rem; flex-shrink: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud .tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; }

/* Sidebar Category Widget — Hierarchical */
.sw-cats .sw-cat-list { list-style: none; padding: 0; margin: 0; }
.sw-cat-item { border-bottom: 1px solid var(--c-border-light); }
.sw-cat-item:last-child { border-bottom: none; }
.sw-cat-row { display: flex; align-items: center; gap: 0; }
.sw-cat-toggle { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: none; background: none; cursor: pointer; padding: 0; color: var(--c-text-3); border-radius: 4px; transition: all 0.15s; flex-shrink: 0; }
.sw-cat-toggle:hover { background: var(--c-bg-alt, #f1f5f9); color: var(--c-accent); }
.sw-cat-toggle .sw-chevron { transition: transform 0.2s ease; }
.sw-cat-item.is-open > .sw-cat-row > .sw-cat-toggle .sw-chevron { transform: rotate(90deg); }
.sw-cat-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0; color: var(--c-text-2); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; flex: 1; min-width: 0; }
.sw-cat-link:hover { color: var(--c-accent); }
.sw-cat-icon { font-size: 0.9rem; flex-shrink: 0; width: 20px; text-align: center; }
.sw-cat-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-cat-count { flex-shrink: 0; font-size: 0.7rem; font-weight: 600; background: var(--c-bg-alt, #f1f5f9); color: var(--c-text-3); padding: 0.1rem 0.45rem; border-radius: 99px; min-width: 22px; text-align: center; }
.sw-cat-link:hover .sw-cat-count { background: var(--c-accent); color: #fff; }
.sw-cat-sub { list-style: none; padding: 0 0 0.25rem 0.5rem; margin: 0; border-left: 2px solid var(--c-border-light); margin-left: 0.75rem; }
.sw-cat-sub .sw-cat-item { border-bottom: none; }
.sw-cat-sub .sw-cat-sub { margin-left: 0.6rem; }
.sw-cat-child { padding: 0.3rem 0; font-size: 0.82rem; }
.sw-cat-child .sw-cat-count { font-size: 0.65rem; }
.sw-cat-item:not(.has-children) > .sw-cat-row { padding-left: 26px; }
.sw-cat-sub .sw-cat-item:not(.has-children) > .sw-cat-row { padding-left: 26px; }
[data-theme="dark"] .sw-cat-count { background: rgba(255,255,255,.06); }

/* Trending sidebar widget */
.widget-trending .trending-list { list-style: none; }
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--c-border-light);
}
.trending-item:last-child { border-bottom: none; }
.trending-rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-alt);
    color: var(--c-text-3);
    font-size: 0.75rem;
    font-weight: 800;
}
.trending-item:nth-child(1) .trending-rank { background: var(--c-accent); color: #fff; }
.trending-item:nth-child(2) .trending-rank { background: var(--c-dark); color: #fff; }
.trending-item:nth-child(3) .trending-rank { background: var(--c-dark-2); color: #fff; }
.trending-info { flex: 1; min-width: 0; }
.trending-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-title:hover { color: var(--c-accent); }
.trending-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--c-text-3);
    margin-top: 0.15rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Archive / Category / Tag / Author / Search
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.archive-header { margin-bottom: 2rem; text-align: center; }
.archive-label {
    display: inline-block;
    background: var(--c-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.75rem;
}
.archive-description { color: var(--c-text-2); margin-top: 0.5rem; }

.page-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
}
.page-featured-image { margin-bottom: 2rem; overflow: hidden; }
.page-featured-image img { width: 100%; }
.page-content.prose { max-width: 100%; }

.search-header { text-align: center; margin-bottom: 2rem; }
.search-form-lg {
    display: flex;
    max-width: 600px;
    margin: 1.25rem auto 0;
    gap: 0;
}
.search-form-lg input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--c-border);
    border-right: none;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}
.search-form-lg input:focus { border-color: var(--c-dark); }
.search-meta { color: var(--c-text-2); margin-bottom: 1.5rem; }

.author-header { text-align: center; padding: 2.5rem 0; margin-bottom: 2rem; }
.author-profile { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.author-avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-dark);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
}
.avatar-sm { width: 40px; height: 40px; font-size: 0.85rem; }
.avatar-lg { width: 80px; height: 80px; font-size: 1.5rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 2rem; }
.author-bio { color: var(--c-text-2); max-width: 500px; }
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.6rem;
    background: var(--c-accent-bg);
    color: var(--c-accent);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Error page */
.error-page { display: flex; justify-content: center; align-items: center; min-height: 60vh; text-align: center; padding: 3rem 1.5rem; }
.error-content { max-width: 480px; }
.error-illustration { width: 180px; height: 180px; margin: 0 auto 1.5rem; animation: error-bob 4s ease-in-out infinite; }
.error-illustration svg { width: 100%; height: 100%; }
@keyframes error-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.error-orbit { animation: error-spin 30s linear infinite; transform-origin: center; }
@keyframes error-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
.error-code {
    font-family: var(--font-heading);
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--c-accent), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -3px;
}
.error-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--c-text); }
.error-desc { color: var(--c-text-2); margin-bottom: 2rem; line-height: 1.7; font-size: 0.95rem; }
.error-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.error-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.5rem; border-radius: 10px; font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: all 0.15s; }
.error-btn-primary { background: var(--c-accent); color: #fff; }
.error-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.error-btn-ghost { background: rgba(37,99,235,.06); color: var(--c-accent); border: 1px solid transparent; }
.error-btn-ghost:hover { border-color: var(--c-accent); }
[data-theme="dark"] .error-btn-ghost { background: rgba(96,165,250,.08); }

/* 404 arama formu */
.error-search { display: flex; max-width: 380px; margin: 0 auto 1.5rem; border: 1px solid var(--c-border-light); border-radius: 12px; overflow: hidden; background: var(--c-bg-card); }
.error-search input { flex:1; border:none; background:transparent; padding: 0.7rem 1rem; font-size: 0.92rem; color: var(--c-text); outline: none; }
.error-search button { border:none; background:var(--c-accent); color:#fff; padding: 0 1rem; cursor:pointer; display:flex; align-items:center; }
.error-search button:hover { opacity:.85; }

/* 404 popüler yazı önerileri */
.error-suggestions { margin-top: 2.5rem; text-align: left; }
.error-suggestions h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; text-align: center; color: var(--c-text); }
.error-suggestions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.error-suggestion-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem; border-radius: 10px; background: var(--c-bg-card); border: 1px solid var(--c-border-light); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.error-suggestion-card:hover { border-color: var(--c-accent); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.error-suggestion-card img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink:0; }
.error-suggestion-info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.error-suggestion-title { font-size: 0.84rem; font-weight: 600; color: var(--c-text); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.35; }
.error-suggestion-meta { font-size: 0.72rem; color: var(--c-text-3); }
@media(max-width:600px){ .error-suggestions-grid{grid-template-columns:1fr;} .error-content{max-width:100%;} }

/* Tarihsel Arşiv Sayfası */
.archive-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; margin-top: 1.5rem; }
.archive-sidebar { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
.archive-year-group { margin-bottom: 1.2rem; }
.archive-year { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; color: var(--c-text); }
.archive-month-list { list-style: none; padding: 0; margin: 0; }
.archive-month-list li a { display: flex; justify-content: space-between; padding: .45rem .75rem; border-radius: 8px; font-size: .88rem; color: var(--c-text-2); text-decoration: none; transition: background .15s, color .15s; }
.archive-month-list li a:hover { background: var(--c-accent-soft, rgba(37,99,235,.06)); color: var(--c-accent); }
.archive-month-list li a.active { background: var(--c-accent); color: #fff; font-weight: 600; }
.archive-month-list li a.active .archive-count { background: rgba(255,255,255,.25); color: #fff; }
.archive-count { background: var(--c-bg-2); padding: .1rem .5rem; border-radius: 10px; font-size: .76rem; font-weight: 600; }
.archive-filter-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.archive-filter-title .badge { font-size: .75rem; background: var(--c-accent-soft, rgba(37,99,235,.08)); color: var(--c-accent); padding: .2rem .6rem; border-radius: 10px; font-weight: 600; }
.archive-welcome { text-align: center; padding: 4rem 2rem; color: var(--c-text-3); }
.archive-welcome-icon { font-size: 3rem; margin-bottom: .5rem; }
.archive-welcome h2 { font-size: 1.15rem; color: var(--c-text); margin-bottom: .5rem; }
@media(max-width:768px){ .archive-layout{grid-template-columns:1fr;} .archive-sidebar{position:static;max-height:none;} }

/* Reading time badge */
.pc-reading-time { font-size: .78rem; color: var(--c-text-3); }
.sp-reading-time { font-size: .88rem; color: var(--c-text-3); }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--c-text-3); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Footer
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.site-footer { margin-top: 4rem; }
.footer-main {
    background: var(--c-dark);
    color: rgba(255,255,255,0.65);
    padding: 4rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 2.5rem;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: #fff;
    display: block;
    margin-bottom: 1rem;
}
.footer-logo:hover { color: #fff; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.5rem; color: rgba(255,255,255,0.5); }
.footer-social { display: flex; gap: 0.75rem; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
}
.social-link:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

.footer-col .widget { background: transparent; border: none; padding: 0; margin-bottom: 0; }
.footer-col .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.15); font-size: 0.95rem; }
.footer-col .widget-list li { border-color: rgba(255,255,255,0.06); }
.footer-col .widget-list li a { color: rgba(255,255,255,0.5); }
.footer-col .widget-list li a:hover { color: #fff; }
.footer-col .widget-list .count { color: rgba(255,255,255,0.3); }
.footer-col .tag-cloud .tag { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.12); background: transparent; }
.footer-col .tag-cloud .tag:hover { color: #fff; border-color: var(--c-accent); background: var(--c-accent); }
.footer-col .footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col .footer-links li a { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.footer-col .footer-links li a:hover { color: #fff; }

.footer-bottom {
    background: #0a0a0a;
    color: rgba(255,255,255,0.4);
    padding: 1.25rem 0;
    font-size: 0.78rem;
}
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
}
.back-to-top:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Responsive
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 1024px) {
    .content-area { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .featured-grid { grid-template-columns: 1fr; }
    .fg-main .fg-image img { min-height: 280px; }
    .fg-secondary .fg-image img { min-height: 180px; }
    .fg-side { flex-direction: row; gap: 4px; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-top { padding: 1rem 0; }
    .logo-text { font-size: 1.75rem; }
    .header-date { display: none; }
    .header-top-inner { grid-template-columns: auto 1fr auto; }
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-dark-2);
        flex-direction: column;
        z-index: 50;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li a { padding: 0.85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.15);
    }
    .nav-menu .sub-menu a { color: rgba(255,255,255,0.6); padding-left: 2.5rem; }

    .featured-slider { aspect-ratio: 4/3; max-height: 320px; }
    .slide-content { padding: 1.25rem 1.5rem; }
    .slide-title { font-size: 1.2rem; }
    .slide-excerpt { display: none; }
    .slider-btn { display: none; }

    .fg-side { flex-direction: column; }
    .post-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .related-grid { grid-template-columns: 1fr; }
    .sp-related-grid { grid-template-columns: 1fr; }
    .post-title { font-size: 1.75rem; }
    .sp-title { font-size: 1.75rem; }
    .hero-banner h1 { font-size: 2rem; }
    .hero-banner { height: 250px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
    .trending-bar { height: 32px; font-size: 0.72rem; }
    .post-meta { flex-direction: column; align-items: flex-start; }
    .sp-meta-bar { flex-direction: column; align-items: flex-start; }
    .share-buttons { justify-content: flex-start; }
    .sp-author-box { flex-direction: column; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-banner h1 { font-size: 1.65rem; }
    .fg-main .fg-image img { min-height: 260px; }
    .fg-content { padding: 1.25rem; }
    .fg-main h2 { font-size: 1.25rem; }
    .post-title { font-size: 1.5rem; }
    .sp-title { font-size: 1.5rem; }
    .sp-excerpt { font-size: 0.95rem; }
    .author-box { flex-direction: column; text-align: center; align-items: center; }
    .sp-author-box { text-align: center; align-items: center; }
    .comment { flex-direction: column; }
    .comment-replies { margin-left: 1rem; }
    .error-code { font-size: 5rem; }
    .error-actions { flex-direction: column; }
}

/* ===== ViewCounter Badge ===== */
.vc-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 0.85rem; }
.vc-badge svg { opacity: 0.7; }
.vc-badge-lg { font-size: 0.95rem; }
.vc-badge-lg svg { width: 16px; height: 16px; }
.vc-card-count { display: inline-flex; align-items: center; gap: 3px; color: var(--c-text-3); font-size: 0.72rem; white-space: nowrap; flex-shrink: 0; }
.vc-card-count svg { opacity: 0.6; }

/* ===== User Rating Box ===== */
.user-rating-box { background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: 12px; padding: 1.5rem; margin: 2rem 0; }
.ur-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.ur-header h3 { font-family: var(--font-heading); font-size: 1.1rem; margin: 0; }
.ur-summary { display: flex; align-items: center; gap: 0.5rem; }
.ur-avg { font-size: 1.5rem; font-weight: 700; color: var(--c-accent); }
.ur-stars-display .ur-star { color: var(--c-border); font-size: 1rem; }
.ur-stars-display .ur-star.filled { color: #f59e0b; }
.ur-count { font-size: 0.85rem; color: var(--c-text-3); }
.ur-form { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.ur-stars { display: flex; flex-direction: row-reverse; gap: 0.15rem; }
.ur-stars input { display: none; }
.ur-stars label { font-size: 1.8rem; color: var(--c-border); cursor: pointer; transition: color 0.15s, transform 0.15s; line-height: 1; }
.ur-stars label:hover, .ur-stars label:hover ~ label,
.ur-stars input:checked ~ label { color: #f59e0b; }
.ur-stars label:hover { transform: scale(1.2); }
.ur-btn { padding: 0.45rem 1.25rem; background: var(--c-accent); color: #fff; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.ur-btn:hover { background: var(--c-accent-hover, #d32f2f); }
.ur-your { font-size: 0.85rem; color: var(--c-text-3); }
.ur-login { font-size: 0.9rem; color: var(--c-text-3); margin: 0; }
.ur-login a { color: var(--c-accent); font-weight: 600; }

/* ===== Newsletter Widget ===== */
.nl-widget { margin-bottom: 2rem; }
.nl-widget .widget-title svg { vertical-align: -2px; margin-right: 4px; }
.nl-desc { font-size: 0.88rem; color: var(--c-text-3); margin-bottom: 1rem; line-height: 1.5; }
.nl-form { display: flex; flex-direction: column; gap: 0.65rem; }
.nl-input-group { display: flex; gap: 0; }
.nl-input {
    width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--c-border);
    border-radius: 6px; font-size: 0.9rem; font-family: inherit;
    background: var(--c-surface); color: var(--c-text); transition: border-color 0.2s;
}
.nl-input:focus { outline: none; border-color: var(--c-accent); }
.nl-input-group .nl-input { border-radius: 6px 0 0 6px; border-right: 0; }
.nl-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 48px; padding: 0 1rem; background: var(--c-accent); color: #fff; border: none;
    border-radius: 0 6px 6px 0; cursor: pointer; transition: background 0.2s; flex-shrink: 0;
}
.nl-btn:hover { background: #c62828; }
.nl-btn svg { stroke: #fff; width: 18px; height: 18px; }
.nl-message { font-size: 0.82rem; min-height: 1.2em; }
.nl-message.success { color: #16a34a; }
.nl-message.error { color: #dc2626; }
.nl-privacy { font-size: 0.75rem; color: var(--c-text-3); opacity: 0.7; }

/* Card style variations */
.nl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.nl-dark { background: #1a1a2e; border: none; border-radius: 10px; padding: 1.25rem; }
.nl-dark .widget-title, .nl-dark .nl-desc { color: #e2e8f0; }
.nl-dark .nl-privacy { color: #94a3b8; }
.nl-dark .nl-input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #f1f5f9; }
.nl-dark .nl-input::placeholder { color: #94a3b8; }

/* Footer newsletter */
.nl-footer { padding: 0; background: transparent !important; border: none !important; border-radius: 0 !important; }
.nl-footer .widget-title { color: #fff; border-bottom: none; padding-bottom: 0; margin-bottom: 0.65rem; font-size: 1rem; }
.nl-footer .nl-desc { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }
.nl-footer .nl-form { gap: 0.75rem; }
.nl-footer .nl-input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #f1f5f9; }
.nl-footer .nl-input::placeholder { color: #64748b; }
.nl-footer .nl-input:focus { border-color: var(--c-accent); background: rgba(255,255,255,0.12); }
.nl-footer .nl-btn { background: var(--c-accent); }
.nl-footer .nl-btn:hover { background: var(--c-accent-dark, #c62828); }
.nl-footer .nl-privacy { color: rgba(255,255,255,0.3); margin-top: 0.25rem; }
.nl-footer .nl-message { min-height: 0; }
.nl-footer .nl-message.success { color: #86efac; }
.nl-footer .nl-message.error { color: #fca5a5; }

/* ===== Banner Ads ===== */
.ba-banner {
    margin-bottom: 1.25rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-border-light);
    background: var(--c-bg-alt);
    position: relative;
}
.ba-banner a { display: block; }
.ba-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}
.ba-banner img:hover { opacity: 0.92; }
.ba-banner > div,
.ba-banner > a > div {
    padding: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--c-text-2);
    background: var(--c-bg-alt) !important;
    border: none !important;
    border-radius: 0;
}
.ba-banner > div strong,
.ba-banner > a > div strong {
    display: block;
    color: var(--c-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.ba-sidebar { border-radius: var(--radius-lg); }
.ba-header {
    border-radius: 0;
    margin-bottom: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}
.ba-in-content {
    margin: 2rem 0;
}

/* Banner label */
.ba-banner::after {
    content: 'Reklam';
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.45rem;
    background: rgba(0,0,0,0.45);
    color: rgba(255,255,255,0.7);
    border-radius: 3px;
    z-index: 2;
    pointer-events: none;
}

/* ===== FeaturedCategories ===== */
.fc-section { margin: 2.5rem 0; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.fc-card { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-alt, #1a1a2e); text-decoration: none; }
.fc-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fc-card:hover .fc-card-img { transform: scale(1.08); }
.fc-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: rgba(255,255,255,.15); background: linear-gradient(135deg,#1e293b,#334155); }
.fc-card-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.7)); }
.fc-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: .85rem; color: #fff; }
.fc-card-content h3 { font-family: var(--font-heading); font-size: .95rem; margin-bottom: .15rem; }
.fc-count { font-size: .75rem; opacity: .75; }
.fc-sub-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fc-sub-tag { font-size: .6rem; background: rgba(255,255,255,.2); padding: 1px 6px; border-radius: 99px; backdrop-filter: blur(4px); }

/* ===== CategoryShowcase (Blog) ===== */
.cs-showcase { margin: 0 0 2.5rem; background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: var(--radius-lg, 14px); padding: 1.5rem 1.75rem; }
.cs-head { margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--c-border-light); }
.cs-head-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--c-text-2); margin: 0; letter-spacing: .02em; text-transform: uppercase; }
.cs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; }
.cs-item { border-bottom: 1px solid var(--c-border-light); }
.cs-item:last-child { border-bottom: none; }
.cs-item-main { display: flex; align-items: center; gap: .75rem; padding: .85rem .25rem; text-decoration: none; color: var(--c-text); transition: background .15s, padding-left .2s; border-radius: 8px; }
.cs-item-main:hover { background: var(--c-bg-alt, rgba(0,0,0,.025)); padding-left: .6rem; }
.cs-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cs-name { flex: 1; font-size: .95rem; font-weight: 600; color: var(--c-text); }
.cs-count { font-size: .75rem; color: var(--c-text-3); background: var(--c-bg-alt, rgba(0,0,0,.04)); padding: 2px 8px; border-radius: 99px; font-weight: 500; min-width: 24px; text-align: center; }
.cs-arrow { color: var(--c-text-3); flex-shrink: 0; opacity: 0; transition: opacity .2s, transform .2s; }
.cs-item-main:hover .cs-arrow { opacity: 1; transform: translateX(3px); }
.cs-sub-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 .25rem .75rem 1.75rem; }
.cs-sub-link { font-size: .78rem; color: var(--c-text-2); text-decoration: none; padding: 3px 12px; border-radius: 99px; background: var(--c-bg-alt, rgba(0,0,0,.035)); transition: all .15s; font-weight: 500; }
.cs-sub-link:hover { background: var(--c-accent); color: #fff; }
.cs-sub-cnt { font-size: .68rem; color: var(--c-text-3); margin-left: 2px; }
.cs-sub-link:hover .cs-sub-cnt { color: rgba(255,255,255,.75); }
@media (max-width: 640px) {
    .cs-showcase { padding: 1.25rem 1rem; }
    .cs-list { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
    .cs-list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
    .cs-item:nth-last-child(1), .cs-item:nth-last-child(2) { border-bottom: none; }
}

/* dark mode */
[data-theme="dark"] .cs-showcase { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .cs-item { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .cs-item-main:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .cs-count { background: rgba(255,255,255,.08); }
[data-theme="dark"] .cs-sub-link { background: rgba(255,255,255,.06); }

/* ===== Category Page ===== */
.cat-breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--c-text-3); margin-bottom: 1rem; flex-wrap: wrap; }
.cat-breadcrumb a { color: var(--c-text-2); text-decoration: none; }
.cat-breadcrumb a:hover { color: var(--c-accent); }
.cat-bc-sep { color: var(--c-text-3); opacity: .5; }
.cat-bc-current { color: var(--c-text); font-weight: 600; }

.cat-hero { margin-bottom: 2rem; }
.cat-hero-inner { position: relative; background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: var(--radius-lg, 14px); padding: 2rem; overflow: hidden; }
.cat-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; }
.cat-hero-content { position: relative; z-index: 1; }
.cat-parent-link { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--c-accent); text-decoration: none; margin-bottom: .5rem; font-weight: 500; }
.cat-parent-link:hover { text-decoration: underline; }
.cat-hero-title { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; color: var(--c-text); }
.cat-hero-desc { color: var(--c-text-2); font-size: .92rem; line-height: 1.6; margin-bottom: .75rem; max-width: 600px; }
.cat-hero-count { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; background: var(--c-accent); color: #fff; padding: .25rem .7rem; border-radius: 99px; font-weight: 600; }

.cat-subs { margin-bottom: 2rem; }
.cat-subs-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; margin-bottom: .75rem; color: var(--c-text); }
.cat-subs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.cat-sub-card { display: flex; align-items: center; gap: .75rem; background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: 10px; padding: .75rem 1rem; text-decoration: none; transition: all .15s; }
.cat-sub-card:hover { border-color: var(--c-accent); box-shadow: 0 2px 8px rgba(0,0,0,.04); transform: translateY(-1px); }
.cat-sub-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cat-sub-icon { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, var(--c-accent), #8b5cf6); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.cat-sub-info { flex: 1; min-width: 0; }
.cat-sub-name { display: block; font-weight: 600; font-size: .88rem; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-sub-count { font-size: .72rem; color: var(--c-text-3); }
.cat-sub-arrow { color: var(--c-text-3); flex-shrink: 0; transition: transform .15s; }
.cat-sub-card:hover .cat-sub-arrow { transform: translateX(3px); color: var(--c-accent); }

@media(max-width:600px) {
    .cat-hero-inner { padding: 1.25rem; }
    .cat-hero-title { font-size: 1.3rem; }
    .cat-subs-grid { grid-template-columns: 1fr; }
}

/* ===== EditorPicks ===== */
.ep-section { margin: 2.5rem 0; }
.ep-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
.ep-main { position: relative; }
.ep-image { display: block; border-radius: 10px; overflow: hidden; }
.ep-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s; }
.ep-main:hover .ep-image img { transform: scale(1.03); }
.ep-content { margin-top: .85rem; }
.ep-badge { display: inline-block; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; padding: .2rem .6rem; border-radius: 3px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .4rem; }
.ep-content h3 { font-family: var(--heading-font); font-size: 1.3rem; line-height: 1.3; margin-bottom: .35rem; }
.ep-content h3 a { color: var(--text); }
.ep-content h3 a:hover { color: var(--accent); }
.ep-content p { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.ep-meta { font-size: .78rem; color: var(--text-muted); display: flex; gap: .5rem; }
.ep-list { display: flex; flex-direction: column; gap: 1rem; }
.ep-item { display: flex; align-items: flex-start; gap: .85rem; }
.ep-num { font-family: var(--heading-font); font-size: 1.4rem; color: rgba(0,0,0,.1); line-height: 1; min-width: 28px; }
.ep-item-content h4 { font-size: .92rem; line-height: 1.3; margin-bottom: .2rem; }
.ep-item-content h4 a { color: var(--text); }
.ep-item-content h4 a:hover { color: var(--accent); }
.ep-sidebar-list { list-style: none; padding: 0; }
.ep-sidebar-item { display: flex; gap: .65rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.ep-sidebar-item:last-child { border-bottom: 0; }
.ep-sidebar-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ep-sidebar-item a { font-size: .85rem; font-weight: 500; color: var(--text); line-height: 1.3; }
.ep-sidebar-item a:hover { color: var(--accent); }
.ep-sidebar-item time { display: block; font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }

/* ===== CookieConsent ===== */
.cc-banner { position: fixed; left: 0; right: 0; z-index: 99998; }
.cc-bottom { bottom: 0; }
.cc-top { top: 0; }

/* ═══════════════════════════════════════════════════════
   Header Auth & User Menu
   ═══════════════════════════════════════════════════════ */
.header-auth-link {
    color: var(--c-text-2);
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}
.header-auth-link:hover { color: var(--c-accent); }

.header-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--c-accent);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .45rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all var(--transition);
    margin-left: .5rem;
}
.header-auth-btn:hover {
    background: var(--c-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,57,70,.3);
}

.header-user-menu { position: relative; }

.header-user-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: 1px solid var(--c-border);
    cursor: pointer;
    padding: .3rem .65rem .3rem .35rem;
    border-radius: 999px;
    transition: all var(--transition);
    color: var(--c-text);
}
.header-user-toggle:hover {
    background: var(--c-bg-alt);
    border-color: var(--c-text-3);
    box-shadow: var(--shadow-sm);
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.header-user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}
.header-user-initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.header-user-name {
    font-size: .82rem;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    min-width: 210px;
    z-index: 1000;
    display: none;
    padding: .5rem 0;
    animation: dropdownIn .2s ease;
}
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.header-user-dropdown.is-active { display: block; }

.header-user-dropdown a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1.1rem;
    font-size: .85rem;
    color: var(--c-text-2);
    text-decoration: none;
    transition: all .15s;
    border-radius: 0;
}
.header-user-dropdown a:hover {
    background: var(--c-bg-alt);
    color: var(--c-text);
}
.header-user-dropdown a svg { opacity: .45; flex-shrink: 0; }
.header-user-dropdown a:hover svg { opacity: .7; }

.header-user-divider {
    height: 1px;
    background: var(--c-border-light);
    margin: .4rem 0;
}
.header-user-dropdown .header-user-logout { color: #dc2626 !important; }
.header-user-dropdown .header-user-logout:hover { background: #fef2f2; }
.header-user-dropdown .header-user-logout svg { opacity: .6; }

/* Notification Bell */
.notification-bell-wrapper { position: relative; }
.notification-bell { position: relative; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0 4px; }
.notification-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 320px;
    background: var(--c-bg-card); border: 1px solid var(--c-border-light); border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.12); z-index: 999; overflow: hidden;
}
.notification-dropdown.is-active { display: block; }
.notif-dropdown-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--c-border-light); font-size: .88rem; }
.notif-mark-all { background: none; border: none; color: var(--c-accent); cursor: pointer; padding: 4px; border-radius: 6px; display: flex; }
.notif-mark-all:hover { background: var(--c-accent-soft, rgba(37,99,235,.08)); }
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-item { display: flex; gap: .6rem; padding: .7rem 1rem; text-decoration: none; color: var(--c-text); border-bottom: 1px solid var(--c-border-light); transition: background .1s; font-size: .84rem; }
.notif-item:hover { background: var(--c-bg-2); }
.notif-item.unread { background: var(--c-accent-soft, rgba(37,99,235,.04)); }
.notif-item-icon { flex-shrink: 0; font-size: 1.1rem; margin-top: 2px; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item-time { font-size: .72rem; color: var(--c-text-3); margin-top: 2px; }
.notif-empty { text-align: center; padding: 2rem 1rem; color: var(--c-text-3); font-size: .88rem; }
.notif-see-all { display: block; text-align: center; padding: .6rem; font-size: .82rem; color: var(--c-accent); font-weight: 600; text-decoration: none; border-top: 1px solid var(--c-border-light); }
.notif-see-all:hover { background: var(--c-bg-2); }

/* Notification page */
.notif-page-list { display: flex; flex-direction: column; gap: .5rem; }
.notif-page-item { display: flex; gap: 1rem; padding: 1rem 1.2rem; border-radius: 10px; background: var(--c-bg-card); border: 1px solid var(--c-border-light); }
.notif-page-item.unread { background: var(--c-accent-soft, rgba(37,99,235,.04)); border-color: var(--c-accent); }
.notif-page-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.notif-page-body { flex: 1; }
.notif-page-title { font-weight: 600; font-size: .92rem; color: var(--c-text); text-decoration: none; }
a.notif-page-title:hover { color: var(--c-accent); }
.notif-page-msg { font-size: .84rem; color: var(--c-text-2); margin-top: .2rem; }
.notif-page-time { font-size: .76rem; color: var(--c-text-3); margin-top: .3rem; display: block; }

/* ═══════════════════════════════════════════════════════
   Auth Pages — Modern Design
   ═══════════════════════════════════════════════════════ */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem 4rem;
    min-height: 60vh;
}
.auth-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-accent), #ff6b81, var(--c-accent-dark));
}
.auth-card--wide { max-width: 580px; }

/* Auth icon badge */
.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c-accent-bg), #fff0f1);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 2px 8px rgba(230,57,70,.12);
}
.auth-icon--register {
    background: linear-gradient(135deg, #ede9fe, #f3e8ff);
    color: #7c3aed;
    box-shadow: 0 2px 8px rgba(124,58,237,.12);
}
.auth-icon--edit {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37,99,235,.12);
}

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--c-text);
    margin-bottom: .4rem;
    letter-spacing: -.02em;
}
.auth-subtitle {
    color: var(--c-text-3);
    font-size: .88rem;
    line-height: 1.5;
}

/* Form elements */
.auth-form .form-group { margin-bottom: 1.2rem; }
.auth-form label {
    display: block;
    font-weight: 600;
    font-size: .82rem;
    color: var(--c-text-2);
    margin-bottom: .4rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.auth-form .form-control {
    width: 100%;
    padding: .7rem .9rem;
    border: 1.5px solid var(--c-border);
    border-radius: 10px;
    font-size: .92rem;
    background: var(--c-bg-alt);
    color: var(--c-text);
    transition: all .2s ease;
    font-family: inherit;
    box-sizing: border-box;
}
.auth-form .form-control:hover {
    border-color: var(--c-text-3);
}
.auth-form .form-control:focus {
    outline: none;
    border-color: var(--c-accent);
    background: var(--c-surface);
    box-shadow: 0 0 0 4px rgba(230,57,70,.08);
}
.auth-form .form-control::placeholder {
    color: var(--c-text-3);
    opacity: .7;
}
.auth-form .form-control.is-invalid {
    border-color: #dc2626;
    background: #fef2f2;
}
.auth-form .form-error {
    color: #dc2626;
    font-size: .78rem;
    margin-top: .3rem;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.auth-form .form-hint {
    display: block;
    font-size: .76rem;
    color: var(--c-text-3);
    margin-top: .3rem;
}
.auth-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Icon input wrapper */
.input-icon-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-3);
    pointer-events: none;
    transition: color .2s;
}
.input-icon-wrapper .form-control--icon {
    padding-left: 2.65rem;
}
.input-icon-wrapper:focus-within .input-icon {
    color: var(--c-accent);
}

/* Form Row (two cols) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

/* Buttons */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem 1rem;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    margin-top: .5rem;
    position: relative;
    overflow: hidden;
}
.btn-auth::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
    opacity: 0;
    transition: opacity .25s;
}
.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230,57,70,.3);
    color: #fff;
}
.btn-auth:hover::after { opacity: 1; }
.btn-auth:active { transform: translateY(0); }

.btn-auth svg { flex-shrink: 0; }

.btn-auth--secondary {
    background: linear-gradient(135deg, var(--c-text-2), var(--c-dark-2));
}
.btn-auth--secondary:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    color: #fff;
}

/* Auth footer */
.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    font-size: .88rem;
    color: var(--c-text-3);
}
.auth-footer a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}
.auth-footer a:hover { color: var(--c-accent-dark); }

.auth-terms {
    text-align: center;
    font-size: .76rem;
    color: var(--c-text-3);
    margin-top: 1rem;
    line-height: 1.5;
}
.auth-terms a {
    color: var(--c-text-2);
    text-decoration: underline;
    text-decoration-color: var(--c-border);
    text-underline-offset: 2px;
}
.auth-terms a:hover { color: var(--c-accent); }

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.25rem 0 1.75rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border);
}
.auth-divider span {
    font-size: .82rem;
    color: var(--c-text-3);
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Alerts */
.alert {
    padding: .75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: .85rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.alert svg { flex-shrink: 0; }
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ═══════════════════════════════════════════════════════
   Avatar Upload — Modern
   ═══════════════════════════════════════════════════════ */
.avatar-upload-modern {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.avatar-upload-preview {
    position: relative;
    flex-shrink: 0;
}
.avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--c-border);
    transition: border-color var(--transition);
}
.avatar-preview--placeholder {
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    border-color: transparent;
}
.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
}
.avatar-upload-preview:hover .avatar-upload-overlay { opacity: 1; }
.avatar-upload-preview:hover .avatar-preview { border-color: var(--c-accent); }

.avatar-upload-info { display: flex; flex-direction: column; gap: .3rem; }
.avatar-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem;
    border: 1.5px solid var(--c-border);
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--c-text-2);
    cursor: pointer;
    transition: all .2s;
    background: var(--c-surface);
}
.avatar-upload-btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-bg);
}

/* ═══════════════════════════════════════════════════════
   Profile Page — Modern Design
   ═══════════════════════════════════════════════════════ */
.profile-page { padding: 0 0 3rem; }

/* Profile Hero */
.profile-hero {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.profile-hero-bg {
    height: 100px;
    background: linear-gradient(135deg, var(--c-accent), #ff6b81, #f472b6);
    position: relative;
}
.profile-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.profile-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0 2rem 0;
    margin-top: -40px;
    position: relative;
    flex-wrap: wrap;
}
.profile-hero-avatar { position: relative; flex-shrink: 0; }
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--c-surface);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.profile-avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    border: 4px solid var(--c-surface);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.profile-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 3px solid var(--c-surface);
    border-radius: 50%;
}

.profile-hero-info {
    flex: 1;
    min-width: 200px;
    padding-top: 2.75rem;
}
.profile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--c-text);
    margin-bottom: .2rem;
    letter-spacing: -.01em;
}
.profile-email {
    color: var(--c-text-3);
    font-size: .88rem;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.profile-email svg { opacity: .5; }
.profile-bio {
    font-size: .9rem;
    color: var(--c-text-2);
    line-height: 1.6;
    margin-bottom: .25rem;
}

.profile-hero-actions {
    flex-shrink: 0;
    padding-top: 2.75rem;
}
.btn-profile-edit {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    background: var(--c-surface);
    color: var(--c-text-2);
    border: 1.5px solid var(--c-border);
    border-radius: 10px;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 500;
    transition: all var(--transition);
}
.btn-profile-edit:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-bg);
    box-shadow: 0 2px 8px rgba(230,57,70,.1);
}

/* Profile Stats */
.profile-stats {
    display: flex;
    border-top: 1px solid var(--c-border-light);
    margin-top: 1.25rem;
}
.profile-stat {
    flex: 1;
    padding: 1rem;
    text-align: center;
    border-right: 1px solid var(--c-border-light);
}
.profile-stat:last-child { border-right: none; }
.profile-stat-value {
    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: var(--c-text);
    margin-bottom: .1rem;
}
.profile-stat-label {
    display: block;
    font-size: .72rem;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
}

/* Profile Content Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Profile Sections */
.profile-section {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
    min-width: 0;
}
.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--c-border-light);
}
.profile-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
    border: none;
}
.profile-section-title svg {
    color: var(--c-text-3);
}
.profile-section-count {
    background: var(--c-bg-alt);
    color: var(--c-text-3);
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
}
.profile-section-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Profile List */
.profile-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--c-border-light) transparent;
}
.profile-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .75rem;
    border-radius: 8px;
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}
.profile-list-item:hover {
    background: var(--c-bg-alt);
}
a.profile-list-item { cursor: pointer; }

.profile-list-content { flex: 1; min-width: 0; overflow: hidden; }
.profile-list-title {
    font-weight: 500;
    font-size: .88rem;
    color: var(--c-text);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.profile-list-item:hover .profile-list-title { color: var(--c-accent); }

.profile-list-date {
    font-size: .75rem;
    color: var(--c-text-3);
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: .15rem;
}
.profile-list-date svg { opacity: .5; }

.profile-comment-item {
    align-items: flex-start;
}
.profile-comment-text {
    font-size: .86rem;
    color: var(--c-text-2);
    margin-bottom: .25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.profile-comment-meta {
    font-size: .75rem;
    color: var(--c-text-3);
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.profile-comment-meta a {
    color: var(--c-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.profile-comment-meta a:hover { text-decoration: underline; }
.profile-comment-meta span {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.profile-comment-meta svg { opacity: .5; }

/* Badges */
.badge-success {
    background: #f0fdf4;
    color: #166534;
    font-size: .7rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}
.badge-warning {
    background: #fffbeb;
    color: #92400e;
    font-size: .7rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid #fde68a;
    white-space: nowrap;
}

/* Profile empty states */
.profile-empty-section {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--c-text-3);
}
.profile-empty-section svg {
    opacity: .25;
    margin-bottom: .5rem;
}
.profile-empty-section p {
    font-size: .85rem;
}

.profile-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 16px;
    margin-top: -.5rem;
}
.profile-empty svg {
    color: var(--c-text-3);
    opacity: .3;
    margin-bottom: .75rem;
}
.profile-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--c-text);
    margin-bottom: .35rem;
}
.profile-empty p {
    color: var(--c-text-3);
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

/* ═══════════════════════════════════════════════════════
   Responsive — Auth & Profile
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .auth-page { padding: 1.5rem .75rem 2.5rem; }
    .auth-card { padding: 1.75rem 1.25rem; border-radius: 12px; }
    .auth-card--wide { max-width: 100%; }
    .form-row { grid-template-columns: 1fr; }

    .profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.25rem;
    }
    .profile-hero-info { padding-top: .5rem; }
    .profile-hero-actions { padding-top: 0; margin-bottom: .5rem; }
    .profile-email { justify-content: center; }
    .profile-stats { flex-wrap: wrap; }
    .profile-stat { min-width: 50%; }
    .profile-stat:nth-child(2) { border-right: none; }

    .profile-content-grid { grid-template-columns: 1fr; }

    .header-user-name { display: none; }

    .avatar-upload-modern { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════
   User Posts Dashboard (.up-*)
   ═══════════════════════════════════════════════════════ */
.up-dashboard { max-width: 100%; }

/* Hero Banner */
.up-hero {
    position: relative;
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.up-hero-bg {
    height: 80px;
    background: linear-gradient(135deg, var(--c-accent), #ff6b81, #f472b6);
}
.up-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.up-hero-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--c-text);
    margin: 0;
    letter-spacing: -0.01em;
}
.up-hero-subtitle {
    font-size: 0.85rem;
    color: var(--c-text-3);
    margin: 0.15rem 0 0;
}

/* Create Button */
.up-btn-create {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: var(--font-body);
    white-space: nowrap;
}
.up-btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.3);
    color: #fff;
}

/* Stats Row */
.up-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.up-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
.up-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.up-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.up-stat-icon--total  { background: #eef2ff; color: #4f46e5; }
.up-stat-icon--published { background: #f0fdf4; color: #16a34a; }
.up-stat-icon--draft  { background: #fffbeb; color: #d97706; }
.up-stat-icon--views  { background: #fdf2f8; color: #db2777; }
.up-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.1;
}
.up-stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-top: 0.1rem;
}

/* Post List Card */
.up-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.up-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--c-border-light);
}
.up-card-title {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text-2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.up-card-count {
    font-size: 0.78rem;
    color: var(--c-text-3);
    font-weight: 500;
}
.up-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--c-border-light);
    display: flex;
    justify-content: center;
}

/* Post Row */
.up-post-list { padding: 0; }
.up-post-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--c-border-light);
    transition: background 0.15s ease;
}
.up-post-row:last-child { border-bottom: none; }
.up-post-row:hover { background: var(--c-bg-alt); }
.up-post-indicator {
    width: 4px;
    height: 36px;
    border-radius: 4px;
    flex-shrink: 0;
}
.up-post-indicator--live { background: linear-gradient(180deg, #22c55e, #16a34a); }
.up-post-indicator--draft { background: linear-gradient(180deg, #f59e0b, #d97706); }
.up-post-body { flex: 1; min-width: 0; }
.up-post-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.3rem; }
.up-post-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.up-post-title a {
    color: var(--c-text);
    text-decoration: none;
    transition: color 0.15s;
}
.up-post-title a:hover { color: var(--c-accent); }
.up-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.up-post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--c-text-3);
}

/* Badges */
.up-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.up-badge--live {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.up-badge--draft {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.up-badge--other {
    background: var(--c-bg-alt);
    color: var(--c-text-3);
    border: 1px solid var(--c-border);
}

/* Action Buttons */
.up-post-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.up-post-row:hover .up-post-actions { opacity: 1; }
.up-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--c-border-light);
    background: var(--c-surface);
    color: var(--c-text-3);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    text-decoration: none;
}
.up-action-btn:hover { background: var(--c-bg-alt); color: var(--c-text); border-color: var(--c-border); }
.up-action-btn--delete:hover { background: #fef2f2; color: var(--c-accent); border-color: #fecaca; }
.up-delete-form { display: inline; }

/* Empty State */
.up-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.up-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--c-accent-bg), #fff0f1);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 2px 8px rgba(230,57,70,0.12);
}
.up-empty-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--c-text);
    margin: 0 0 0.5rem;
}
.up-empty-text {
    font-size: 0.9rem;
    color: var(--c-text-3);
    line-height: 1.7;
    margin: 0 0 1.75rem;
}

/* ═══════════════════════════════════════════════════════
   Post Editor Page (.upe-*)
   ═══════════════════════════════════════════════════════ */
.upe-page { max-width: 100%; }

/* Editor Header */
.upe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--c-border-light);
}
.upe-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.upe-back {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--c-border-light);
    background: var(--c-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-2);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.upe-back:hover {
    background: var(--c-bg-alt);
    border-color: var(--c-border);
    color: var(--c-text);
}
.upe-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--c-text);
    margin: 0;
    line-height: 1.2;
}
.upe-header-hint {
    font-size: 0.78rem;
    color: var(--c-text-3);
    margin-top: 0.1rem;
}
.upe-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--c-border-light);
    border-radius: 8px;
    background: var(--c-surface);
    color: var(--c-text-2);
    text-decoration: none;
    transition: all 0.2s;
}
.upe-preview-btn:hover { border-color: var(--c-border); color: var(--c-text); }

/* Layout */
.upe-form { margin: 0; }
.upe-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.75rem;
    align-items: start;
}

/* Main Column */
.upe-main { display: flex; flex-direction: column; gap: 0; }

/* Title Input */
.upe-field-title { margin-bottom: 0; }
.upe-input-title {
    width: 100%;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--c-text);
    padding: 0.5rem 0;
    background: transparent;
    letter-spacing: -0.02em;
}
.upe-input-title::placeholder { color: var(--c-text-3); opacity: 0.5; }

/* Toolbar */
.upe-toolbar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0.75rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.upe-toolbar-group {
    display: flex;
    gap: 0.15rem;
}
.upe-toolbar-sep {
    width: 1px;
    height: 22px;
    background: var(--c-border);
    margin: 0 0.5rem;
}
.upe-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--c-text-2);
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    font-size: 0.82rem;
    font-family: var(--font-body);
}
.upe-tool:hover {
    background: var(--c-bg-alt);
    color: var(--c-text);
}
.upe-toolbar-right {
    margin-left: auto;
    padding-left: 0.75rem;
}
.upe-word-count {
    font-size: 0.72rem;
    color: var(--c-text-3);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Textarea */
.upe-textarea {
    width: 100%;
    border: 1px solid var(--c-border-light);
    border-radius: 0 0 12px 12px;
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-surface);
    min-height: 380px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.upe-textarea:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(230,57,70,0.06);
}
.upe-textarea::placeholder { color: var(--c-text-3); opacity: 0.5; }
.upe-textarea--sm {
    border-radius: 10px;
    min-height: auto;
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
}

/* Excerpt Section */
.upe-excerpt-section { margin-top: 1rem; }
.upe-excerpt-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-text-2);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: color 0.2s;
}
.upe-excerpt-toggle:hover { color: var(--c-text); }
.upe-excerpt-chevron { transition: transform 0.2s; }
.upe-excerpt-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}
.upe-excerpt-body.is-open {
    max-height: 200px;
    margin-top: 0.5rem;
}
.upe-excerpt-body.is-open + .upe-excerpt-toggle .upe-excerpt-chevron,
.upe-excerpt-body.is-open ~ .upe-excerpt-toggle .upe-excerpt-chevron { transform: rotate(180deg); }

/* Sidebar Panels */
.upe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1.5rem;
}
.upe-panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.upe-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text-2);
    border-bottom: 1px solid var(--c-border-light);
    background: var(--c-bg-alt);
}
.upe-panel-body { padding: 1rem 1.15rem; }

/* Info Box */
.upe-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    margin-bottom: 1rem;
}
.upe-info-box svg { flex-shrink: 0; color: #3b82f6; margin-top: 0.05rem; }
.upe-info-box span { font-size: 0.78rem; color: #374151; line-height: 1.5; }

/* Status Row */
.upe-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--c-border-light);
}
.upe-status-label { font-size: 0.82rem; color: var(--c-text-3); font-weight: 500; }

/* Submit Button */
.upe-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-body);
}
.upe-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.3);
}

/* Checkbox List */
.upe-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 180px;
    overflow-y: auto;
}
.upe-checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.upe-checkbox:hover { background: var(--c-bg-alt); }
.upe-checkbox input[type="checkbox"] { display: none; }
.upe-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--c-border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}
.upe-checkbox input:checked + .upe-checkmark {
    background: var(--c-accent);
    border-color: var(--c-accent);
}
.upe-checkbox input:checked + .upe-checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.upe-checkbox-text { font-size: 0.85rem; color: var(--c-text); }
.upe-hint { font-size: 0.73rem; color: var(--c-text-3); margin-top: 0.5rem; display: block; }

/* Tag Input */
.upe-tag-input-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    border: 1.5px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-bg-alt);
    min-height: 38px;
    transition: border-color 0.2s;
    align-items: center;
}
.upe-tag-input-wrap:focus-within {
    border-color: var(--c-accent);
    background: var(--c-surface);
    box-shadow: 0 0 0 4px rgba(230,57,70,0.06);
}
.upe-tag-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--c-text);
    flex: 1;
    min-width: 80px;
    padding: 0.15rem 0.25rem;
}
.upe-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.45rem 0.2rem 0.6rem;
    background: var(--c-dark);
    color: #fff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.upe-tag-chip button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0 0.15rem;
    font-size: 0.85rem;
    line-height: 1;
    transition: color 0.15s;
}
.upe-tag-chip button:hover { color: #fff; }

/* Author Panel */
.upe-panel--author {
    border: none;
    background: var(--c-bg-alt);
    box-shadow: none;
}
.upe-author-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}
.upe-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.upe-author-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}
.upe-author-name { font-size: 0.85rem; font-weight: 600; color: var(--c-text); }
.upe-author-role { font-size: 0.73rem; color: var(--c-text-3); display: block; }

/* ═══════════════════════════════════════════════════════
   Comment Additions
   ═══════════════════════════════════════════════════════ */
.comment-as {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--c-text-2);
    margin-bottom: 0.5rem;
}
.comment-as strong { color: var(--c-text); }
.comment-login-hint {
    font-size: 0.85rem;
    color: var(--c-text-3);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: 10px;
    border-left: 3px solid var(--c-accent);
}
.comment-login-hint a { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.comment-login-hint a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   Responsive — User Pages
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .upe-layout { grid-template-columns: 1fr; }
    .upe-sidebar { position: static; }
}
@media (max-width: 768px) {
    .up-stats { grid-template-columns: repeat(2, 1fr); }
    .up-hero-content { flex-direction: column; align-items: flex-start; }
    .up-post-row { flex-wrap: wrap; }
    .up-post-actions { width: 100%; justify-content: flex-end; padding-top: 0.5rem; opacity: 1; }
    .up-post-top { flex-wrap: wrap; }
    .upe-input-title { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   GAMIFICATION — Rozet & Rütbe Sistemi
   Prefix: .gbadge-
   ═══════════════════════════════════════════════════════════════════ */

/* ── İnline Badge Pill (yorum yanı / header) ── */
.gbadge-inline {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 20px;
    font-size: 0.68rem; font-weight: 600; color: #fff;
    letter-spacing: 0.01em; vertical-align: middle;
    line-height: 1.4;
}

.gbadge-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 600;
    background: color-mix(in srgb, var(--badge-color, #6366f1) 15%, transparent);
    color: var(--badge-color, #6366f1);
    border: 1px solid color-mix(in srgb, var(--badge-color, #6366f1) 25%, transparent);
}
.gbadge-pill .gbadge-icon { font-size: 0.85rem; }
.gbadge-pill .gbadge-tier { font-size: 0.6rem; opacity: 0.7; letter-spacing: 1px; }

/* ── Section Wrapper ── */
.gbadge-section { margin-top: 1.5rem; }

/* ── Rank Card (Puan & Rütbe) ── */
.gbadge-rank-card {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: 16px; padding: 1.5rem 2rem;
    margin-bottom: 1.25rem; color: #fff;
    box-shadow: 0 8px 32px rgba(67, 56, 202, 0.3);
    position: relative; overflow: hidden;
}
.gbadge-rank-card::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.gbadge-rank-left { display: flex; flex-direction: column; gap: 0.5rem; z-index: 1; }
.gbadge-rank-number {
    font-family: 'DM Serif Display', serif; font-size: 2.5rem;
    line-height: 1; letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gbadge-rank-label { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }
.gbadge-rank-title {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 20px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
    font-size: 0.82rem; font-weight: 600; width: fit-content;
}
.gbadge-rank-stats { display: flex; gap: 2rem; z-index: 1; }
.gbadge-rank-stat { text-align: center; }
.gbadge-rank-stat-val {
    display: block; font-size: 1.35rem; font-weight: 700;
    font-family: 'DM Serif Display', serif;
}
.gbadge-rank-stat-lbl { font-size: 0.68rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Progress Bars ── */
.gbadge-progress-list {
    display: flex; flex-direction: column; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.gbadge-progress-item {
    background: var(--c-surface); border-radius: 12px;
    padding: 0.85rem 1rem; border: 1px solid var(--c-border);
}
.gbadge-progress-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem; font-size: 0.78rem;
}
.gbadge-progress-label { color: var(--c-text); }
.gbadge-progress-label strong { color: var(--c-heading); }
.gbadge-progress-nums { color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
.gbadge-progress-bar {
    height: 6px; border-radius: 3px;
    background: var(--c-border); overflow: hidden;
}
.gbadge-progress-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.gbadge-progress-fill::after {
    content: ''; position: absolute; inset: 0; border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: gbadge-shimmer 2s infinite;
}
@keyframes gbadge-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Badge Collection ── */
.gbadge-collection { display: flex; flex-direction: column; gap: 1.25rem; }
.gbadge-category-title {
    font-size: 0.82rem; font-weight: 600; color: var(--c-heading);
    margin-bottom: 0.6rem; display: flex; align-items: center; gap: 6px;
}
.gbadge-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

/* ── Badge Card ── */
.gbadge-card {
    display: flex; align-items: flex-start; gap: 0.75rem;
    background: var(--c-surface); border-radius: 14px;
    padding: 1rem; border: 1px solid var(--c-border);
    transition: all 0.25s ease;
    position: relative; overflow: hidden;
}
.gbadge-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--badge-color, #6366f1);
    opacity: 0; transition: opacity 0.25s;
}
.gbadge-card:hover {
    border-color: color-mix(in srgb, var(--badge-color, #6366f1) 40%, transparent);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--badge-color, #6366f1) 15%, transparent);
    transform: translateY(-2px);
}
.gbadge-card:hover::before { opacity: 1; }
.gbadge-card-icon {
    font-size: 1.8rem; line-height: 1;
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--badge-color, #6366f1) 10%, transparent);
    flex-shrink: 0;
}
.gbadge-card-body { flex: 1; min-width: 0; }
.gbadge-card-name {
    font-size: 0.82rem; font-weight: 700; color: var(--c-heading);
    margin-bottom: 2px; line-height: 1.3;
}
.gbadge-card-tier {
    font-size: 0.65rem; letter-spacing: 2px;
    color: var(--badge-color, #6366f1); margin-bottom: 4px;
}
.gbadge-card-desc {
    font-size: 0.7rem; color: var(--c-text-muted); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gbadge-card-date {
    font-size: 0.65rem; color: var(--c-text-muted); margin-top: 4px; opacity: 0.7;
}

/* ── Empty State ── */
.gbadge-empty {
    text-align: center; padding: 2.5rem 1rem;
    color: var(--c-text-muted);
}
.gbadge-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.6; }
.gbadge-empty p { font-size: 0.85rem; margin: 0; }
.gbadge-empty-hint { font-size: 0.75rem; opacity: 0.7; margin-top: 0.3rem !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .gbadge-rank-card { flex-direction: column; gap: 1.25rem; padding: 1.25rem; }
    .gbadge-rank-stats { gap: 1.25rem; }
    .gbadge-rank-number { font-size: 2rem; }
    .gbadge-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .gbadge-rank-stats { flex-wrap: wrap; gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════ */

/* ─── Theme Toggle Button ─── */
.theme-toggle { position: relative; }
.theme-toggle svg { transition: transform 0.3s ease; }
.theme-toggle:hover svg { transform: rotate(20deg) scale(1.1); }
.theme-toggle .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }

/* Smooth transition — added via JS after load to prevent FOUC */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.35s ease, color 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ─── Dark Mode Variables ─── */
[data-theme="dark"] {
    --c-bg: #0f1117;
    --c-bg-alt: #161922;
    --c-surface: #1c1f2b;
    --c-text: #e2e5ec;
    --c-text-2: #9299a8;
    --c-text-3: #636b7e;
    --c-border: #2a2e3b;
    --c-border-light: #222636;
    --c-accent: #ff4d5a;
    --c-accent-dark: #ff6b76;
    --c-accent-bg: rgba(255, 77, 90, 0.1);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    color-scheme: dark;
}

/* ─── Header ─── */
[data-theme="dark"] .header-top { background: var(--c-bg); }
[data-theme="dark"] .header-search-toggle:hover,
[data-theme="dark"] .header-icon-btn:hover {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
[data-theme="dark"] .header-auth-link { color: var(--c-text-2); }
[data-theme="dark"] .header-user-toggle { color: var(--c-text); }
[data-theme="dark"] .header-user-toggle:hover { background: var(--c-surface); }

/* Search overlay */
[data-theme="dark"] .search-overlay-form input { border-bottom-color: var(--c-text-3); }

/* Navigation — make it deeper than body for separation */
[data-theme="dark"] .header-nav { background: #080a10; }
@media (max-width: 768px) {
    [data-theme="dark"] .nav-menu { background: #0d0f18; }
    [data-theme="dark"] .nav-menu li a { border-bottom-color: var(--c-border); }
    [data-theme="dark"] .nav-menu .sub-menu { background: rgba(0,0,0,.25); }
}

/* User dropdown */
[data-theme="dark"] .header-user-dropdown { box-shadow: 0 12px 48px rgba(0,0,0,.5); }
[data-theme="dark"] .header-user-dropdown .header-user-logout:hover { background: rgba(220,38,38,.1); }

/* ─── Trending Bar ─── */
[data-theme="dark"] .trending-bar { background: #080a10; }

/* ─── Buttons ─── */
[data-theme="dark"] .btn-primary {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
[data-theme="dark"] .btn-primary:hover {
    background: var(--c-accent-dark);
    border-color: var(--c-accent-dark);
    color: #fff;
}
[data-theme="dark"] .btn-outline {
    color: var(--c-text);
    border-color: var(--c-border);
}
[data-theme="dark"] .btn-outline:hover {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}

/* ─── Section Divider ─── */
[data-theme="dark"] .section-title span { background: var(--c-bg); }

/* ─── Widget ─── */
[data-theme="dark"] .widget-title { border-bottom-color: var(--c-accent); }

/* ─── Post Cards ─── */
[data-theme="dark"] .post-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.45); }

/* ─── Single Post ─── */
[data-theme="dark"] .sp-sponsored-notice {
    background: rgba(146,64,14,.1);
    border-color: rgba(253,230,138,.15);
    color: #fde68a;
}

/* ─── Prose ─── */
[data-theme="dark"] .prose pre,
[data-theme="dark"] .sp-body pre { background: #010409; border-color: rgba(255,255,255,.06); box-shadow: 0 4px 24px rgba(0,0,0,.3); }
[data-theme="dark"] .prose code,
[data-theme="dark"] .sp-body code { background: rgba(255,255,255,.06); color: var(--c-accent); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .prose th { background: var(--c-bg-alt); }

/* ─── Tags ─── */
[data-theme="dark"] .tag:hover,
[data-theme="dark"] .sp-tag:hover {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}

/* ─── Pagination ─── */
[data-theme="dark"] .pagination .active,
[data-theme="dark"] .pagination .current {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
[data-theme="dark"] .pagination a:hover {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}

/* ─── Forms ─── */
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus { border-color: var(--c-accent); }
[data-theme="dark"] .search-form-lg input {
    background: var(--c-surface);
    color: var(--c-text);
    border-color: var(--c-border);
}
[data-theme="dark"] .search-form-lg input:focus { border-color: var(--c-accent); }

/* ─── Alerts ─── */
[data-theme="dark"] .alert-success {
    background: rgba(22,163,74,.1);
    color: #86efac;
    border-color: rgba(34,197,94,.2);
}
[data-theme="dark"] .alert-danger {
    background: rgba(220,38,38,.1);
    color: #fca5a5;
    border-color: rgba(239,68,68,.2);
}

/* ─── Comments ─── */
[data-theme="dark"] .comment { border-color: var(--c-border); }

/* ─── Footer ─── */
[data-theme="dark"] .footer-main { background: #080a10; }
[data-theme="dark"] .footer-bottom { background: #050710; }

/* ─── Auth Pages ─── */
[data-theme="dark"] .auth-card {
    box-shadow: 0 4px 32px rgba(0,0,0,.3);
}
[data-theme="dark"] .auth-card::before {
    background: linear-gradient(90deg, var(--c-accent), #ff6b76, var(--c-accent-dark));
}
[data-theme="dark"] .auth-icon {
    background: rgba(255,77,90,.1);
    box-shadow: 0 2px 8px rgba(255,77,90,.08);
}
[data-theme="dark"] .auth-icon--register {
    background: rgba(124,58,237,.1);
    box-shadow: 0 2px 8px rgba(124,58,237,.08);
}
[data-theme="dark"] .auth-icon--edit {
    background: rgba(37,99,235,.1);
    box-shadow: 0 2px 8px rgba(37,99,235,.08);
}
[data-theme="dark"] .auth-form .form-control.is-invalid {
    border-color: #f87171;
    background: rgba(220,38,38,.08);
}
[data-theme="dark"] .btn-auth--secondary {
    background: linear-gradient(135deg, var(--c-text-3), #3a3f50);
}

/* ─── Badges (status) ─── */
[data-theme="dark"] .badge-success {
    background: rgba(22,163,74,.12);
    color: #86efac;
    border-color: rgba(34,197,94,.25);
}
[data-theme="dark"] .badge-warning {
    background: rgba(217,119,6,.12);
    color: #fde68a;
    border-color: rgba(253,230,138,.2);
}

/* ─── Profile Page ─── */
[data-theme="dark"] .profile-hero { box-shadow: 0 2px 12px rgba(0,0,0,.2); }
[data-theme="dark"] .profile-section { box-shadow: 0 1px 4px rgba(0,0,0,.15); }

/* ─── User Posts Dashboard ─── */
[data-theme="dark"] .up-stat-icon--total { background: rgba(79,70,229,.12); color: #a5b4fc; }
[data-theme="dark"] .up-stat-icon--published { background: rgba(22,163,74,.12); color: #86efac; }
[data-theme="dark"] .up-stat-icon--draft { background: rgba(217,119,6,.12); color: #fde68a; }
[data-theme="dark"] .up-stat-icon--views { background: rgba(219,39,119,.12); color: #f9a8d4; }
[data-theme="dark"] .up-badge--live {
    background: rgba(22,163,74,.12);
    color: #86efac;
    border-color: rgba(34,197,94,.25);
}
[data-theme="dark"] .up-badge--draft {
    background: rgba(217,119,6,.12);
    color: #fde68a;
    border-color: rgba(253,230,138,.2);
}
[data-theme="dark"] .up-action-btn--delete:hover {
    background: rgba(220,38,38,.1);
    border-color: rgba(239,68,68,.25);
}

/* ─── Post Editor ─── */

/* ─── Google AdSense ─── */
.adsense-wrapper { margin: 1.5rem 0; text-align: center; overflow: hidden; clear: both; }
.adsense-wrapper ins { display: block !important; }
.adsense-header { margin: 0 0 1rem; }
.adsense-sidebar { margin: 0 0 1.5rem; }
.adsense-in_content { margin: 2rem 0; padding: 0.5rem 0; border-top: 1px solid var(--c-border, #e5e7eb); border-bottom: 1px solid var(--c-border, #e5e7eb); }
.adsense-post_bottom { margin: 2rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--c-border, #e5e7eb); }
.adsense-in_feed { grid-column: 1 / -1; margin: 0; padding: 1.5rem; background: var(--c-bg-alt, #f8f9fa); border-radius: var(--radius, 10px); }
[data-theme="dark"] .adsense-in_content,
[data-theme="dark"] .adsense-post_bottom { border-color: var(--c-border, #2d2d3d); }
[data-theme="dark"] .adsense-in_feed { background: var(--c-surface, #1e2030); }
[data-theme="dark"] .upe-info-box {
    background: rgba(59,130,246,.06);
    border-color: rgba(59,130,246,.15);
}
[data-theme="dark"] .upe-info-box svg { color: #60a5fa; }
[data-theme="dark"] .upe-info-box span { color: #93c5fd; }
[data-theme="dark"] .upe-tag-chip { background: var(--c-accent); }

/* ─── Error Page ─── */
[data-theme="dark"] .error-code { color: var(--c-text-2); }

/* ─── Newsletter ─── */
[data-theme="dark"] .nl-card {
    background: var(--c-surface);
    border-color: var(--c-border);
}
[data-theme="dark"] .nl-dark {
    background: #0c0e16;
}
[data-theme="dark"] .nl-footer .widget-title { color: #e2e5ec; }
[data-theme="dark"] .nl-footer .nl-desc { color: var(--c-text-3); }
[data-theme="dark"] .nl-footer .nl-input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #e2e5ec;
}
[data-theme="dark"] .nl-footer .nl-input:focus {
    border-color: var(--c-accent);
    background: rgba(255,255,255,0.1);
}
[data-theme="dark"] .nl-footer .nl-privacy { color: var(--c-text-3); }

/* ─── Banner Ads ─── */
[data-theme="dark"] .ba-banner {
    background: var(--c-surface);
    border-color: var(--c-border);
}
[data-theme="dark"] .ba-banner > div,
[data-theme="dark"] .ba-banner > a > div {
    background: var(--c-surface) !important;
    color: var(--c-text-2);
}
[data-theme="dark"] .ba-banner > div strong,
[data-theme="dark"] .ba-banner > a > div strong {
    color: var(--c-text);
}
[data-theme="dark"] .ba-banner::after {
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.5);
}

/* ─── Editor Picks ─── */
[data-theme="dark"] .ep-num { color: rgba(255,255,255,.08); }

/* ─── Gamification ─── */
[data-theme="dark"] .gbadge-progress-bar { background: var(--c-border); }

/* ─── Contact Form ─── */
[data-theme="dark"] .comment-login-hint { background: var(--c-surface); }

/* ─── Scrollbar ─── */
[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--c-bg); }
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--c-border);
    border-radius: 5px;
    border: 2px solid var(--c-bg);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); }

/* ─── Selection ─── */
[data-theme="dark"] ::selection {
    background: rgba(255, 77, 90, 0.3);
    color: #fff;
}

/* ══════════════════════════════════════════
   TABLE OF CONTENTS (TOC)
   ══════════════════════════════════════════ */
.toc-widget{background:var(--c-surface);border:1px solid var(--c-border-light);border-radius:var(--radius-lg,12px);padding:1.25rem 1.5rem;margin-bottom:2rem;font-size:.92rem}
.toc-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;font-weight:600;color:var(--c-text)}
.toc-title{font-family:var(--font-heading);font-size:1rem}
.toc-toggle{margin-left:auto;background:none;border:none;font-size:1.2rem;cursor:pointer;color:var(--c-text-3);padding:0 .25rem;line-height:1}
.toc-toggle:hover{color:var(--c-accent)}
.toc-list{list-style:none;padding:0;margin:0;counter-reset:toc}
.toc-item{counter-increment:toc;padding:6px 0;border-bottom:1px solid var(--c-border-light)}
.toc-item:last-child{border-bottom:none}
.toc-link{color:var(--c-text-2);text-decoration:none;display:flex;align-items:baseline;gap:.5rem;transition:color .2s}
.toc-link::before{content:counter(toc) ".";color:var(--c-accent);font-weight:600;min-width:1.5rem;font-size:.85em}
.toc-link:hover{color:var(--c-accent)}
.toc-link.active{color:var(--c-accent);font-weight:600}
.toc-depth-1{padding-left:1.25rem}
.toc-depth-2{padding-left:2.5rem}
.toc-widget.collapsed .toc-list{display:none}
.toc-widget.collapsed .toc-toggle::after{content:'+'}
@media(max-width:768px){.toc-widget{padding:1rem;font-size:.85rem}}

/* ══════════════════════════════════════════
   CODE SYNTAX HIGHLIGHTING
   ══════════════════════════════════════════ */
/* ── Code blocks (shared) ── */
.sp-body pre,
.prose pre {
    background: #0d1117;
    color: #e6edf3;
    border-radius: 12px;
    padding: 2.5rem 1.25rem 1.25rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: .85rem;
    line-height: 1.75;
    border: 1px solid rgba(255,255,255,.08);
    position: relative;
    margin: 1.75rem 0;
    tab-size: 4;
    -moz-tab-size: 4;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.sp-body pre code,
.prose pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
    border: none;
    border-radius: 0;
}
/* ── Inline code ── */
.sp-body code,
.prose code {
    font-family: var(--font-mono);
    background: var(--c-bg-alt, #f1f5f9);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: .84em;
    color: var(--c-accent-dark, var(--c-accent));
    border: 1px solid var(--c-border-light);
    word-break: break-word;
}
/* ── Language badge ── */
.sp-body pre[data-lang]::before,
.prose pre[data-lang]::before {
    content: attr(data-lang);
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.2rem 0.75rem;
    font-size: .7rem;
    font-family: var(--font-body, sans-serif);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8b949e;
    background: rgba(255,255,255,.06);
    border-radius: 12px 0 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-right: 1px solid rgba(255,255,255,.06);
}
/* ── Copy button ── */
.sp-body pre .copy-btn,
.prose pre .copy-btn {
    position: absolute;
    top: .4rem;
    right: .6rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    color: #8b949e;
    padding: .25rem .65rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: .72rem;
    font-family: var(--font-body, sans-serif);
    opacity: 0;
    transition: all .2s ease;
    z-index: 2;
}
.sp-body pre:hover .copy-btn,
.prose pre:hover .copy-btn { opacity: 1; }
.sp-body pre .copy-btn:hover,
.prose pre .copy-btn:hover { background: rgba(255,255,255,.15); color: #e6edf3; }
.sp-body pre .copy-btn.copied,
.prose pre .copy-btn.copied { background: rgba(46,160,67,.25); color: #3fb950; border-color: rgba(46,160,67,.3); }
/* ── Scrollbar inside code blocks ── */
.sp-body pre::-webkit-scrollbar,
.prose pre::-webkit-scrollbar { height: 6px; }
.sp-body pre::-webkit-scrollbar-track,
.prose pre::-webkit-scrollbar-track { background: transparent; }
.sp-body pre::-webkit-scrollbar-thumb,
.prose pre::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.sp-body pre::-webkit-scrollbar-thumb:hover,
.prose pre::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }
/* ── Prism.js theme overrides (keep our bg, enhance token colors) ── */
.sp-body pre[class*="language-"],
.prose pre[class*="language-"],
.sp-body code[class*="language-"],
.prose code[class*="language-"] { background: #0d1117; }
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #8b949e; font-style: italic; }
.token.punctuation { color: #c9d1d9; }
.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #79c0ff; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #a5d6ff; }
.token.operator, .token.entity, .token.url { color: #d2a8ff; }
.token.atrule, .token.attr-value, .token.keyword { color: #ff7b72; }
.token.function, .token.class-name { color: #d2a8ff; }
.token.regex, .token.important, .token.variable { color: #ffa657; }

/* ══════════════════════════════════════════
   BOOKMARKS / FAVORITES
   ══════════════════════════════════════════ */
.bookmark-btn{display:inline-flex;align-items:center;gap:.4rem;background:var(--c-surface);border:1px solid var(--c-border-light);border-radius:var(--radius-lg,12px);padding:8px 16px;cursor:pointer;font-size:.875rem;color:var(--c-text-2);transition:all .2s}
.bookmark-btn:hover{border-color:var(--c-accent);color:var(--c-accent)}
.bookmark-btn.bookmarked{background:var(--c-accent);color:#fff;border-color:var(--c-accent)}
.bookmark-btn svg{width:18px;height:18px}
.bookmark-count{font-size:.8rem;color:var(--c-text-3)}

/* ══════════════════════════════════════════
   SOCIAL SHARE BUTTONS
   ══════════════════════════════════════════ */
.social-share-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--c-border-light, #e5e7eb);
    border-bottom: 1px solid var(--c-border-light, #e5e7eb);
}
.share-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-text-3, #999);
    white-space: nowrap;
}
.share-buttons {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    opacity: .9;
}
.share-btn:active { transform: translateY(0); }
.share-btn--twitter  { background: #1d9bf0; }
.share-btn--facebook { background: #1877f2; }
.share-btn--linkedin { background: #0a66c2; }
.share-btn--whatsapp { background: #25d366; }
.share-btn--copy {
    background: var(--c-text-3, #6b7280);
    position: relative;
}
.share-btn--copy.copied::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    border-radius: 50%;
    font-size: .85rem;
    animation: copiedPop .3s ease;
}
@keyframes copiedPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@media(max-width:480px) {
    .social-share-bar { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ── Accessibility ── */
.skip-link {
    position: absolute; top: -100px; left: 0; background: var(--c-accent); color: #fff;
    padding: .6rem 1.2rem; font-size: .88rem; font-weight: 600; z-index: 100000;
    border-radius: 0 0 8px 0; transition: top .2s; text-decoration: none;
}
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* ══════════════════════════════════════════
   TOC SCROLL SPY JS
   ══════════════════════════════════════════ */