/* ============================================
   AIEksen Custom Theme — Professional AI News
   ============================================ */

/* Screen-reader only (SEO H1 helper) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --color-bg: #0a0e17;
    --color-surface: #111827;
    --color-surface-2: #1a2236;
    --color-surface-3: #0f1729;
    --color-border: #1e293b;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-dim: #64748b;
    --color-accent: #3b82f6;
    --color-accent-glow: rgba(59, 130, 246, 0.15);
    --color-accent-2: #06b6d4;
    --color-accent-3: #8b5cf6;
    --color-white: #ffffff;
    --color-tag-bg: rgba(59, 130, 246, 0.12);
    --color-tag-text: #60a5fa;
    --color-red: #ef4444;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --max-width: 1280px;
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-h);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header-inner {
    max-width: var(--max-width); margin: 0 auto;
    padding: 0 24px; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 32px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.site-logo-link { display: flex; align-items: center; }
.site-logo-img { height: 32px; width: auto; }
.site-logo-text {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 400;
    color: var(--color-white); letter-spacing: -0.02em;
}
.logo-accent { color: var(--color-accent); }

/* Navigation */
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
    display: block; padding: 6px 14px; border-radius: 6px;
    font-size: 0.875rem; font-weight: 500; color: var(--color-text-muted);
    transition: all 0.2s;
}
.site-nav li a:hover,
.site-nav li.nav-current a { color: var(--color-white); background: var(--color-surface); }

.search-btn {
    background: none; border: none; color: var(--color-text-muted);
    cursor: pointer; padding: 8px; border-radius: 8px; transition: all 0.2s;
}
.search-btn:hover { color: var(--color-white); background: var(--color-surface); }

.btn-subscribe {
    display: inline-flex; align-items: center;
    padding: 8px 18px; border-radius: 8px;
    background: var(--color-accent); color: var(--color-white);
    font-size: 0.8125rem; font-weight: 600;
    transition: all 0.25s; border: none; cursor: pointer;
}
.btn-subscribe:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--color-text-muted); cursor: pointer; padding: 8px; }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(10,14,23,0.95); backdrop-filter: blur(20px);
    display: none; align-items: center; justify-content: center;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; color: var(--color-text-muted); cursor: pointer; padding: 8px;
}
.mobile-nav-links ul { list-style: none; text-align: center; }
.mobile-nav-links li a {
    display: block; padding: 14px 32px; font-size: 1.25rem; font-weight: 500;
    color: var(--color-text); transition: color 0.2s;
}
.mobile-nav-links li a:hover { color: var(--color-accent); }

/* ===== BREAKING NEWS ===== */
.breaking-bar {
    background: linear-gradient(90deg, var(--color-red), #dc2626);
    padding: 6px 0; overflow: hidden;
}
.breaking-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 16px;
}
.breaking-badge {
    background: var(--color-white); color: var(--color-red);
    padding: 2px 10px; border-radius: 4px;
    font-size: 0.6875rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; white-space: nowrap; flex-shrink: 0;
}
.breaking-text {
    font-size: 0.8125rem; font-weight: 500; color: var(--color-white);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.breaking-text a { color: var(--color-white); }
.breaking-text a:hover { text-decoration: underline; }

/* ===== HERO ===== */
.hero-section { position: relative; overflow: hidden; }
.hero-link { display: block; position: relative; }
.hero-image-wrap { position: relative; width: 100%; aspect-ratio: 21/9; overflow: hidden; }
.hero-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-link:hover .hero-image { transform: scale(1.03); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,23,0.97) 0%, rgba(10,14,23,0.7) 35%, rgba(10,14,23,0.2) 60%, transparent 100%);
}
.hero-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 48px 48px;
    max-width: var(--max-width); margin: 0 auto;
}
.hero-tag {
    display: inline-block; padding: 4px 12px; border-radius: 4px;
    background: var(--color-accent); color: var(--color-white);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 14px;
}
.hero-title {
    font-family: var(--font-display); font-size: 3rem; font-weight: 400;
    line-height: 1.12; color: var(--color-white); margin-bottom: 14px; max-width: 800px;
}
.hero-excerpt { font-size: 1.05rem; color: var(--color-text-muted); max-width: 600px; margin-bottom: 16px; line-height: 1.6; }
.hero-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--color-text-dim); }
.hero-sep { opacity: 0.4; }

/* ===== SUB-HERO 3-COLUMN ===== */
.sub-hero {
    max-width: var(--max-width); margin: 0 auto;
    padding: 32px 24px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    border-bottom: 1px solid var(--color-border);
}
.sub-hero-card { display: flex; gap: 14px; padding: 12px; border-radius: var(--radius-md); transition: background 0.2s; }
.sub-hero-card:hover { background: var(--color-surface); }
.sub-hero-img { width: 100px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.sub-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sub-hero-info { display: flex; flex-direction: column; justify-content: center; }
.sub-hero-tag {
    font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--color-accent); margin-bottom: 4px;
}
.sub-hero-title {
    font-size: 0.875rem; font-weight: 600; color: var(--color-white); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== CONTENT LAYOUT ===== */
.content-wrap {
    max-width: var(--max-width); margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid; grid-template-columns: 1fr 340px; gap: 48px;
}
.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.section-title {
    font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: var(--color-border); }
.see-all { font-size: 0.75rem; font-weight: 600; color: var(--color-text-dim); white-space: nowrap; transition: color 0.2s; }
.see-all:hover { color: var(--color-accent); }

/* ===== POST GRID ===== */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.post-card {
    background: var(--color-surface); border-radius: var(--radius-md);
    overflow: hidden; border: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease-out backwards;
}
.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }
.post-card:hover {
    border-color: rgba(59,130,246,0.3); transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.1);
}
.post-card-link { display: block; height: 100%; }
.post-card-image { position: relative; overflow: hidden; aspect-ratio: 16/9; margin: 0; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.post-card:hover .post-card-image img { transform: scale(1.06); }
.post-card-content { padding: 20px; }
.post-card-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    background: var(--color-tag-bg); color: var(--color-tag-text);
    font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 8px;
}
.post-card-title {
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 400;
    line-height: 1.3; color: var(--color-white); margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-excerpt {
    font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--color-text-dim); }
.meta-sep { opacity: 0.4; }

/* ===== FEATURED / ANALYSIS SECTION ===== */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.featured-big {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 16/10; border: 1px solid var(--color-border); transition: all 0.3s; display: block;
}
.featured-big:hover { border-color: rgba(59,130,246,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.featured-big img { width: 100%; height: 100%; object-fit: cover; }
.featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,23,0.95) 0%, rgba(10,14,23,0.4) 50%, transparent 100%);
}
.featured-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }
.featured-tag {
    display: inline-block; padding: 3px 10px; border-radius: 4px;
    background: rgba(139,92,246,0.9); color: #fff;
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 10px;
}
.featured-title {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
    line-height: 1.25; color: var(--color-white); margin-bottom: 8px;
}
.featured-excerpt {
    font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-list { display: flex; flex-direction: column; gap: 16px; }
.featured-list-item {
    display: flex; gap: 16px; padding: 14px;
    background: var(--color-surface); border-radius: var(--radius-md);
    border: 1px solid var(--color-border); transition: all 0.2s;
}
.featured-list-item:hover { border-color: rgba(59,130,246,0.2); background: var(--color-surface-2); }
.featured-list-img { width: 120px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.featured-list-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-list-info { display: flex; flex-direction: column; justify-content: center; }
.featured-list-tag {
    font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--color-accent-2); margin-bottom: 6px;
}
.featured-list-title {
    font-size: 0.9375rem; font-weight: 600; color: var(--color-white); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px;
}
.featured-list-meta { font-size: 0.6875rem; color: var(--color-text-dim); }

/* ===== HORIZONTAL LIST CARDS ===== */
.list-section { margin-bottom: 48px; }
.list-cards { display: flex; flex-direction: column; gap: 12px; }
.list-card {
    display: flex; gap: 18px; padding: 16px;
    background: var(--color-surface); border-radius: var(--radius-md);
    border: 1px solid var(--color-border); transition: all 0.25s;
}
.list-card:hover { border-color: rgba(59,130,246,0.2); transform: translateX(4px); }
.list-card-img { width: 180px; height: 110px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.list-card-img img { width: 100%; height: 100%; object-fit: cover; }
.list-card-body { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.list-card-tag {
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--color-accent); margin-bottom: 6px;
}
.list-card-title {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 400;
    line-height: 1.3; color: var(--color-white); margin-bottom: 6px;
}
.list-card-excerpt {
    font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-card-meta { font-size: 0.75rem; color: var(--color-text-dim); }

/* ===== NEWSLETTER BANNER ===== */
.newsletter-banner { max-width: var(--max-width); margin: 0 auto 48px; padding: 0 24px; }
.newsletter-inner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1729 50%, #1a1040 100%);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-lg); padding: 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    position: relative; overflow: hidden;
}
.newsletter-inner::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%); border-radius: 50%;
}
.newsletter-text { position: relative; z-index: 1; }
.newsletter-text h3 { font-family: var(--font-display); font-size: 1.75rem; color: var(--color-white); margin-bottom: 8px; }
.newsletter-text p { font-size: 0.9375rem; color: var(--color-text-muted); max-width: 420px; }
.newsletter-form-wrap { position: relative; z-index: 1; }
.btn-newsletter {
    display: inline-block; padding: 14px 36px; border-radius: 8px;
    background: var(--color-accent); color: var(--color-white);
    font-size: 1rem; font-weight: 600; transition: all 0.25s;
}
.btn-newsletter:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,130,246,0.3); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget {
    background: var(--color-surface); border-radius: var(--radius-md);
    border: 1px solid var(--color-border); padding: 24px;
}
.widget-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--color-text); margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 1px solid var(--color-border);
}
.widget-title svg { color: var(--color-accent); }

/* Trending */
.trending-list { display: flex; flex-direction: column; gap: 4px; }
.trending-item { display: flex; align-items: flex-start; gap: 14px; padding: 10px 8px; border-radius: 8px; transition: background 0.2s; }
.trending-item:hover { background: var(--color-surface-2); }
.trending-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-accent); opacity: 0.5; min-width: 24px; line-height: 1; padding-top: 2px; }
.trending-info { flex: 1; }
.trending-title { font-size: 0.875rem; font-weight: 500; color: var(--color-text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trending-date { font-size: 0.75rem; color: var(--color-text-dim); margin-top: 4px; display: block; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-item { text-align: center; padding: 14px 8px; background: var(--color-surface-2); border-radius: var(--radius-sm); }
.stat-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-accent); }
.stat-label { font-size: 0.6875rem; color: var(--color-text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
    display: inline-block; padding: 6px 14px; border-radius: 20px;
    background: var(--color-surface-2); color: var(--color-text-muted);
    font-size: 0.8125rem; font-weight: 500; border: 1px solid var(--color-border); transition: all 0.2s;
}
.tag-chip:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-glow); }

/* Subscribe Widget */
.subscribe-widget {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    text-align: center; border-color: rgba(59,130,246,0.2);
}
.subscribe-icon { margin-bottom: 12px; color: var(--color-accent); }
.subscribe-widget h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--color-white); }
.subscribe-widget p { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 16px; }
.btn-subscribe-widget {
    display: inline-block; padding: 10px 28px; border-radius: 8px;
    background: var(--color-accent); color: var(--color-white);
    font-size: 0.875rem; font-weight: 600; transition: all 0.25s;
}
.btn-subscribe-widget:hover { background: #2563eb; }

/* ===== PAGINATION ===== */
.pagination-wrap { text-align: center; padding: 0 24px 60px; }
.btn-load-more {
    display: inline-block; padding: 14px 36px; border-radius: 8px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    color: var(--color-text); font-size: 0.9375rem; font-weight: 600; transition: all 0.25s;
}
.btn-load-more:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ===== POST (ARTICLE) PAGE ===== */
.post-template .post-header { max-width: 780px; margin: 0 auto; padding: 48px 24px 32px; text-align: center; }
.post-template .post-tag-link { display: inline-block; padding: 4px 12px; border-radius: 4px; background: var(--color-accent); color: var(--color-white); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.post-template .post-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; line-height: 1.15; color: var(--color-white); margin-bottom: 16px; }
.post-template .post-meta-bar { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.875rem; color: var(--color-text-dim); }
.post-template .post-author-name { color: var(--color-text); font-weight: 600; }
.post-template .post-feature-wrap { max-width: 960px; margin: 0 auto 40px; padding: 0 24px; }
.post-template .post-feature-wrap img { width: 100%; border-radius: var(--radius-lg); }

.gh-content { max-width: 720px; margin: 0 auto; padding: 0 24px 60px; font-size: 1.0625rem; line-height: 1.8; color: var(--color-text); }
.gh-content h2 { font-family: var(--font-display); font-size: 1.75rem; margin: 40px 0 16px; color: var(--color-white); }
.gh-content h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 32px 0 12px; color: var(--color-white); }
.gh-content p { margin-bottom: 20px; }
.gh-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.gh-content a:hover { color: #60a5fa; }
.gh-content blockquote { border-left: 3px solid var(--color-accent); padding-left: 20px; margin: 24px 0; color: var(--color-text-muted); font-style: italic; }
.gh-content img { border-radius: var(--radius-md); margin: 24px 0; }
.gh-content ul, .gh-content ol { padding-left: 24px; margin-bottom: 20px; }
.gh-content li { margin-bottom: 8px; list-style: disc; }
.gh-content ol li { list-style: decimal; }
.gh-content code { background: var(--color-surface-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.gh-content pre { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; overflow-x: auto; margin: 24px 0; }
.gh-content pre code { background: none; padding: 0; }

/* Post Tags & Related */
.post-tags { max-width: 720px; margin: 0 auto; padding: 0 24px 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { display: inline-block; padding: 4px 12px; border-radius: 4px; background: var(--color-surface); color: var(--color-text-muted); font-size: 0.8125rem; border: 1px solid var(--color-border); transition: all 0.2s; }
.post-tags a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.related-posts { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px 60px; border-top: 1px solid var(--color-border); }
.related-posts .section-header { margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ===== TAG PAGE ===== */
.tag-header { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px 0; text-align: center; }
.tag-header h1 { font-family: var(--font-display); font-size: 2rem; color: var(--color-white); margin-bottom: 8px; }
.tag-header .tag-count { font-size: 0.875rem; color: var(--color-text-dim); }
.tag-content { max-width: var(--max-width); margin: 0 auto; padding: 32px 24px 60px; }

/* ===== AUTHOR PAGE ===== */
.author-header { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; display: flex; align-items: center; gap: 24px; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--color-accent); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h1 { font-family: var(--font-display); font-size: 1.75rem; color: var(--color-white); margin-bottom: 4px; }
.author-info .author-bio { font-size: 0.9375rem; color: var(--color-text-muted); }
.author-content { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 60px; }

/* ===== ERROR PAGE ===== */
.error-page { text-align: center; padding: 120px 24px; }
.error-code { font-family: var(--font-display); font-size: 6rem; color: var(--color-accent); opacity: 0.3; }
.error-message { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 24px; }
.error-link { display: inline-block; padding: 12px 28px; border-radius: 8px; background: var(--color-accent); color: var(--color-white); font-weight: 600; transition: all 0.25s; }
.error-link:hover { background: #2563eb; }

/* ===== FOOTER ===== */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 48px 24px 0; margin-top: 24px; }
.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 40px;
}
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-white); display: block; margin-bottom: 12px; }
.footer-desc { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.5; max-width: 300px; }
.footer-nav h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-dim); margin-bottom: 16px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 0.875rem; color: var(--color-text-muted); transition: color 0.2s; }
.footer-nav a:hover { color: var(--color-white); }
.footer-social h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-dim); margin-bottom: 16px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--color-surface-2); color: var(--color-text-muted); transition: all 0.2s;
}
.social-links a:hover { color: var(--color-white); background: var(--color-accent); }
.footer-bottom {
    border-top: 1px solid var(--color-border); padding: 20px 0;
    max-width: var(--max-width); margin: 0 auto;
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: var(--color-text-dim);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-wrap { grid-template-columns: 1fr; }
    .sidebar { order: -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .hero-title { font-size: 2.2rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-inner { flex-direction: column; text-align: center; padding: 32px; }
    .newsletter-text p { max-width: 100%; }
}

@media (max-width: 768px) {
    .site-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-image-wrap { aspect-ratio: 16/9; }
    .hero-title { font-size: 1.6rem; }
    .hero-excerpt { display: none; }
    .hero-content { padding: 20px; }
    .sub-hero { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
    .post-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .list-card { flex-direction: column; }
    .list-card-img { width: 100%; height: 180px; }
    .related-grid { grid-template-columns: 1fr; }
    .post-template .post-title { font-size: 1.75rem; }
    .breaking-inner { gap: 10px; }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .content-wrap { padding: 24px 16px 40px; }
    .hero-title { font-size: 1.35rem; }
    .post-card-title { font-size: 1.1rem; }
    .btn-subscribe { display: none; }
}

/* ============================================
   Author Box (E-E-A-T)
   ============================================ */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    margin: 40px 0 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-box-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}
.author-box-info { flex: 1; }
.author-box-name { margin: 0 0 6px; font-size: 1.1rem; }
.author-box-name a { color: var(--color-text); text-decoration: none; }
.author-box-name a:hover { color: var(--color-accent); }
.author-box-bio {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 10px;
}
.author-box-meta { display: flex; gap: 12px; }
.author-box-meta a {
    color: var(--color-accent);
    font-size: 0.85rem;
    text-decoration: none;
}
.author-box-meta a:hover { text-decoration: underline; }
@media (max-width: 480px) {
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .author-box-meta { justify-content: center; }
}

/* ============================================
   Author Page
   ============================================ */
.author-page { padding: 40px 0; }
.author-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}
.author-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
}
.author-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-3));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}
.author-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}
.author-bio {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}
.author-count {
    color: var(--color-text-dim);
    font-size: 0.875rem;
}
@media (max-width: 768px) {
    .author-header { padding: 32px 20px 28px; }
    .author-name { font-size: 1.5rem; }
}

/* Koenig Editor Required Classes */
.kg-width-wide { margin: 24px -40px; }
.kg-width-full { margin: 24px calc(50% - 50vw); width: 100vw; }
.kg-image { max-width: 100%; height: auto; display: block; margin: 24px auto; }
