/* =======================================================
   KAPIWEB HABER SİTESİ - CORE OPTIMIZED CSS (<25KB)
   Core Web Vitals & Discover 90+ Uyumlu
   ======================================================= */

:root {
  --bg-main: #0a0a0a;
  --bg-surface: #141414;
  --bg-card: #1a1a1a;
  --border-color: #262626;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-orange: #f57600;
  --accent-red: #E53935;
  --header-bg: rgba(10, 10, 10, 0.94);
}

[data-theme="light"] {
  --bg-main: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --text-main: #111827;
  --text-muted: #4b5563;
  --header-bg: rgba(255, 255, 255, 0.94);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Kapsayıcı */
.container {
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--accent-orange);
}

.logo-title span {
  color: var(--text-main);
}

/* Navigasyon */
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Turuncu İlçe Bandı */
.district-bar {
  background: linear-gradient(90deg, #f57600, #e06800);
  overflow-x: auto;
  white-space: nowrap;
}

.district-inner {
  display: flex;
  gap: 2px;
}

.district-link {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  transition: background 0.2s;
}

.district-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==================== 2. SON DAKİKA BANDI (KAYAN YAZI) ==================== */
.breaking-bar {
  background: linear-gradient(90deg, #E53935, #D32F2F);
  padding: 6px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breaking-badge {
  background: #ffffff;
  color: #E53935;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-scroll-container {
  overflow: hidden;
  flex: 1;
  position: relative;
  white-space: nowrap;
}

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

.breaking-track {
  display: flex;
  animation: breakingTickerMove 75s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.breaking-track:hover {
  animation-play-state: paused;
}

.breaking-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.breaking-content a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.breaking-content a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.sd-dot {
  margin: 0 14px;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ==================== 3. PİYASA & HAVA DURUMU TİCKER ==================== */
.market-ticker-bar {
  background: #111111;
  border-bottom: 1px solid #1e1e1e;
  padding: 8px 0;
  font-size: 12px;
  overflow: hidden;
}

.ticker-wrap {
  overflow: hidden;
  width: 100%;
}

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

.ticker-inner {
  display: flex;
  animation: tickerMove 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-inner:hover {
  animation-play-state: paused;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.ticker-label {
  color: #888888;
  font-weight: 600;
}

.ticker-val {
  color: #ffffff;
  font-weight: 800;
}

.ticker-up {
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
}

.ticker-down {
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
}

.ticker-sub {
  color: #9ca3af;
  font-size: 11px;
}

/* Grid Düzeni */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Kartlar */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Animasyonlar */
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.live-pulse {
  animation: pulseDot 1.5s infinite;
}

/* Vitrin ve Manşet En-Boy Oranları (Demo & TE Bileşim) */
.aspect-slider { aspect-ratio: 16 / 9; }
.aspect-topheadline { aspect-ratio: 419 / 246; }
.aspect-fives { aspect-ratio: 1293 / 355; }
.aspect-featured { aspect-ratio: 419 / 503; }
.aspect-story { aspect-ratio: 9 / 16; }

/* Otantik Gazete 1. Sayfa Önizleme & Modal Stilleri */
.newspaper-preview-box {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.newspaper-preview-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4) !important;
}
.newspaper-preview-box:hover .paper-hover-overlay {
  opacity: 1 !important;
}

@media print {
  body * {
    visibility: hidden;
  }
  #printablePaper, #printablePaper * {
    visibility: visible;
  }
  #printablePaper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
}

/* Vitrin Rozetleri */
.badge-flash { background: #FFB300; color: #000; font-weight: 900; font-size: 11px; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.badge-exclusive { background: #00bcd4; color: #fff; font-weight: 900; font-size: 11px; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.badge-advertorial { background: #4caf50; color: #fff; font-weight: 900; font-size: 10px; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.badge-editor { background: #ab47bc; color: #fff; font-weight: 900; font-size: 11px; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
