/* ══════════════════════════════════════════════════════════════
   FATSA GAZETESİ — Ana Stil Sistemi v2
   Fontlar: Anton (başlık) · Archivo (UI) · Source Serif 4 (içerik)
══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

/* ─── CSS Değişkenleri (Light Mode) ───────────────────────── */
:root {
  /* Renkler */
  --red:       #e10600;
  --red-dark:  #b80500;
  --red-glow:  rgba(225,6,0,.32);
  --red-soft:  rgba(225,6,0,.08);
  --red-mid:   rgba(225,6,0,.15);

  /* Tema */
  --bg:        #ffffff;
  --card:      #ffffff;
  --text:      #0d0d0d;
  --text-2:    #444444;
  --text-3:    #888888;
  --border:    #e8e8e8;

  /* Gölgeler */
  --sh1:       0 1px 3px rgba(0,0,0,.07);
  --sh2:       0 4px 16px rgba(0,0,0,.09);
  --sh3:       0 12px 40px rgba(0,0,0,.13);
  --sh4:       0 20px 60px rgba(0,0,0,.18);
  --sh-red:    0 8px 28px rgba(225,6,0,.28);

  /* Tipografi */
  --font-h:    'Anton', impact, sans-serif;
  --font-ui:   'Archivo', system-ui, sans-serif;
  --font-s:    'Source Serif 4', Georgia, serif;

  /* Boyutlar */
  --r-sm:      8px;
  --r-lg:      16px;
  --hbar-h:    60px;
  --max-w:     1320px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* ─── Son Dakika Şeridi ───────────────────────────────────── */
.breaking-bar {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
  position: relative;
  z-index: 210;
}
.breaking-label {
  flex-shrink: 0;
  background: #0d0d0d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.breaking-label span { color: var(--red); font-size: 8px; }
.breaking-ticker { flex: 1; overflow: hidden; height: 100%; }
.breaking-ticker-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.breaking-ticker-inner:hover { animation-play-state: paused; }
.breaking-ticker-inner a { font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.breaking-ticker-inner a:hover { text-decoration: underline; }
.ticker-sep { color: rgba(255,255,255,.35); font-size: 10px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── Genel Widget ─────────────────────────────────────────── */
.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--sh1);
}
.wdg-title {
  font-family: var(--font-h);
  font-size: 14px;
  color: var(--red);
  padding: 10px 14px 8px;
  border-bottom: 2px solid var(--red);
  letter-spacing: .03em;
}

/* ─── SDK Row (Son Dakika Widget) ────────────────────────── */
.sdk-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .18s;
}
.sdk-row:last-child { border-bottom: none; }
.sdk-row:hover { background: var(--red-soft); }
.sdk-time {
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}
.sdk-row a { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--text); }
.sdk-row a:hover { color: var(--red); }

/* ─── Popular Widget ─────────────────────────────────────── */
.popular-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .18s, transform .18s;
  text-decoration: none;
}
.popular-row:last-child { border-bottom: none; }
.popular-row:hover { background: var(--red-soft); transform: translateX(3px); }
.pop-num { font-family: var(--font-h); font-size: 22px; color: var(--red); line-height: 1; min-width: 24px; }
.pop-img { width: 60px; height: 44px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.pop-img-ph { width: 60px; height: 44px; background: #f0f0f0; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.pop-title { font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popular-row:hover .pop-title { color: var(--red); }

/* ─── Tag Cloud ──────────────────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
.tag-pill {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  transition: border-color .18s, color .18s, background .18s;
}
.tag-pill:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* ─── Lig Tablosu ────────────────────────────────────────── */
.lig-table { padding: 6px 14px 10px; }
.lig-header { display: grid; grid-template-columns: 24px 1fr 28px 28px 28px 36px; gap: 4px; font-size: 10px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.lig-row    { display: grid; grid-template-columns: 24px 1fr 28px 28px 28px 36px; gap: 4px; padding: 5px 0; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.lig-row:last-child { border-bottom: none; }
.lig-biz { background: var(--red-soft); border-radius: 6px; color: var(--text); font-weight: 700; padding: 5px 4px; }
.lig-sira  { font-weight: 700; color: var(--text-3); text-align: center; }
.lig-takim { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lig-stat  { text-align: center; color: var(--text-3); }
.lig-puan  { text-align: center; font-weight: 800; color: var(--text); }

/* ─── Eczane ─────────────────────────────────────────────── */
.eczane-card, .lsb-eczane { padding: 10px 14px; }
.eczane-icon { font-size: 28px; margin-bottom: 6px; }
.eczane-ad, .lsb-ecz-name { font-weight: 800; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.eczane-adres, .lsb-ecz-addr { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.eczane-tel, .lsb-ecz-tel { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--red); }

/* ─── Bayram Widget ──────────────────────────────────────── */
.bayram-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.bayram-row:last-child { border-bottom: none; }
.bayram-icon { font-size: 22px; flex-shrink: 0; }
.bayram-info { flex: 1; min-width: 0; }
.bayram-ad { font-size: 13px; font-weight: 700; color: var(--text); }
.bayram-tarih { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.bayram-kalan { text-align: center; flex-shrink: 0; }
.bayram-gun { font-family: var(--font-h); font-size: 22px; color: var(--red); display: block; line-height: 1; }
.bayram-gun-label { font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

/* ─── Author Widget ──────────────────────────────────────── */
.author-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.author-row:last-child { border-bottom: none; }
.author-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0; overflow: hidden;
}
.author-av img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 13px; font-weight: 700; color: var(--text); }
.author-sub  { font-size: 11px; color: var(--text-3); }
.author-cnt  { margin-left: auto; font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ─── Left Sidebar Spesifik ──────────────────────────────── */
.lsb-widget { margin-bottom: 12px; }
.lsb-weather { padding: 6px 14px 10px; }
.lsb-wx-loc { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.lsb-wx-row { display: flex; align-items: center; gap: 10px; }
.lsb-wx-icon { font-size: 36px; }
.lsb-wx-temp { font-family: var(--font-h); font-size: 42px; color: var(--text); line-height: 1; }
.lsb-wx-desc { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.lsb-wx-extra { display: flex; gap: 12px; margin-top: 5px; font-size: 11.5px; color: var(--text-3); }
.lsb-findik { padding: 6px 14px 10px; }
.lsb-findik-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); }
.lsb-findik-row:last-of-type { border-bottom: none; }
.lsb-findik-tur { font-size: 12px; font-weight: 600; color: var(--text-2); }
.lsb-findik-fiyat { font-weight: 800; font-size: 13px; color: var(--text); }
.lsb-findik-deg { font-size: 11px; font-weight: 700; }
.lsb-findik-deg.up   { color: #16a34a; }
.lsb-findik-deg.down { color: var(--red); }
.lsb-dolmus { padding: 6px 14px 10px; }
.lsb-hat { margin-bottom: 10px; }
.lsb-hat:last-child { margin-bottom: 0; }
.lsb-hat-name { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.lsb-hat-next { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.lsb-hat-label { font-size: 10px; color: var(--text-3); }
.lsb-hat-time { font-size: 13px; font-weight: 800; color: var(--red); }
.lsb-hat-time.bitti { color: var(--text-3); }
.lsb-hat-saatler { display: flex; flex-wrap: wrap; gap: 4px; }
.lsb-saat { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--red-soft); color: var(--red); font-weight: 700; }
.lsb-saat.gecti { background: #f5f5f5; color: var(--text-3); }

/* ─── Sayfa Footer ───────────────────────────────────────── */
.site-footer {
  background: #0d0d0d;
  color: rgba(255,255,255,.55);
  margin-top: 48px;
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text small  { color: rgba(255,255,255,.35); }
.footer-desc { font-size: 13px; line-height: 1.7; margin-top: 10px; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-col h4 { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col ul a { font-size: 13px; transition: color .18s; }
.footer-col ul a:hover { color: #fff; }

/* ─── Logo ───────────────────────────────────────────────── */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-size: 22px; color: #fff;
  box-shadow: 0 4px 14px rgba(225,6,0,.28);
  flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-text strong { font-family: var(--font-h); font-size: 20px; color: var(--text); display: block; letter-spacing: .01em; }
.logo-text strong em { color: var(--red); font-style: normal; }
.logo-text small { font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }

/* ─── Sayfalama ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0; flex-wrap: wrap; }
.page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  transition: .18s;
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ─── Alert ───────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin: 12px 0; font-size: 14px; font-weight: 600; }
.alert-ok  { background: #e6f9f0; color: #0a6640; border: 1px solid #9ee0be; }
.alert-err { background: #fef0ef; color: #b00; border: 1px solid #ffc2bf; }
.alert-info { background: #eef4ff; color: #2255bb; border: 1px solid #c5d8ff; }

/* ─── Spinner ─────────────────────────────────────────────── */
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 0; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { opacity: .4; }

/* ─── Drawer (mobil menü) ────────────────────────────────── */
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 998; }
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 85%; max-width: 300px;
  background: var(--bg);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 2px solid var(--red); }
.drawer-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; border: none; background: none; color: var(--text-2); }
.drawer-search { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.drawer-search input { width: 100%; height: 38px; border: 1.5px solid var(--border); border-radius: 999px; padding: 0 14px; font-size: 14px; outline: none; background: var(--bg); color: var(--text); }
.drawer-nav a { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); transition: background .18s; }
.drawer-nav a:hover { background: var(--red-soft); color: var(--red); }

/* ─── Form yardımcıları ───────────────────────────────────── */
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 11px; font-weight: 700; color: var(--text-3); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }
.form-row input, .form-row textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13.5px; background: var(--bg); color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form-row textarea { min-height: 100px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.btn-submit {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red); color: #fff;
  padding: 12px 26px; border: none; border-radius: 999px;
  font-size: 14px; font-weight: 700; font-family: var(--font-ui);
  cursor: pointer; box-shadow: var(--sh-red);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--red-glow); }
.btn-submit:active { transform: scale(.98); }

/* ─── Blink animasyonu (son dakika dot) ──────────────────── */
@keyframes blink-badge { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ─── Mobil Footer ────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}
