/*
Theme Name: Haber
Theme URI: https://faselis.com
Author: Faselis
Description: Çok-varyantlı Türkçe haber teması (gazeta / retnews / echo / usnews). Her alt-site kendi kimliğiyle.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: haber
*/

/* ===== Değişkenler / temel ===== */
:root {
  --accent: #e00000;
  --accent-dark: #b00000;
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;
  --ink: #17171b;
  --muted: #7a7a86;
  --line: #e6e6ea;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: #2f2f37;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0; }

/* ===== Üst bar + header ===== */
.site-top { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.site-top-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.site-top.dark { background: #17171b; color: #b9b9c2; }
.site-top.light { background: #f5f5f7; color: #8a8a93; border-bottom: 1px solid var(--line); }
.social span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 9px; margin-left: 6px; }
.site-top.light .social span { background: #e3e3e8; color: #6a6a72; }

.masthead { padding: 22px 0; }
.masthead.center { text-align: center; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.01em; color: var(--ink); display: inline-block; }
.brand .brand-accent { color: var(--accent); }
@media (min-width: 640px) { .brand { font-size: 44px; } }

.mainnav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.mainnav-inner { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 0; align-items: center; }
.mainnav.center .mainnav-inner { justify-content: center; }
.mainnav a { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: #52525b; }
.mainnav a:hover, .mainnav a.home { color: var(--accent); }
.mainnav a.home { font-weight: 700; color: var(--ink); }

/* ===== Kategori rozeti (dolgulu) ===== */
.cat-badge {
  display: inline-block; font-family: var(--font-body); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 2px; line-height: 1.5;
}
.cat-badge:hover { background: var(--accent-dark); color: #fff; }

/* ===== Bölüm başlığı ===== */
.sec-head { margin: 0 0 18px; }
.sec-title { font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.sec-head { border-bottom: 1px solid var(--line); padding-bottom: 6px; position: relative; }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 46px; height: 3px; background: var(--accent); }

/* ===== Hero (overlay) ===== */
.hero { position: relative; overflow: hidden; border-radius: 6px; display: block; min-height: 380px; }
.hero.big { min-height: 452px; }
.hero.side { min-height: 218px; }
.hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s; }
.hero:hover img { transform: scale(1.04); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.25) 55%, transparent); }
.hero .pad { position: absolute; inset: 0; z-index: 2; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero .cat-badge { color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 2px; align-self: flex-start; margin-bottom: 8px; }
.hero h2 { color: #fff; font-size: 22px; }
.hero .h-meta { color: #d6d6de; font-size: 11px; text-transform: uppercase; margin-top: 8px; }
.hero h2 a { color: #fff; }
.hero h2 a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero .cat-badge { position: relative; z-index: 2; }
.hero.side h2 { font-size: 17px; }
@media (min-width: 900px) { .hero.big h2 { font-size: 32px; } }

/* ===== Kart ızgarası ===== */
.grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 620px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3,1fr); } .grid.cols-4 { grid-template-columns: repeat(4,1fr); } }
.card-img { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 16/10; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card .card-meta { margin: 10px 0 4px; }
.card-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.card:hover .card-title { color: var(--accent); }
.card-excerpt { color: var(--muted); font-size: 14px; margin-top: 6px; }
.no-img { display: block; aspect-ratio: 16/10; background: linear-gradient(135deg,#e9e9ee,#f6f6f9); border-radius: 6px; }

/* ===== İçerik + kenar çubuğu ===== */
.layout { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
@media (min-width: 980px) { .layout { grid-template-columns: 2fr 1fr; } }
.section { margin-top: 44px; }

/* yatay küçük kart */
.hlist { display: flex; flex-direction: column; }
.hitem { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hitem .thumb { width: 108px; flex: none; border-radius: 5px; overflow: hidden; aspect-ratio: 4/3; background: #eee; }
.hitem .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hitem h3 { font-size: 16px; font-weight: 700; margin-top: 4px; }
.hitem:hover h3 { color: var(--accent); }

/* popüler numaralı */
.popular { list-style: none; margin: 0; padding: 0; }
.popular li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.popular .num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--accent); line-height: 1; }
.popular h3 { font-size: 15px; font-weight: 700; }
.popular li:hover h3 { color: var(--accent); }

/* ===== Tekil yazı ===== */
.single { max-width: 800px; margin: 30px auto; }
.single .cat-badge { margin-bottom: 10px; }
.single-title { font-size: 34px; margin-bottom: 10px; }
.single-meta { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 20px; }
.single-featured { border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.single-content { font-size: 18px; line-height: 1.85; color: #2c2c34; }
.single-content p { margin: 0 0 1.2em; }
.single-content a { color: var(--accent); text-decoration: underline; }
.source-note { margin-top: 24px; border-left: 4px solid var(--accent); background: #f7f7f9; padding: 12px 16px; font-size: 14px; color: #555; }

/* ===== arşiv ===== */
.archive-head { margin: 30px 0 26px; }
.archive-head h1 { font-size: 30px; text-transform: uppercase; display: inline-block; border-bottom: 3px solid var(--accent); padding-bottom: 6px; }

/* ===== footer ===== */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: #fafafa; padding: 30px 0; color: var(--muted); font-size: 14px; }
.site-footer .fx { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.site-footer a { color: var(--ink); }

/* ============================================================
   VARYANTLAR
   ============================================================ */

/* GAZETA (yzdunyasi) — Oswald sıkışık, kırmızı, yoğun */
body.v-gazeta { --font-display: "Oswald", sans-serif; --font-body: "Raleway", sans-serif; }
body.v-gazeta .brand, body.v-gazeta .sec-title, body.v-gazeta .card-title { text-transform: uppercase; letter-spacing: .01em; }
body.v-gazeta .cat-badge { }

/* RETNEWS (tuketici) — Montserrat/Poppins, gül-kırmızısı, overlay mozaik */
body.v-retnews { --font-display: "Montserrat", sans-serif; --font-body: "Poppins", sans-serif; }
body.v-retnews .card-title, body.v-retnews .sec-title { letter-spacing: -.01em; }

/* ECHO (mobil) — Bona Nova serif + DM Sans, mavi */
body.v-echo { --font-display: "Bona Nova", Georgia, serif; --font-body: "DM Sans", sans-serif; }
body.v-echo .brand { letter-spacing: 0; }

/* USNEWS (bt) — Source Sans, kırmızı, portal */
body.v-usnews { --font-display: "Source Sans 3", sans-serif; --font-body: "Source Sans 3", sans-serif; }
body.v-usnews .brand, body.v-usnews .sec-title { text-transform: uppercase; }

/* Slider (usnews) */
.slider { position: relative; overflow: hidden; border-radius: 8px; }
.slides { display: flex; transition: transform .5s ease; }
.slide { position: relative; min-width: 100%; }
.slide .hero { border-radius: 0; }
.slider .dots { position: absolute; bottom: 14px; right: 20px; z-index: 5; display: flex; gap: 8px; }
.slider .dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.slider .dots button.on { width: 22px; background: var(--accent); }
.slider .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(0,0,0,.4); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 999px; font-size: 22px; cursor: pointer; }
.slider .arrow.prev { left: 12px; } .slider .arrow.next { right: 12px; }
.slider .arrow:hover { background: var(--accent); }

/* Trend şeridi (retnews) */
.trending { background: #f2f2f4; border-bottom: 1px solid var(--line); }
.trending-inner { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 12px 0; }
@media (min-width: 720px) { .trending-inner { grid-template-columns: repeat(3,1fr); } }
.trending .ti { display: flex; gap: 12px; align-items: center; }
.trending .ti img { width: 64px; height: 46px; object-fit: cover; border-radius: 4px; flex: none; }
.trending .ti h4 { font-size: 13px; font-weight: 700; }
.trending .ti:hover h4 { color: var(--accent); }

/* ===== Gazeta 3-kolon + newspaper başlık ===== */
.nsec { margin: 0 0 16px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.nsec h2 { display: inline-block; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; border-left: 5px solid var(--accent); padding-left: 10px; }
.three { display: grid; gap: 30px; }
@media (min-width: 980px) {
  .three { grid-template-columns: 1fr 2fr 1fr; }
  .col-center { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 26px; }
}
.col-center { order: -1; }
@media (min-width: 980px) { .col-center { order: 0; } }
.hl-list { list-style: none; margin: 0; padding: 0; }
.hl { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hl a { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.35; }
.hl a:hover { color: var(--accent); }
.lead-img { display: block; border-radius: 6px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16/10; }
.lead-img img { width: 100%; height: 100%; object-fit: cover; }
.lead-title { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 6px 0 8px; }
.lead a:hover .lead-title { color: var(--accent); }
.lead-ex { color: var(--muted); font-size: 15px; margin: 0; }
.more { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.center-list { margin-top: 22px; }
.feed-item { padding: 13px 0; border-bottom: 1px dotted var(--line); }
.feed-item h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 5px 0; }
.feed-item:hover h3 { color: var(--accent); }
.feed-ex { color: var(--muted); font-size: 13px; margin: 0; }
.dt { color: #aaa; font-size: 11px; }

/* ===== Echo lead satırı ===== */
.lead-row { display: grid; gap: 28px; }
@media (min-width: 900px) { .lead-row { grid-template-columns: 2fr 1fr; } }
.lead-side { display: flex; flex-direction: column; }
