/*
Theme Name: Eski Gazeteci News
Author: Eski Gazeteci
Description: Premium newspaper-inspired layout (Hurriyet-like).
Version: 1.4
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800;900&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #f3f4f6;
  --paper: #ffffff;
  --ink: #0c0d10;
  --muted: #4f5660;
  --accent: #c4001a;
  --accent-dark: #8e0012;
  --line: #e2e4e8;
  --shadow: 0 12px 26px rgba(10, 12, 20, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

.container {
  width: min(1320px, 92%);
  margin: 0 auto;
}

.topbar {
  background: #0f1115;
  color: #fff;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 40px;
  letter-spacing: .4px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 12px;
  text-transform: uppercase;
  color: #2f353f;
  font-weight: 700;
}

.nav a:hover { color: var(--accent); }

.section { margin: 18px 0; }

.ticker {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ticker .label {
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.ticker .items {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
}

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.small-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.small-card {
  background: var(--paper);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}

.small-card h3 { font-size: 16px; margin: 6px 0 0; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-top: 18px;
}

.hero-main {
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-main img,
.hero-main .placeholder {
  width: 100%;
  height: 440px;
  object-fit: cover;
  background: #eceff3;
}

.hero-content { padding: 18px 20px 22px; }

.label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.headline {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  line-height: 1.15;
  margin: 6px 0 8px;
}

.spot { color: var(--muted); font-size: 15px; }

.hero-list {
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
}

.hero-list h4 {
  margin: 6px 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.hero-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-list li { border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-weight: 600; }
.hero-list li:last-child { border-bottom: 0; }

.mid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img,
.card .placeholder {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #eceff3;
}

.card-body { padding: 12px 14px 16px; }
.card h3 { margin: 6px 0 6px; font-size: 19px; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin: 30px 0 12px;
  border-left: 5px solid var(--accent);
  padding-left: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.category-grid .card img,
.category-grid .card .placeholder { height: 160px; }

.placeholder-text {
  color: var(--muted);
  font-weight: 600;
}

.footer {
  padding: 40px 0 50px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .small-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .mid-grid, .category-grid { grid-template-columns: 1fr 1fr; }
  .headline { font-size: 32px; }
}

@media (max-width: 680px) {
  .small-grid, .mid-grid, .category-grid { grid-template-columns: 1fr; }
  .hero-main img { height: 260px; }
  .headline { font-size: 28px; }
}

.small-card img,
.small-card .placeholder {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #eceff3;
}

.single {
  background: var(--paper);
  border-radius: 12px;
  padding: 22px 24px 26px;
  margin: 20px 0 40px;
  box-shadow: var(--shadow);
}

.single-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.single-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0 18px;
}

.single-body {
  font-size: 16px;
  line-height: 1.7;
  color: #1f2933;
}

.single-body p { margin: 0 0 1em; }

/* Hero numeratör + boş sağ panel */
.hero {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tab {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  color: #1f2933;
}

.hero-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-tab.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hero-side {
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--line);
  min-height: 520px;
  box-shadow: var(--shadow);
}

.hero-media { position: relative; }
.hero-img.is-hidden,
.hero-placeholder.is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .hero-side { display: none; }
}

/* Hero overlay headline on image */
.hero-media {
  position: relative;
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
}

.hero-overlay-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

@media (max-width: 980px) {
  .hero-overlay-title { font-size: 22px; }
}

/* Hero tabs compact for 20 items */
.hero-tabs {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 6px;
}

.hero-tab {
  width: 100%;
  height: 28px;
  padding: 0;
  font-size: 11px;
  border-radius: 6px;
}

@media (max-width: 1200px) {
  .hero-tabs { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero-tab { height: 26px; }
}

/* Ticker: stop under label, fade before it */
.ticker { position: relative; }
.ticker .label { position: relative; z-index: 2; }
.ticker .items {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
}
.ticker .track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
}

/* Hero tabs compact for 20 items */
.hero-tabs {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 6px;
}

.hero-tab {
  width: 100%;
  height: 28px;
  padding: 0;
  font-size: 11px;
  border-radius: 6px;
}

@media (max-width: 1200px) {
  .hero-tabs { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero-tab { height: 26px; }
}
