/* ============================================================
   AI Günlük — Mastercard Design System (mastercard)
   Archetype: hard-news-broadsheet
   ============================================================ */

:root,
html.light {
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-card: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --radius-full: 9999px;

  --paper: #f3f0ee;
  --paper-nav: #f3f0ee;
  --paper-card: #e9e6e4;
  --paper-card-hover: #dddad9;
  --paper-subtle: #d6d4d2;

  --ink: #141413;
  --ink-muted: #454952;
  --ink-faint: #5c626e;

  --accent: #cf4500;
  --accent-hover: #b23b00;
  --accent-tint: #efdbd1;
  --on-accent: #ffffff;

  --border: #d1cecd;
  --border-hover: #aba9a8;

  --hero-surface: #141619;
  --hero-ink: #ffffff;
  --hero-ink-sub: #e5e7eb;

  --transition-ui: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

html.dark {
  --paper: #111317;
  --paper-nav: #16191f;
  --paper-card: #1b1f27;
  --paper-card-hover: #242933;
  --paper-subtle: #2a303c;

  --ink: #f3f4f6;
  --ink-muted: #c2c7d0;
  --ink-faint: #949aa6;

  --accent: #cf4500;
  --accent-hover: #d65f24;
  --accent-tint: #331c13;
  --on-accent: #ffffff;

  --border: #2d3340;
  --border-hover: #535862;

  --hero-surface: #0b0c0f;
  --hero-ink: #ffffff;
  --hero-ink-sub: #d1d5db;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 100vh;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
}

p {
  max-width: 65ch;
}

button, a, input, select, .story-avatar-item, .feed-card, .hero-mini-card, .hero-main-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   1. ÜST NAVİGASYON (NAVBAR)
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background-color: var(--paper-nav);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-ui);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
  flex-shrink: 0;
}

/* Akış Sekmeleri */
.nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
}

.nav-pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--paper-nav);
  text-decoration: none;
  transition: var(--transition-ui);
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-pill:hover {
  color: var(--ink);
  border-color: var(--border-hover);
  background: var(--paper-card);
}

.nav-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 700;
}

.pill-badge-count {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0;
  color: inherit;
  opacity: 0.85;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  width: 230px;
  color: var(--ink-muted);
  transition: var(--transition-ui);
  position: relative;
}

.search-box:focus-within {
  border-color: var(--ink);
  background: var(--paper-nav);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  width: 100%;
  font-family: var(--font-body);
}

.search-box input::placeholder {
  color: var(--ink-faint);
}

.btn-clear-search {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.btn-clear-search:hover {
  color: var(--ink);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--paper-card);
  border: 1px solid var(--border);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-ui);
}

.theme-toggle-btn:hover {
  background: var(--paper-card-hover);
  border-color: var(--border-hover);
}

.btn-install-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-ui);
}

.btn-install-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

@media (max-width: 900px) {
  .container {
    padding: 0 16px;
  }
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }
  .nav-left {
    display: contents;
  }
  .brand-logo {
    order: 1;
    font-size: 19px;
  }
  .nav-right {
    order: 2;
    margin-left: auto;
    gap: 8px;
  }
  .search-box {
    width: clamp(130px, 32vw, 180px);
    padding: 8px 12px;
  }
  .btn-install-pill {
    display: none !important;
  }
  .nav-pills {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 4px;
  }
  .nav-pills::-webkit-scrollbar {
    display: none;
  }
}

/* ============================================================
   1.5 EDİTORYAL YAYIN BAŞLIĞI (MASTHEAD)
   ============================================================ */
.editorial-masthead {
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.masthead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.masthead-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.masthead-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   2. HERO BENTO GRID
   ============================================================ */
.hero-section {
  padding: 0 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}

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

.hero-mini-card {
  position: relative;
  background-color: var(--hero-surface);
  color: var(--hero-ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-decoration: none;
  transition: var(--transition-ui);
  cursor: pointer;
}

.hero-mini-card:hover {
  border-color: var(--accent);
}

.hero-mini-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--hero-surface);
  color: transparent;
  opacity: 0.72;
}

.hero-mini-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 25, 0.22) 0%, rgba(20, 22, 25, 0.92) 100%);
}

.hero-mini-card-content {
  position: relative;
  z-index: 2;
}

.badge-red-mini {
  display: inline-block;
  background-color: #B81933;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.hero-mini-card-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--hero-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sağdaki Büyük Hero Manşet Kartı */
.hero-main-card {
  position: relative;
  background-color: var(--hero-surface);
  color: var(--hero-ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  text-decoration: none;
  transition: var(--transition-ui);
  cursor: pointer;
}

.hero-main-card:hover {
  border-color: var(--accent);
}

.hero-main-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--hero-surface);
  color: transparent;
  opacity: 0.7;
}

.hero-main-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 25, 0.18) 0%, rgba(20, 22, 25, 0.68) 48%, rgba(20, 22, 25, 0.96) 100%);
}

.hero-main-card-content {
  position: relative;
  z-index: 2;
  max-width: 65ch;
}

.badge-red-tag {
  display: inline-block;
  background-color: #B81933;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.hero-main-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 800;
  color: var(--hero-ink);
  line-height: 1.22;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-main-card-sub {
  font-size: 15.5px;
  color: var(--hero-ink-sub);
  line-height: 1.5;
  max-width: 65ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-main-card {
    order: -1;
    height: 290px;
    padding: 20px;
  }
  .hero-main-card-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-mini-card {
    height: 140px;
  }
}

/* ============================================================
   3. YATAY KATEGORİ SEKMELERİ (Sade Metin Sekmeleri)
   ============================================================ */
.story-avatars-section {
  padding: 8px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.story-avatars-section::-webkit-scrollbar {
  display: none;
}

.story-avatars-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.story-avatar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--paper-card);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-ui);
}

.story-avatar-item:hover {
  color: var(--ink);
  background: var(--paper-card-hover);
  border-color: var(--border-hover);
}

.story-avatar-item.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 700;
}

.cat-tab-count {
  font-size: 12.5px;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .story-avatars-list {
    flex-wrap: nowrap;
  }
}

/* ============================================================
   4. HABER BÖLÜMÜ BAŞLIĞI
   ============================================================ */
.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-count {
  font-size: 14px;
  color: var(--ink-faint);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   5. 3'LÜ KART GRID
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 980px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.feed-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-ui);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.feed-card:hover {
  background: var(--paper-card-hover);
  border-color: var(--border-hover);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--hero-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--hero-surface);
  color: transparent;
  display: block;
}

.card-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #141619;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.card-featured-tag {
  background-color: #B81933 !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-top {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-faint);
  display: inline-block;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.015em;
}

.card-summary {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 65ch;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-action-bottom {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: var(--transition-ui);
}

.feed-card:hover .card-action-bottom,
.bento-wide-card:hover .card-action-bottom {
  color: var(--accent);
}

/* 2 Sütun Genişliğinde Vurgu Kartı */
.bento-wide-card {
  grid-column: span 2;
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  transition: var(--transition-ui);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.bento-wide-card:hover {
  background: var(--paper-card-hover);
  border-color: var(--border-hover);
}

.bento-wide-card .card-thumb-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 240px;
}

.bento-wide-card .card-body {
  padding: 8px 8px 8px 0;
  justify-content: center;
}

.bento-wide-card .card-title {
  font-size: 21px;
  -webkit-line-clamp: 3;
  margin-bottom: 12px;
}

.bento-wide-card .card-summary {
  font-size: 15.5px;
  -webkit-line-clamp: 4;
}

@media (max-width: 980px) {
  .bento-wide-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-wide-card .card-thumb-wrap {
    height: 190px;
    min-height: 190px;
  }
  .bento-wide-card .card-body {
    padding: 0;
  }
}

/* ============================================================
   6. HABER OKUMA MODALI VE YASAL UYARI MODALI
   ============================================================ */
.story-modal-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 16, 20, 0.74);
}

.story-modal-overlay {
  background: transparent;
}

.story-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, 0.74);
}

.story-modal-dialog,
.modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper-nav);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--paper-card);
}

.modal-header .modal-close-btn {
  position: static;
}

.modal-category {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #141619;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-ui);
}

.modal-close-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.modal-header-media {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: var(--hero-surface);
  color: var(--hero-ink);
  overflow: hidden;
  flex-shrink: 0;
}

.modal-header-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--hero-surface);
  color: transparent;
  display: block;
}

.modal-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 25, 0.15) 0%, rgba(20, 22, 25, 0.78) 100%);
}

.modal-badges-row {
  position: absolute;
  bottom: 16px;
  left: 24px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tag,
.source-badge {
  background-color: #141619;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.modal-content-body,
.legal-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-modal-body {
  max-height: 76vh;
  overflow-y: auto;
}

.modal-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-weight: 600;
}

.modal-story-title,
.legal-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.modal-section-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
}

.modal-section-header {
  margin-bottom: 10px;
}

.modal-section-header h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.modal-story-tldr {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  max-width: 65ch;
}

.modal-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-modal-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-ui);
}

.btn-modal-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.btn-modal-action {
  background: var(--paper-card);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-ui);
  font-family: var(--font-body);
}

.btn-modal-action:hover {
  background: var(--paper-card-hover);
  border-color: var(--border-hover);
}

.btn-modal-action.is-saved {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.legal-section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 65ch;
}

.legal-contact-box {
  background: var(--paper-card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
}

.legal-contact-box a {
  color: var(--accent);
  font-weight: 700;
}

.legal-modal-actions {
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .story-modal-overlay,
  .modal-overlay {
    padding: 12px;
  }
  .modal-header-media {
    height: 190px;
  }
  .modal-content-body,
  .legal-modal-body {
    padding: 16px;
  }
}

/* ============================================================
   7. SES ÇALICI, ÇEVRİMDIŞI BANDI VE BOŞ DURUM
   ============================================================ */
.audio-player-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  background: var(--paper-nav);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.audio-widget-content {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--ink);
}

.btn-audio-stop {
  border: 1px solid #B81933;
  background: #B81933;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.offline-alert {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  z-index: 99;
}

.empty-state-box {
  text-align: left;
  padding: 32px 24px;
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.empty-state-box h3 {
  font-size: 18px;
  font-weight: 700;
}

.empty-state-box p {
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 65ch;
}

.btn-reset-filters {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-ui);
}

.btn-reset-filters:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

/* ============================================================
   8. KÜNYE, İLETİŞİM VE FOOTER
   ============================================================ */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 32px 0 0;
  font-size: 15px;
  color: var(--ink-muted);
}

.editorial-colophon {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.colophon-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.colophon-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.colophon-author,
.colophon-scope,
.colophon-contact {
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 65ch;
}

.colophon-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand-name,
.colophon-contact a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand-name:hover,
.colophon-contact a:hover {
  color: var(--accent);
}

.footer-legal-btn {
  background: var(--paper-nav);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-ui);
}

.footer-legal-btn:hover {
  border-color: var(--border-hover);
  background: var(--paper-card-hover);
}

/* ============================================================
   9. MASTERCARD HARD-NEWS BROADSHEET DÜZENİ (LOCAL #34 BİREBİR)
   ============================================================ */
.site-nav {
  border-bottom: 3px solid var(--accent);
}

.nav-pill.active,
.btn-modal-primary,
.btn-reset-filters,
.btn-install-pill {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.nav-pill.active:hover,
.btn-modal-primary:hover,
.btn-reset-filters:hover,
.btn-install-pill:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.story-avatar-item.active {
  background: var(--ink);
  color: var(--paper);
}

.editorial-masthead {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 16px;
}

.masthead-title {
  text-transform: uppercase;
  letter-spacing: -0.02em;
  border-left: 5px solid var(--accent);
  padding-left: 12px;
}

.hero-grid {
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}

.hero-main-card {
  order: 1;
}

.hero-stacked-left {
  order: 2;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.feed-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  border-top: 3px solid var(--ink);
  padding: 14px;
}

.feed-card:hover {
  border-color: var(--accent);
  border-top-color: var(--accent);
}

.card-thumb-wrap {
  border-radius: 2px;
}

.card-category-tag {
  border-radius: 2px;
  background: var(--accent);
  color: var(--on-accent);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
