/* ====== RESET & TEMEL ====== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; padding: 0; background:#f6f8f9; color:#0f172a; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Mobilde metnin büyümesini/zoom'u azaltmaya yardım */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }

/* Zoom’u JS ile de kilitleyen alanlar için */
.no-zoom, .no-zoom * { touch-action: manipulation !important; -ms-content-zooming: none !important; }

/* ====== BUTONLAR ====== */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:8px 12px; border-radius:10px; border:none;
  background:#22c55e; color:#fff; font-weight:800; cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow:0 6px 14px rgba(0,0,0,.15); }
.btn:active { transform: translateY(0); }
.btn.ghost { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.65); box-shadow:none; }

/* ====== APP BAR (ÜST HEADER) ====== */
.appbar {
  position: sticky; top: 0; z-index: 100;
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px; padding:10px 14px;
  background: #004d40; color:#fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.appbar .logo { display:flex; align-items:center; gap:10px; min-width:0; }
.appbar .logo img { height:40px; width:auto; border-radius:10px; flex:0 0 auto; }
.appbar .titles { display:flex; flex-direction:column; line-height:1.05; }
.appbar .titles h1 { margin:0; font-size:20px; font-weight:900; letter-spacing:.3px; }
.appbar .titles p  { margin:0; font-size:12px; color:#ffd84d; font-weight:800; letter-spacing:.2px; }
.appbar .actions { display:flex; align-items:center; gap:8px; }

/* Kullanıcı menüsü */
.user-menu { position: relative; }
.user-menu .chip {
  background:#16a34a; color:#fff; border:none; cursor:pointer;
  border-radius:999px; padding:6px 10px; font-weight:900;
}
.user-menu .menu {
  position:absolute; right:0; top:110%;
  min-width: 180px; display:none;
  background:#0b2535; color:#e6f0ff;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px; overflow:hidden;
  box-shadow: 0 16px 30px rgba(0,0,0,.28);
}
.user-menu .menu.open { display:block; }
.user-menu .menu a { display:block; padding:10px 12px; white-space:nowrap; }
.user-menu .menu a:hover { background: rgba(255,255,255,.07); }

/* ====== KAYAN REKLAM ====== */
.reklam-slider {
  background:#0f172a;
  overflow:hidden;
  margin-top:12px;
}

.reklam-slider .slider-track {
  display:flex;
  width:max-content;
  animation: marquee 40s linear infinite;
}

.reklam-slider img {
  height:120px;
  width:auto;
  border-radius:12px;
  margin-right:12px;
  box-shadow:0 8px 22px rgba(0,0,0,.35);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* ====== İÇERİK KAPSAYICI ====== */
.container { padding: 14px; max-width: 980px; margin: 0 auto; }

/* ====== YEREL AKIŞ — modern ====== */
.flow h2{ margin: 8px 0 12px; font-size: 18px; font-weight: 900; letter-spacing:.2px; color:#004d40; }
.flow-box{ display:grid; gap:12px; }
.flow-item{
  position: relative; display:flex; gap:12px; align-items:flex-start;
  background:#ffffff; border:1px solid #e6edf0; border-radius:14px; padding:12px 14px 12px 16px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.flow-item::before{ content:""; position:absolute; left:0; top:10px; bottom:10px; width:4px; border-radius:4px; background: linear-gradient(180deg,#10b981,#0ea5e9); opacity:.85; }
.flow-item:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(2, 6, 23, .10); border-color:#dbe7ec; }
.flow-item .icon{
  width:44px; height:44px; display:grid; place-items:center; border-radius:12px; font-size:22px; line-height:1; color:#0b2535;
  background: radial-gradient(100% 100% at 70% 10%, #ffffff, #f5faf8) padding-box,
             linear-gradient(#ffffff,#ffffff) padding-box,
             linear-gradient(135deg, rgba(16,185,129,.45), rgba(14,165,233,.45)) border-box;
  border:1px solid transparent; box-shadow: 0 6px 16px rgba(0,0,0,.08); flex:0 0 auto;
}
.flow-item .icon-vefat{ width:44px; height:44px; border-radius:10px; border:2px solid #000; background:transparent; color:#000; font-size:18px; display:grid; place-items:center; box-shadow:none; }
.flow-item .content{min-width:0}
.flow-item .content h3{ margin:0 0 4px; font-size:15px; font-weight:800; color:#0f172a; text-wrap:balance; }
.flow-item .content .meta{ display:block; font-size:12px; color:#667085; margin-top:1px; }
.flow-item .content p{ margin:6px 0 0; font-size:13px; color:#344054; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.flow-item.empty{
  justify-content:center; text-align:center; color:#98a2b3; font-weight:700;
  background: radial-gradient(180px 80px at 20% -20%, rgba(16,185,129,.06), transparent),
             radial-gradient(220px 100px at 90% 120%, rgba(14,165,233,.06), transparent),
             #ffffff;
}

/* ====== KATEGORİLER (3×2) ====== */
.categories { display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin-top:18px; }

/* 👉 SADECE BURASI GÜNCELLENDİ: Kart içi görsel tam dolsun */
.category{
  display:flex;               /* başlık üstte, görsel altta */
  flex-direction:column;
  text-align:center; background:#fff;
  border:1px solid #e9eef0; border-radius:14px; padding:10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.category:hover{ transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
.category h3{ margin:0 0 8px; font-size:13px; font-weight:800; color:#fff; padding:6px 8px; border-radius:8px; display:inline-block; }

/* Görsel kartı doldurur: kenarlara kadar, taşarsa kırpılır */
.category img{
  width:100%;
  height:160px;          /* masaüstü yüksekliği */
  object-fit:cover;      /* DOLDUR/KIRP */
  border-radius:12px;
  flex:1 1 auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.08));
}

/* Kategori başlık renkleri */
.category.duyuru   h3 { background:#00897b; }
.category.belediye h3 { background:#1e88e5; }
.category.ilan     h3 { background:#6d4c41; }
.category.dugun    h3 { background:#f97316; }
.category.hizmet   h3 { background:#7c3aed; }
.category.vefat    h3 { background:#263238; }

/* ====== RESPONSIVE ====== */
@media (max-width: 720px){
  .reklam-slider img { height:112px; }
}
@media (max-width: 560px){
  .appbar .titles h1 { font-size:18px; }
  .appbar .logo img  { height:36px; }
  .reklam-slider img { height:104px; }
  .category img { height:140px; }   /* ↓ mobilde biraz daha kısa */
}
@media (max-width: 420px){
  .categories { grid-template-columns: repeat(2, 1fr); }
  .reklam-slider img { height:96px; }
  .category img { height:120px; }
}

/* ====== YARDIMCI ====== */
.hidden { display:none !important; }
.muted  { color:#98a2b3; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rounded { border-radius: 12px; }

/* ==== HABER & DÖVİZ PANELLERİ ==== (aynen bırakıldı) */
.info-panels{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin:14px 0 6px; }
.panel{ background:#fff; border:1px solid #e9eef0; border-radius:14px; box-shadow:0 2px 10px rgba(0,0,0,.06); padding:12px; min-height:140px; }
.panel-head{ display:flex; align-items:center; justify-content:space-between; font-weight:900; color:#0f172a; margin-bottom:8px; }
.panel-refresh{ border:1px solid #e5e7eb; background:#f8fafc; color:#0f172a; border-radius:10px; padding:6px 9px; font-weight:800; cursor:pointer; }
.panel-refresh:hover{ background:#eef2f7; }
.news-list{ list-style:decimal inside; margin:0; padding:0; display:grid; gap:6px; max-height:180px; overflow:auto; }
.news-list a{ color:#0f172a; text-decoration:none; }
.news-list a:hover{ text-decoration:underline; }
.more-link{ display:inline-block; margin-top:8px; font-weight:700; color:#0f766e; }
.fx-table{ width:100%; border-collapse:collapse; font-size:14px; }
.fx-table th, .fx-table td{ border-bottom:1px solid #eef2f7; padding:8px; text-align:left; }
.fx-table th{ font-size:12px; color:#64748b; font-weight:800; }
.fx-updated{ margin-top:6px; font-size:12px; color:#64748b; }
.chg-pos{ color:#0f766e; font-weight:800; }
.chg-neg{ color:#b91c1c; font-weight:800; }
@media (max-width:900px){ .info-panels{ grid-template-columns:1fr; } }