/* ============================================================================
   Global News Summary - Stylesheet
   Editorial newspaper aesthetic with modern tech accents
   ============================================================================ */

/* --- RESET & VARIABLES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Palette */
    --ink: #0f1419;
    --ink-soft: #1a2332;
    --ink-muted: #536471;
    --ink-faint: #8899a6;
    --paper: #ffffff;
    --paper-warm: #faf9f7;
    --paper-alt: #f3f1ee;
    --rule: #e1ddd8;
    --rule-light: #edeae6;
    --accent: #c2410c;
    --accent-hover: #9a3412;
    --accent-light: #fff7ed;
    --link: #1d4ed8;
    --link-hover: #1e40af;
    /* Harold AI */
    --harold-bg-start: #0f172a;
    --harold-bg-end: #1e1b4b;
    --harold-border: rgba(6, 182, 212, 0.35);
    --harold-glow: rgba(6, 182, 212, 0.12);
    --harold-text: #e2e8f0;
    --harold-accent: #06b6d4;
    --harold-muted: #94a3b8;
    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    /* Spacing */
    --container: 1280px;
    --gap: 1.5rem;
    --radius: 6px;
    --radius-lg: 12px;
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* --- HEADER --- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    backdrop-filter: blur(8px);
}
.header-inner {
    display: flex; align-items: center; gap: 1.5rem;
    height: 60px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-icon { color: var(--accent); font-size: 1.4rem; font-weight: 800; }
.logo-text {
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink);
    white-space: nowrap;
}
.main-nav { display: flex; gap: 0.2rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
    padding: 0.4rem 0.7rem; font-size: 0.82rem; font-weight: 600;
    color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em;
    border-radius: var(--radius); white-space: nowrap;
    transition: background 0.2s var(--ease), color 0.2s;
}
.nav-link:hover { background: var(--paper-alt); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.search-form { display: flex; align-items: center; position: relative; }
.search-input {
    width: 0; padding: 0; border: none; outline: none;
    font-size: 0.9rem; font-family: var(--font-body);
    background: var(--paper-alt); border-radius: var(--radius);
    transition: width 0.3s var(--ease), padding 0.3s;
}
.search-form.active .search-input { width: 200px; padding: 0.45rem 0.75rem; border: 1px solid var(--rule); }
.search-btn {
    padding: 0.45rem; color: var(--ink-muted); border-radius: var(--radius);
    transition: color 0.2s;
}
.search-btn:hover { color: var(--ink); }
.menu-toggle { display: none; padding: 0.4rem; color: var(--ink-muted); }

/* --- BADGES --- */
.badge {
    display: inline-block; padding: 0.2rem 0.6rem;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; border-radius: 3px;
}
.badge-cat { background: var(--ink); color: var(--paper); }
.badge-cat-sm { background: var(--accent-light); color: var(--accent); font-size: 0.6rem; padding: 0.15rem 0.45rem; }
.badge-breaking { background: #dc2626; color: #fff; animation: pulse-badge 2s infinite; }
.badge-breaking-sm { position: absolute; top: 0.5rem; left: 0.5rem; background: #dc2626; color: #fff; font-size: 0.55rem; padding: 0.15rem 0.4rem; border-radius: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
@keyframes pulse-badge { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* --- HEADLINES --- */
.headlines { margin-bottom: 2.5rem; }
.headline-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2px;
    background: var(--ink);
    border: 2px solid var(--ink);
}
.headline-hero {
    position: relative; overflow: hidden;
    aspect-ratio: 16/10; background: var(--ink);
}
.headline-hero .headline-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.headline-hero:hover .headline-img { transform: scale(1.03); }
.headline-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff; display: flex; flex-direction: column; gap: 0.5rem;
}
.headline-overlay .badge-cat { align-self: flex-start; }
.headline-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.headline-spot { font-size: 0.9rem; opacity: 0.85; line-height: 1.4; }
.headline-meta { font-size: 0.75rem; opacity: 0.7; display: flex; gap: 0.75rem; }

.headline-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 2px; background: var(--ink); }
.headline-card-sm {
    display: grid; grid-template-columns: 120px 1fr;
    gap: 0; background: var(--paper); overflow: hidden;
    transition: background 0.2s;
}
.headline-card-sm:hover { background: var(--paper-warm); }
.headline-card-img { width: 100%; height: 100%; object-fit: cover; }
.headline-card-body { padding: 0.6rem 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; justify-content: center; }
.headline-card-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta-time { font-size: 0.7rem; color: var(--ink-muted); }

.headline-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); border-top: 0; margin-top: 0; }
.strip-card { background: var(--paper); padding: 0; overflow: hidden; transition: background 0.2s; }
.strip-card:hover { background: var(--paper-warm); }
.strip-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.strip-card .badge-cat-sm { margin: 0.5rem 0.6rem 0.3rem; }
.strip-title { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; line-height: 1.25; padding: 0 0.6rem 0.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- CONTENT LAYOUT --- */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; margin-top: 2rem; }

/* --- SECTION HEADING --- */
.section-heading {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
    padding-bottom: 0.6rem; margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--ink);
    display: flex; align-items: center; gap: 0.5rem;
}
.comment-count-badge {
    background: var(--accent); color: #fff; font-size: 0.7rem;
    padding: 0.15rem 0.5rem; border-radius: 10px; font-family: var(--font-body);
}

/* --- ARTICLE GRID --- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.article-card {
    display: flex; flex-direction: column; background: var(--paper);
    border: 1px solid var(--rule-light); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow 0.3s var(--ease), transform 0.2s;
}
.article-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-img-wrap { position: relative; overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.4s var(--ease); }
.article-card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-title {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.card-excerpt { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--ink-faint); margin-top: auto; flex-wrap: wrap; }
.card-author { font-weight: 600; color: var(--ink-muted); }
.card-stats { margin-left: auto; display: flex; gap: 0.5rem; }

/* --- SIDEBAR --- */
.sidebar { position: sticky; top: 76px; align-self: start; }
.sidebar-block { margin-bottom: 2rem; }
.sidebar-heading {
    font-family: var(--font-display); font-size: 1rem; font-weight: 800;
    display: flex; align-items: center; gap: 0.4rem;
    padding-bottom: 0.5rem; margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--ink);
}
.sidebar-heading svg { color: var(--accent); }
.sidebar-list { list-style: none; counter-reset: sidebar; }
.sidebar-item {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--rule-light);
}
.sidebar-rank {
    flex-shrink: 0; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--ink-faint);
    border: 1.5px solid var(--rule); border-radius: 50%;
}
.sidebar-item:nth-child(-n+3) .sidebar-rank { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sidebar-item-body { flex: 1; min-width: 0; }
.sidebar-item-link { font-size: 0.82rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.sidebar-item-link:hover { color: var(--accent); }
.sidebar-stat { font-size: 0.65rem; color: var(--ink-faint); margin-top: 0.15rem; display: block; }
.sidebar-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }

/* --- ARTICLE DETAIL --- */
.breadcrumb { font-size: 0.75rem; color: var(--ink-faint); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.breadcrumb a { color: var(--ink-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--rule); }
.breadcrumb .current { color: var(--ink-muted); }

.article-detail { max-width: 780px; }
.article-header { margin-bottom: 1.5rem; }
.article-header .badge-cat { margin-bottom: 0.75rem; }
.article-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1.15; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.article-spot { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 1rem; }
.article-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.meta-text { display: flex; flex-direction: column; gap: 0.1rem; }
.author-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.author-name:hover { color: var(--accent); }
.meta-row { font-size: 0.75rem; color: var(--ink-faint); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.meta-dot { color: var(--rule); }

/* Article body */
.article-body {
    font-size: 1.08rem; line-height: 1.78; color: var(--ink-soft);
    margin-bottom: 2rem;
}
.article-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 2rem 0 0.75rem; }
.article-body h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 1.5rem 0 0.6rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body a { color: var(--link); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.article-body a:hover { border-bottom-color: var(--link); }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 1rem 1.25rem; margin: 1.5rem 0; background: var(--paper-warm); font-style: italic; color: var(--ink-muted); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body figure { margin: 1.5rem 0; }
.article-body figure img { border-radius: var(--radius); }
.article-body figcaption { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.5rem; text-align: center; }

.article-hero-img { margin-bottom: 2rem; }
.article-hero-img img { width: 100%; border-radius: var(--radius-lg); }
.article-hero-img figcaption { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.5rem; padding: 0 0.25rem; }
.img-credit { font-style: italic; }
.img-credit::before { content: " — "; }

.article-source { font-size: 0.82rem; color: var(--ink-faint); padding: 0.75rem 0; border-top: 1px solid var(--rule-light); margin-bottom: 1rem; }
.article-source a { color: var(--link); }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; }
.tag-chip {
    padding: 0.3rem 0.7rem; font-size: 0.75rem; font-weight: 500;
    background: var(--paper-alt); color: var(--ink-muted);
    border-radius: 20px; border: 1px solid var(--rule-light);
    transition: background 0.2s, color 0.2s;
}
.tag-chip:hover { background: var(--ink); color: var(--paper); }

/* --- HAROLD AI SUMMARY --- */
.harold-summary { margin-bottom: 2rem; }
.harold-inner {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--harold-bg-start), var(--harold-bg-end));
    border: 1px solid var(--harold-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 30px var(--harold-glow), 0 4px 20px rgba(0,0,0,0.2);
}
.harold-bg-pattern {
    position: absolute; inset: 0; opacity: 0.06;
    background-image:
        radial-gradient(circle at 25% 25%, var(--harold-accent) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--harold-accent) 1px, transparent 1px),
        linear-gradient(var(--harold-accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--harold-accent) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 20px 20px, 20px 20px;
    background-position: 0 0, 20px 20px, 0 0, 0 0;
}
.harold-content { position: relative; padding: 1.25rem 1.5rem; }
.harold-header {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.harold-icon { color: var(--harold-accent); }
.harold-label {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--harold-accent);
}
.harold-ai-badge {
    font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700;
    padding: 0.15rem 0.4rem; border-radius: 3px;
    background: rgba(6, 182, 212, 0.15); color: var(--harold-accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.harold-text {
    font-size: 0.95rem; line-height: 1.65; color: var(--harold-text);
    animation: haroldFadeIn 0.8s var(--ease) both;
}
.harold-footer {
    margin-top: 0.75rem; font-size: 0.65rem; color: var(--harold-muted);
    display: flex; gap: 0.75rem; align-items: center;
    font-family: var(--font-mono);
}
.harold-model {
    background: rgba(6, 182, 212, 0.1); padding: 0.1rem 0.4rem;
    border-radius: 3px; color: var(--harold-accent);
}
@keyframes haroldFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SHARE BUTTONS --- */
.share-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.share-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover { transform: scale(1.1); }
.share-twitter { background: #000; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }
.share-reddit { background: #ff4500; }
.share-email { background: var(--ink-muted); }
.share-copy { background: var(--ink-soft); }
.share-bottom { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--rule-light); }
.share-bottom h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }

/* --- ARTICLE PREV/NEXT NAV --- */
.article-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
    margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule-light);
}
.article-nav-link {
    display: flex; flex-direction: column; gap: 0.35rem;
    padding: 1rem 1.25rem; border-radius: var(--radius-lg);
    background: var(--paper-alt); transition: background 0.2s, transform 0.2s;
}
.article-nav-link:hover { background: var(--rule-light); transform: translateY(-2px); }
.article-nav-next { text-align: right; align-items: flex-end; }
.article-nav-label {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--ink-faint);
}
.article-nav-title {
    font-family: var(--font-display); font-size: 0.92rem; font-weight: 700;
    line-height: 1.35; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- DETAIL LAYOUT (article + sidebar) --- */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; margin-top: 2rem; }
.detail-content { min-width: 0; }
.detail-sidebar { position: sticky; top: 76px; align-self: start; }

/* --- RELATED --- */
.related-section { margin-top: 3rem; margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.related-card { transition: transform 0.2s; }
.related-card:hover { transform: translateY(-3px); }
.related-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.5rem; }
.related-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card time { font-size: 0.7rem; color: var(--ink-faint); }

/* --- COMMENTS --- */
.comments-section { margin-top: 3rem; max-width: 780px; }
.comment-form-wrap { margin-bottom: 2rem; }
.comment-auth { text-align: center; padding: 2rem; background: var(--paper-alt); border-radius: var(--radius-lg); }
.comment-auth p { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.btn-google-auth {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1.25rem; background: var(--paper); border: 1px solid var(--rule);
    border-radius: var(--radius); font-size: 0.85rem; font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: box-shadow 0.2s;
}
.btn-google-auth:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.comment-form { display: flex; flex-direction: column; gap: 0.75rem; }
.comment-form-user { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--ink-muted); }
.comment-form-user img { width: 28px; height: 28px; border-radius: 50%; }
.form-row { position: relative; }
.form-input, .form-textarea {
    width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--rule);
    border-radius: var(--radius); font-size: 0.88rem; font-family: var(--font-body);
    background: var(--paper); color: var(--ink); transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--ink-muted); outline: none; }
.form-textarea { resize: vertical; min-height: 100px; }
.char-count { position: absolute; bottom: 0.5rem; right: 0.75rem; font-size: 0.65rem; color: var(--ink-faint); }
.form-actions { display: flex; gap: 0.5rem; }
.btn-submit {
    padding: 0.6rem 1.5rem; background: var(--ink); color: var(--paper);
    border-radius: var(--radius); font-size: 0.85rem; font-weight: 600;
    transition: background 0.2s;
}
.btn-submit:hover { background: var(--ink-soft); }
.btn-cancel { padding: 0.6rem 1rem; color: var(--ink-muted); font-size: 0.85rem; font-weight: 500; }
.form-message { font-size: 0.8rem; min-height: 1.2em; }
.form-message.success { color: #16a34a; }
.form-message.error { color: #dc2626; }

.comments-list { }
.comments-loading { text-align: center; padding: 2rem; color: var(--ink-faint); font-size: 0.85rem; }
.comment-item {
    padding: 1rem 0; border-bottom: 1px solid var(--rule-light);
    display: flex; gap: 0.75rem;
}
.comment-item.reply { margin-left: 2.5rem; }
.comment-item.reply-deep { margin-left: 5rem; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--paper-alt); }
.comment-content { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.comment-nick { font-weight: 600; font-size: 0.85rem; }
.comment-time { font-size: 0.7rem; color: var(--ink-faint); }
.comment-edited { font-size: 0.65rem; color: var(--ink-faint); font-style: italic; }
.comment-text { font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); word-break: break-word; }
.comment-actions { display: flex; gap: 0.75rem; margin-top: 0.4rem; }
.comment-actions button { font-size: 0.72rem; color: var(--ink-faint); font-weight: 500; transition: color 0.2s; display: flex; align-items: center; gap: 0.25rem; }
.comment-actions button:hover { color: var(--ink); }

/* --- PAGINATION --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin-top: 2.5rem; padding: 1rem 0; }
.page-btn, .page-num {
    padding: 0.45rem 0.85rem; font-size: 0.82rem; font-weight: 500;
    border: 1px solid var(--rule); border-radius: var(--radius);
    color: var(--ink-muted); transition: all 0.2s;
}
.page-btn:hover, .page-num:hover { background: var(--paper-alt); color: var(--ink); }
.page-num.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-dots { color: var(--ink-faint); padding: 0 0.25rem; }

/* --- PAGE HEADER --- */
.page-header { margin-bottom: 2rem; }
.page-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 0.3rem; }
.page-desc { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 0.3rem; }
.page-count { font-size: 0.78rem; color: var(--ink-faint); }

/* --- AUTHOR PROFILE --- */
.author-profile { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.author-profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-job { color: var(--ink-muted); font-size: 0.85rem; margin-bottom: 0.3rem; }
.author-bio { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 0.5rem; }
.author-links { display: flex; gap: 0.75rem; }
.author-links a { font-size: 0.78rem; color: var(--link); font-weight: 500; }

/* --- STATIC PAGE --- */
.static-page { max-width: 780px; margin: 0 auto; }
.static-body { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.static-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 2rem 0 0.75rem; }
.static-body p { margin-bottom: 1.25rem; }
.static-updated { font-size: 0.8rem; color: var(--ink-faint); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule-light); }

/* --- ERROR PAGE --- */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-code { font-family: var(--font-display); font-size: 6rem; font-weight: 800; color: var(--rule); line-height: 1; }
.error-msg { font-size: 1.1rem; color: var(--ink-muted); margin: 1rem 0 2rem; }
.btn-primary { display: inline-block; padding: 0.7rem 1.5rem; background: var(--ink); color: var(--paper); border-radius: var(--radius); font-weight: 600; transition: background 0.2s; }
.btn-primary:hover { background: var(--ink-soft); }

/* --- EMPTY STATE --- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-muted); }

/* --- FOOTER --- */
.site-footer {
    margin-top: 4rem; padding: 3rem 0 1.5rem;
    background: var(--ink); color: rgba(255,255,255,0.7);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo-icon, .footer-brand .logo-text { color: #fff; }
.footer-tagline { font-size: 0.82rem; margin-top: 0.5rem; opacity: 0.6; }
.footer-nav h4 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.footer-nav a { display: block; font-size: 0.82rem; padding: 0.2rem 0; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; text-align: center; opacity: 0.5; }

/* --- TOAST --- */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--ink); color: #fff; padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg); font-size: 0.85rem; font-weight: 500;
    z-index: 9999; transition: transform 0.3s var(--ease);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .headline-grid { grid-template-columns: 1fr; }
    .headline-side { grid-template-rows: auto; grid-template-columns: repeat(2, 1fr); }
    .headline-strip { grid-template-columns: repeat(3, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 1rem; z-index: 99; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .headline-side { grid-template-columns: 1fr; }
    .headline-strip { grid-template-columns: repeat(2, 1fr); }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav-next { text-align: left; align-items: flex-start; }
    .headline-title { font-size: 1.3rem; }
    .article-title { font-size: 1.8rem; }
    .sidebar { grid-template-columns: 1fr; }
    .detail-sidebar { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .search-form.active .search-input { width: 150px; }
    .comment-item.reply { margin-left: 1.25rem; }
    .comment-item.reply-deep { margin-left: 2.5rem; }
}

@media (max-width: 480px) {
    .article-grid { grid-template-columns: 1fr; }
    .headline-strip { grid-template-columns: 1fr; }
    .article-title { font-size: 1.5rem; }
    .article-body { font-size: 1rem; }
}
