/* ==========================================================================
   YANKI GAZETESİ - STİL DOSYASI
   Tamamen Sade, Türkçe ve Temiz Gazete Mizanpajı
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Modern web guidance: reflect color-scheme meta tag into CSS */
  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
  }
  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }

  /* Gazete Kağıdı ve Mürekkep Paleti */
  --bg-page: light-dark(#fcfbf8, #111317);
  --bg-surface: light-dark(#ffffff, #171a20);
  --bg-surface-soft: light-dark(#f6f4ef, #1e222b);
  --bg-contrast: light-dark(#111111, #ffffff);

  --text-ink: light-dark(#111111, #f4f2ec);
  --text-body: light-dark(#262626, #dedad1);
  --text-secondary: light-dark(#55524d, #a8a49c);
  --text-muted: light-dark(#76726b, #848077);
  --text-inverse: light-dark(#ffffff, #111111);

  --brand-red: light-dark(#b80000, #e62e43);

  /* Kılcal Çizgiler */
  --border-hairline: light-dark(#dfdbd2, #292d37);
  --border-dark: light-dark(#111111, #f4f2ec);

  /* Tipografi Tanımları */
  --font-masthead: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif-headline: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-serif-body: 'Newsreader', 'Source Serif 4', Georgia, serif;
  --font-sans-meta: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --site-width: 1360px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body.zeit-theme {
  font-family: var(--font-serif-body);
  background-color: var(--bg-page);
  color: var(--text-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.bullet-sep {
  opacity: 0.35;
  margin: 0 4px;
}

/* ==========================================================================
   1. ÜST META BARI
   ========================================================================== */
.zeit-meta-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-sans-meta);
  font-size: 0.8rem;
  padding: 8px 0;
  color: var(--text-secondary);
}

.meta-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-left, .meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-merkzettel {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.btn-merkzettel:hover {
  color: var(--brand-red);
}

.badge-count {
  background: var(--brand-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 99px;
}

.btn-zeit-theme {
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 6px;
  color: var(--text-secondary);
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .light-icon {
  display: inline-block;
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) .dark-icon {
  display: none;
}
:root:has(> head > meta[name="color-scheme"][content="light"]) .light-icon {
  display: none;
}
:root:has(> head > meta[name="color-scheme"][content="light"]) .dark-icon {
  display: inline-block;
}

/* ==========================================================================
   2. GAZETE MASTHEAD
   ========================================================================== */
.zeit-masthead {
  padding: 24px 0 16px;
  background-color: var(--bg-surface);
}

.masthead-hairline {
  height: 1px;
  background: var(--border-dark);
}

.masthead-hairline.top {
  margin-bottom: 18px;
}

.masthead-hairline.bottom {
  margin-top: 18px;
}

.masthead-main {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.masthead-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zeit-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-ink);
  line-height: 1;
}

.zeit-emblem {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.zeit-logo-link:hover .zeit-emblem {
  transform: rotate(4deg) scale(1.04);
}

.heraldic-icon {
  width: 100%;
  height: 100%;
}

.zeit-main-name {
  font-family: var(--font-masthead);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--text-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.zeit-subline-tr {
  font-family: var(--font-sans-meta);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ==========================================================================
   3. BÖLÜM NAVİGASYONU
   ========================================================================== */
.zeit-nav {
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border-dark);
}

.nav-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-box::-webkit-scrollbar {
  display: none;
}

.zeit-sections {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 4px 0;
  white-space: nowrap;
}

.zeit-nav-link {
  display: block;
  font-family: var(--font-sans-meta);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.zeit-nav-link:hover {
  color: var(--brand-red);
}

.zeit-nav-link.active {
  color: var(--text-ink);
  border-bottom-color: var(--brand-red);
}

.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-wrap input {
  font-family: var(--font-sans-meta);
  font-size: 0.78rem;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-hairline);
  padding: 6px 28px 6px 12px;
  width: 170px;
  outline: none;
  transition: width 0.2s ease, border-color 0.2s ease;
}

.nav-search-wrap input:focus {
  width: 220px;
  border-color: var(--border-dark);
}

.search-icon {
  position: absolute;
  right: 8px;
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0.5;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 200;
  padding: 8px 0;
}

/* ==========================================================================
   4. BOŞ GAZETE ŞABLONU (EMPTY STATE)
   ========================================================================== */
.zeit-main {
  padding-top: 60px;
  padding-bottom: 90px;
}

.empty-newspaper-canvas {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding: 70px 40px;
  text-align: center;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 18px;
  opacity: 0.85;
}

.empty-title {
  font-family: var(--font-serif-headline);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-ink);
  margin-bottom: 14px;
}

.empty-desc {
  font-family: var(--font-serif-body);
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
   5. MAKALE OKUMA MODALI
   ========================================================================== */
.zeit-article-modal {
  border: none;
  background: var(--bg-surface);
  color: var(--text-ink);
  width: 94%;
  max-width: 960px;
  max-height: 94vh;
  margin: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.zeit-article-modal::backdrop {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
}

.zeit-modal-frame {
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  position: relative;
}

.modal-reading-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand-red);
  z-index: 100;
}

.modal-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 90;
  font-family: var(--font-sans-meta);
  font-size: 0.78rem;
}

.zeit-stamp {
  font-weight: 900;
  color: var(--brand-red);
  letter-spacing: 0.1em;
}

.modal-control-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-feuilleton-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  padding: 4px 10px;
  border-radius: 2px;
}

.btn-feuilleton-action:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.font-switch button {
  border: 1px solid var(--border-hairline);
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.btn-close-zeit {
  font-size: 1.1rem;
  padding: 2px 8px;
  color: var(--text-secondary);
}

.btn-close-zeit:hover {
  color: var(--brand-red);
}

.modal-scroll-area {
  overflow-y: auto;
  padding: 36px 48px 60px;
}

.article-print-container {
  max-width: 780px;
  margin: 0 auto;
}

.article-kicker-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.article-kicker {
  font-family: var(--font-sans-meta);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--brand-red);
}

.article-main-headline {
  font-family: var(--font-serif-headline);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-ink);
  margin-bottom: 16px;
}

.article-dek {
  font-family: var(--font-serif-body);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 22px;
}

.article-author-statement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 26px;
}

.author-portrait {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-hairline);
}

.author-title-line {
  font-family: var(--font-sans-meta);
  font-size: 0.85rem;
  color: var(--text-ink);
}

.meta-line {
  font-family: var(--font-sans-meta);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.article-hero-figure {
  margin: 24px 0 32px;
}

.article-hero-figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-hero-figure figcaption {
  font-family: var(--font-sans-meta);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

.article-typography-body {
  font-family: var(--font-serif-body);
  font-size: 1.15rem;
  line-height: 1.82;
  color: var(--text-body);
}

.article-typography-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif-headline);
  font-size: 4.6rem;
  line-height: 0.8;
  padding-top: 6px;
  padding-right: 12px;
  padding-bottom: 2px;
  color: var(--brand-red);
  font-weight: 700;
}

.article-typography-body p {
  margin-bottom: 22px;
}

.leserbriefe-section {
  border-top: 2px solid var(--border-dark);
  padding-top: 24px;
  margin-top: 36px;
}

.leserbriefe-title {
  font-family: var(--font-sans-meta);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--text-ink);
}

.leserbriefe-form input, .leserbriefe-form textarea {
  width: 100%;
  font-family: var(--font-sans-meta);
  font-size: 0.84rem;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface-soft);
  padding: 8px 12px;
  margin-bottom: 10px;
  outline: none;
}

.btn-submit-zeit {
  background: var(--text-ink);
  color: var(--text-inverse);
  font-family: var(--font-sans-meta);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 18px;
  letter-spacing: 0.05em;
}

.btn-submit-zeit:hover {
  background: var(--brand-red);
  color: #fff;
}

/* ==========================================================================
   6. OKUMA LİSTESİ MODALI
   ========================================================================= */
.zeit-bookmarks-modal {
  border: none;
  background: transparent;
  margin: auto 0 auto auto;
  max-width: 440px;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  padding: 0;
}

.zeit-bookmarks-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.merkzettel-box {
  background: var(--bg-surface);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border-dark);
}

.merkzettel-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-sans-meta);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.merkzettel-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* ==========================================================================
   7. ALT BİLGİ (FOOTER)
   ========================================================================== */
.zeit-footer {
  border-top: 2px solid var(--border-dark);
  background: var(--bg-surface-soft);
  padding: 40px 0 28px;
  font-family: var(--font-sans-meta);
  text-align: center;
}

.footer-masthead-repeat {
  font-family: var(--font-masthead);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  color: var(--text-ink);
}

.footer-zeit-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 20px;
}

.footer-zeit-links a:hover {
  color: var(--brand-red);
}

.footer-bottom-note {
  font-size: 0.74rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .zeit-main-name {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
}
