/*
Theme Name: FofocaBR
Theme URI: https://fofocabr.com.br
Author: FofocaBR
Description: Portal de fofoca e entretenimento estilo TMZ para WordPress.
Version: 2.0.0
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: fofocabr
Tags: news, entertainment, magazine, custom-menu, featured-images, translation-ready
*/

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

:root {
    --red:       #E8192C;
    --red-dark:  #B50F1E;
    --black:     #000000;
    --white:     #FFFFFF;
    --gray-100:  #F5F5F5;
    --gray-200:  #EBEBEB;
    --gray-300:  #DDDDDD;
    --gray-400:  #BBBBBB;
    --gray-600:  #777777;
    --gray-800:  #333333;
    --yellow:    #FFD600;
    --font-head: 'Source Sans Pro', 'Arial Black', sans-serif;
    --font-body: 'Source Sans Pro', Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   BREAKING NEWS BAR
   ============================================================ */
.breaking-bar {
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    height: 36px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
}
.breaking-label {
    background: var(--black);
    color: var(--yellow);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    flex-shrink: 0;
}
.breaking-dot {
    width: 7px; height: 7px;
    background: var(--red);
    border-radius: 50%;
    animation: blink 1s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.ticker-outer { overflow: hidden; flex: 1; }
.ticker-inner {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-ticker 40s linear infinite;
    padding-left: 100%;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-inner a {
    color: var(--white);
    margin-right: 60px;
    font-size: 13px;
    font-weight: 700;
}
.ticker-inner a::before { content: '▶ '; font-size: 9px; opacity: .7; }
.ticker-inner a:hover { text-decoration: underline; }
@keyframes scroll-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}
.site-logo a {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.logo-text {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 44px;
    color: var(--white);
    letter-spacing: -1px;
    line-height: 1;
}
.logo-text span { color: var(--red); }
.logo-tagline {
    font-size: 9px;
    font-weight: 700;
    color: #666;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-search-form {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    overflow: hidden;
}
.header-search-form input[type="search"] {
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 13px;
    padding: 7px 12px;
    width: 200px;
    font-family: var(--font-body);
}
.header-search-form input::placeholder { color: #666; }
.header-search-form button {
    background: var(--red);
    border: none;
    color: var(--white);
    padding: 7px 12px;
    font-size: 14px;
}
.header-search-form button:hover { background: var(--red-dark); }
.btn-live {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 7px 16px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .15s;
}
.btn-live:hover { background: var(--red-dark); }
.btn-live .dot {
    width: 7px; height: 7px;
    background: var(--yellow);
    border-radius: 50%;
    animation: blink 1s ease infinite;
}

/* ============================================================
   PRIMARY NAV — idêntico ao TMZ
   ============================================================ */
#site-nav {
    background: var(--black);
    border-top: 1px solid #222;
    border-bottom: 3px solid var(--red);
}
.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-wrap::-webkit-scrollbar { display: none; }
#primary-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
#primary-menu > li > a {
    display: block;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 12px 16px;
    white-space: nowrap;
    border-right: 1px solid #1a1a1a;
    transition: color .12s, background .12s;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a {
    color: var(--yellow);
    background: #111;
}
#primary-menu > li.menu-item-hot > a {
    color: var(--yellow);
}
/* Dropdown */
#primary-menu li { position: relative; }
#primary-menu li ul {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: var(--black);
    min-width: 180px;
    border-top: 2px solid var(--red);
    z-index: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
#primary-menu li:hover > ul { display: block; }
#primary-menu li ul li a {
    display: block;
    color: #ccc;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 14px;
    border-bottom: 1px solid #1a1a1a;
    transition: color .1s, background .1s;
}
#primary-menu li ul li a:hover { color: var(--white); background: #1a1a1a; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.site-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 960px) {
    .site-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO POST — TMZ style: big image + red label + huge title
   ============================================================ */
.hero-post {
    margin-bottom: 4px;
    border-bottom: 3px solid var(--red);
}
.hero-post a { display: block; position: relative; overflow: hidden; }
.hero-post .hero-img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.hero-post a:hover .hero-img { transform: scale(1.02); }
.hero-post .hero-img-placeholder {
    width: 100%;
    aspect-ratio: 16/7;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}
.hero-text {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px;
}
.hero-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 3px 9px;
    margin-bottom: 8px;
}
.hero-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(22px, 3vw, 40px);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 8px;
}
.hero-meta {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-meta strong { color: var(--white); }

/* ============================================================
   SECTION HEADER — TMZ red bar style
   ============================================================ */
.section-head {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 20px 0 12px;
    border-bottom: 3px solid var(--red);
    padding-bottom: 6px;
}
.section-head-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 16px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--red);
    color: var(--white);
    padding: 4px 14px;
    margin-right: 10px;
}
.section-head-line { flex: 1; }
.section-head-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.section-head-link:hover { text-decoration: underline; }

/* ============================================================
   TMZ FEED — vertical list identical to TMZ homepage
   ============================================================ */
.tmz-feed { display: flex; flex-direction: column; gap: 0; }

.feed-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 0;
    transition: background .12s;
}
.feed-item:hover { background: var(--gray-100); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.feed-item:first-child { padding-top: 0; }

.feed-thumb-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--black);
}
.feed-thumb {
    width: 280px;
    height: 175px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.feed-item:hover .feed-thumb { transform: scale(1.04); }
.feed-thumb-placeholder {
    width: 280px;
    height: 175px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.feed-video-icon {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(232,25,44,.92);
    color: var(--white);
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.feed-body {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}
.feed-cat {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
}
.feed-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 20px;
    line-height: 1.2;
    color: var(--black);
    transition: color .12s;
}
.feed-item:hover .feed-title { color: var(--red); }
.feed-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-meta {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.feed-meta .author { color: var(--gray-600); font-weight: 700; }
.feed-meta .views { color: var(--red); font-weight: 700; }

@media (max-width: 600px) {
    .feed-item { grid-template-columns: 1fr; }
    .feed-thumb, .feed-thumb-placeholder { width: 100%; height: auto; aspect-ratio: 16/9; }
    .feed-body { padding: 10px 0 0; }
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.load-more-wrap { text-align: center; padding: 24px 0; }
.btn-load-more {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 40px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-load-more:hover { background: var(--red); }
.btn-load-more.loading { opacity: .6; pointer-events: none; }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

.video-card { cursor: pointer; }
.video-card-thumb {
    position: relative;
    overflow: hidden;
    background: var(--black);
    aspect-ratio: 16/9;
}
.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s, opacity .25s;
}
.video-card:hover .video-card-thumb img { transform: scale(1.04); opacity: .85; }
.video-card-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    background: #111;
}
.video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background: rgba(232,25,44,.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s, background .15s;
}
.video-play-btn svg { margin-left: 3px; }
.video-card:hover .video-play-btn { transform: translate(-50%,-50%) scale(1.1); background: var(--red); }
.video-duration {
    position: absolute; bottom: 6px; right: 7px;
    background: rgba(0,0,0,.8);
    color: var(--white);
    font-size: 11px; font-weight: 700;
    padding: 2px 6px;
}
.video-card-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: var(--black);
    padding: 8px 0 4px;
    transition: color .12s;
}
.video-card:hover .video-card-title { color: var(--red); }
.video-card-meta { font-size: 11px; color: var(--gray-400); }

/* ============================================================
   PHOTO GALLERY STRIP
   ============================================================ */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 20px;
}
@media (max-width: 600px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }

.gallery-strip-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--black);
}
.gallery-strip-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s, opacity .25s;
}
.gallery-strip-item:hover img { transform: scale(1.08); opacity: .8; }
.gallery-strip-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 4px;
}
.gallery-strip-item:hover .overlay { opacity: 1; }

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget-box {
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.widget-box-title {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.widget-box-title .accent { color: var(--red); }
.widget-box-body { padding: 12px; }

/* Sidebar trending list */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background .1s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--gray-100); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.trending-rank {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 26px;
    color: var(--gray-300);
    min-width: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.trending-item:nth-child(1) .trending-rank { color: var(--red); }
.trending-item:nth-child(2) .trending-rank { color: #aaa; }
.trending-item:nth-child(3) .trending-rank { color: #c8a84b; }
.trending-thumb {
    width: 72px; height: 54px;
    object-fit: cover;
    flex-shrink: 0;
}
.trending-thumb-placeholder {
    width: 72px; height: 54px;
    background: var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.trending-info {}
.trending-cat {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 3px;
}
.trending-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    color: var(--black);
    transition: color .1s;
}
.trending-item:hover .trending-title { color: var(--red); }
.trending-time { font-size: 11px; color: var(--gray-400); margin-top: 3px; }

/* Sidebar newsletter */
.newsletter-box {
    background: var(--black);
    padding: 18px;
    text-align: center;
}
.newsletter-box h3 {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 26px;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1;
}
.newsletter-box h3 span { color: var(--red); }
.newsletter-box p { font-size: 12px; color: #777; margin-bottom: 12px; line-height: 1.5; }
.newsletter-box input[type="email"] {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--white);
    padding: 9px 12px;
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    margin-bottom: 8px;
}
.newsletter-box input::placeholder { color: #555; }
.newsletter-box button {
    width: 100%;
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 10px;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .15s;
}
.newsletter-box button:hover { background: var(--red-dark); }

/* Sidebar ad placeholder */
.ad-box {
    background: var(--gray-100);
    border: 1px dashed var(--gray-300);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    min-height: 250px;
    color: var(--gray-400);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    gap: 6px;
}
.ad-box .ad-size { font-size: 18px; font-weight: 900; color: var(--gray-300); }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 5px 11px;
    background: var(--gray-100);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    transition: background .12s, color .12s, border-color .12s;
}
.tag-pill:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-wrap {}

.single-post-header { margin-bottom: 16px; }
.single-post-cat {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 3px 10px;
    margin-bottom: 10px;
}
.single-post-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 12px;
}
.single-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--gray-600);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}
.single-post-meta .author { font-weight: 700; color: var(--black); }
.single-post-meta .sep { color: var(--gray-300); }

/* Share bar — TMZ style: horizontal colored buttons */
.share-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}
.share-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-600);
    margin-right: 4px;
}
.share-btn {
    color: var(--white);
    border: none;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.twitter  { background: #000; }
.share-btn.facebook { background: #1877F2; }
.share-btn.copy     { background: var(--gray-600); }
.share-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    margin-left: auto;
}

/* Featured image */
.single-featured-img { width: 100%; display: block; margin-bottom: 6px; }
.single-featured-caption {
    font-size: 12px;
    color: var(--gray-600);
    font-style: italic;
    padding: 6px 0 14px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 16px;
}

/* Post body */
.single-post-body {
    font-size: 18px;
    line-height: 1.75;
    color: var(--gray-800);
}
.single-post-body p { margin-bottom: 20px; }
.single-post-body h2 {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 24px;
    color: var(--black);
    margin: 32px 0 12px;
    padding-bottom: 6px;
    border-bottom: 3px solid var(--red);
}
.single-post-body h3 {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 20px;
    color: var(--black);
    margin: 24px 0 10px;
}
.single-post-body blockquote {
    border-left: 5px solid var(--red);
    background: var(--gray-100);
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    color: var(--black);
    line-height: 1.4;
}
.single-post-body img { max-width: 100%; margin: 20px auto; }
.single-post-body ul, .single-post-body ol { margin: 16px 0 16px 24px; }
.single-post-body ul li { list-style: disc; margin-bottom: 8px; }
.single-post-body ol li { list-style: decimal; margin-bottom: 8px; }
.single-post-body a { color: var(--red); text-decoration: underline; }

/* Post tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 8px;
}
.post-tags .label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-600);
}

/* Author box */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--gray-100);
    border-left: 4px solid var(--red);
    padding: 16px;
    margin: 24px 0;
}
.author-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-avatar-placeholder {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--gray-300);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.author-info {}
.author-name {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 16px;
    color: var(--black);
    margin-bottom: 4px;
}
.author-bio { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* Related posts */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

.related-card { cursor: pointer; }
.related-card a { display: block; }
.related-card .thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}
.related-card .thumb-placeholder {
    width: 100%; aspect-ratio: 16/10;
    background: var(--gray-200);
    display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.related-card:hover .thumb { opacity: .85; }
.related-card .r-cat {
    font-size: 10px; font-weight: 900;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--red); margin: 8px 0 4px;
}
.related-card .r-title {
    font-family: var(--font-head);
    font-weight: 700; font-size: 15px;
    line-height: 1.25; color: var(--black);
    transition: color .1s;
}
.related-card:hover .r-title { color: var(--red); }
.related-card .r-time { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* Comments */
.comments-area { margin-top: 28px; padding-top: 20px; border-top: 3px solid var(--red); }
.comments-title {
    font-family: var(--font-head);
    font-weight: 900; font-size: 20px;
    color: var(--black); margin-bottom: 16px;
}
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.comment-author { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.comment-date { font-size: 11px; color: var(--gray-400); margin-bottom: 8px; }
.comment-body { font-size: 14px; color: var(--gray-800); line-height: 1.6; }
.comment-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    padding: 9px 12px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    margin-bottom: 12px;
    transition: border-color .12s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--red); }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form .submit {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 11px 28px;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background .15s;
}
.comment-form .submit:hover { background: var(--red-dark); }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
    background: var(--black);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.archive-tag {
    background: var(--red);
    color: var(--white);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 3px 9px;
}
.archive-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 22px;
    color: var(--white);
}
.archive-count { font-size: 13px; color: #666; margin-left: auto; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px 0;
}
.page-numbers {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-weight: 700; font-size: 14px;
    color: var(--black);
    border: 1px solid var(--gray-300);
    background: var(--white);
    transition: background .12s, color .12s, border-color .12s;
}
.page-numbers:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.page-numbers.current { background: var(--red); color: var(--white); border-color: var(--red); }
.page-numbers.dots { border: none; background: none; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-header {
    padding: 16px 0;
    border-bottom: 3px solid var(--red);
    margin-bottom: 20px;
}
.search-header h1 {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 24px;
    color: var(--black);
}
.search-header h1 span { color: var(--red); }
.search-header p { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* ============================================================
   404
   ============================================================ */
.not-found-wrap {
    text-align: center;
    padding: 60px 20px;
}
.not-found-wrap .code {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 120px;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
}
.not-found-wrap h2 {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 28px;
    margin-bottom: 12px;
}
.not-found-wrap p { font-size: 16px; color: var(--gray-600); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
    background: var(--black);
    margin-top: 40px;
    color: #666;
}
.footer-top {
    border-bottom: 1px solid #1a1a1a;
    padding: 36px 16px;
}
.footer-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
@media (max-width: 800px) { .footer-top-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top-inner { grid-template-columns: 1fr; } }

.footer-brand .footer-logo {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 36px;
    color: var(--white);
    line-height: 1;
    margin-bottom: 10px;
}
.footer-brand .footer-logo span { color: var(--red); }
.footer-brand p { font-size: 13px; color: #555; line-height: 1.6; max-width: 260px; }

.footer-col h4 {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--red);
}
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col ul li a {
    font-size: 13px;
    color: #555;
    transition: color .12s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: #333; }
.footer-bottom-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 12px; color: #333; transition: color .12s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ============================================================
   UTILS
   ============================================================ */
.screen-reader-text {
    position: absolute; clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%); height: 1px; width: 1px;
    overflow: hidden; white-space: nowrap;
}
