/* additions.css — Emirler Köyü v4.5 */

/* ─── HAMBURGER ─── */
.hamburger-btn {
  background:rgba(255,255,255,0.18); border:none; border-radius:10px;
  width:38px; height:38px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:5px;
  cursor:pointer; flex-shrink:0; margin-left:8px; transition:background 0.2s;
}
.hamburger-btn:active { background:rgba(255,255,255,0.32); }
.hamburger-btn span { display:block; width:20px; height:2.5px; background:#fff; border-radius:2px; }

/* ─── SIDEBAR OVERLAY ─── */
#sidebarOverlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,0.52); z-index:1400;
}
#sidebarOverlay.visible { display:block; animation:sbfi 0.22s ease; }
@keyframes sbfi { from{opacity:0} to{opacity:1} }

/* ─── SIDEBAR ─── */
#sidebarNav {
  position:fixed; right:-290px; top:0; bottom:0; width:272px;
  background:linear-gradient(180deg,#1e2d20 0%,#152217 100%);
  z-index:1500; display:flex; flex-direction:column;
  overflow-y:auto; scrollbar-width:none;
  box-shadow:-8px 0 30px rgba(0,0,0,0.4);
  transition:right 0.3s cubic-bezier(0.4,0,0.2,1);
}
#sidebarNav::-webkit-scrollbar { display:none; }
#sidebarNav.sidebar-open { right:0; }
.sidebar-header { display:flex; align-items:center; gap:12px; padding:22px 16px 16px; border-bottom:1px solid rgba(255,255,255,0.1); flex-shrink:0; }
.sidebar-logo { width:44px; height:44px; border-radius:12px; flex-shrink:0; box-shadow:0 2px 10px rgba(0,0,0,0.4); }
.sidebar-title { font-size:15px; font-weight:800; color:#fff; line-height:1.2; }
.sidebar-sub   { font-size:11px; color:rgba(255,255,255,0.38); margin-top:3px; }
.sidebar-close-btn { margin-left:auto; background:rgba(255,255,255,0.1); border:none; color:#fff; width:32px; height:32px; border-radius:50%; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.sidebar-menu { flex:1; padding:14px 10px; display:flex; flex-direction:column; gap:3px; }
.sidebar-item { display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:12px; cursor:pointer; font-size:14px; font-weight:600; color:rgba(255,255,255,0.68); transition:background 0.18s,color 0.18s; user-select:none; }
.sidebar-item:hover { background:rgba(255,255,255,0.1); color:#fff; }
.sidebar-item.active { background:#588157; color:#fff; box-shadow:0 2px 12px rgba(88,129,87,0.4); }
.sidebar-icon { font-size:19px; flex-shrink:0; width:26px; text-align:center; }
.sidebar-footer { padding:16px 14px 22px; border-top:1px solid rgba(255,255,255,0.1); text-align:center; flex-shrink:0; }
.sidebar-pwa-btn { background:linear-gradient(135deg,#588157,#3a5a40); color:white; border:none; border-radius:22px; padding:11px 18px; font-size:13px; font-weight:700; cursor:pointer; width:100%; margin-bottom:10px; }
.sidebar-version { font-size:10px; color:rgba(255,255,255,0.22); }

/* ─── BROWSER / PWA ONLY ─── */
.browser-only { display:none !important; }
body.browser-mode .browser-only   { display:flex  !important; }
body.browser-mode .pwa-chat-item  { display:none  !important; }

/* Web'de sidebar'dan gizlenenler */
body.browser-mode #snav-settings  { display:none  !important; }
body.browser-mode #snav-chat      { display:none  !important; }
body.browser-mode #snav-ozel      { display:none  !important; }

/* PWA'da alt menü tamamen gizli — her şey yan menüde */
body.pwa-mode #navBar             { display:none  !important; }

/* PWA'da hamburger görünür */
body.pwa-mode .hamburger-btn      { display:flex  !important; }

/* PWA'da header ikonlar yan menüye taşındı */
body.pwa-mode #soundToggleBtn,
body.pwa-mode #profilAvatarBtn    { display:none  !important; }

/* PWA Sidebar kullanıcı paneli */
body.pwa-mode .sidebar-pwa-user,
body.pwa-mode .sidebar-pwa-footer { display:flex  !important; }

/* ════════════════════════════════════════════════════════
   KAYAN HABER BANDI (Ticker)
   Hava durumu + namaz vakitleri + duyuru başlıkları
════════════════════════════════════════════════════════ */
.ticker-band {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1e2d20 0%, #2d4a30 100%);
  border-bottom: 2px solid rgba(88,129,87,0.5);
  flex-shrink: 0;
  position: relative;
}

/* Üst satır: hava + canli label + kayan yazı */
.ticker-row-top {
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
}

/* Küçük hava widget */
.ticker-hava {
  flex-shrink: 0;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  min-width: 80px;
}

/* CANLI etiketi */
.ticker-label {
  flex-shrink: 0;
  background: #588157;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: tickerScroll 12s linear infinite;
  will-change: transform;
}
.ticker-inner:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Kayan yazı öğeleri */
.ticker-item {
  display: inline-flex;
  align-items: center;
  color: #e8f4e8;
  font-size: 12px;
  font-weight: 500;
  padding: 0 16px;
  white-space: nowrap;
}
.ticker-item b { color: #fff; font-weight: 700; margin: 0 2px; }
.ticker-sep { color: rgba(255,255,255,0.3); padding: 0 8px; font-size: 10px; }
.doviz-item  { color: #fde68a; }
.altin-item  { color: #fcd34d; }
.tarim-item  { color: #86efac; }
.borsa-item  { color: #93c5fd; }
.akaryakit-item { color: #fdba74; }
.duyuru-item { color: #c4b5fd; }

/* Namaz vakitleri bar - alt satır */
.ticker-namaz-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  height: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  gap: 0;
  padding: 0 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ticker-namaz-bar::-webkit-scrollbar { display: none; }

.namaz-vakit {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  padding: 0 6px;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.3s;
}
.namaz-vakit.namaz-aktif {
  color: #fde68a;
  font-weight: 800;
  background: rgba(253,230,138,0.12);
}
.namaz-ad   { font-weight: 600; }
.namaz-saat { font-weight: 700; font-size: 11px; }
.namaz-sep  { color: rgba(255,255,255,0.15); padding: 0 2px; font-size: 9px; }


/* Soldan sağa gradient fade */
.ticker-band::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40px;
  z-index: 3;
  pointer-events: none;
}
.ticker-band::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(270deg, #1e2d20, transparent);
  z-index: 3;
  pointer-events: none;
}

/* ─── ALT NAVİGASYON ─── */
/* Browser modunda alt menü TAMAMEN GİZLİ - yan menü var */
body.browser-mode #navBar {
  display: none !important;
}
body.browser-mode {
  padding-bottom: 0 !important;
}
/* PWA modunda sadece ikonlar */
.nav-footer .nav-label { display: none !important; }
.nav-footer { height: 52px; }
.nav-footer .nav-item { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:6px 0; }
.nav-footer .nav-icon { font-size: 20px; line-height: 1; }
body.pwa-mode { padding-bottom: 54px !important; }

/* ─── DERNEK ─── */
.dernek-kart { background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.07); border-left:4px solid #588157; }
.dernek-tip-toplanti{border-left-color:#1976d2;} .dernek-tip-karar{border-left-color:#e65100;} .dernek-tip-proje{border-left-color:#388e3c;} .dernek-tip-etkinlik{border-left-color:#d81b60;} .dernek-tip-diger{border-left-color:#7b3f00;}
.dernek-kart-ust{padding:14px 16px 8px;display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;}
.dernek-tip-badge{font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px;flex-shrink:0;background:#e8f5e9;color:#2e7d32;}
.tip-toplanti{background:#e3f2fd;color:#1565c0;} .tip-karar{background:#fff3e0;color:#e65100;} .tip-proje{background:#e8f5e9;color:#388e3c;} .tip-etkinlik{background:#fce4ec;color:#c62828;} .tip-diger{background:#f3e5f5;color:#6a1b9a;}
.dernek-baslik{font-size:15px;font-weight:700;color:#1a1a1a;flex:1;min-width:0;word-break:break-word;}
.dernek-tarih{padding:0 16px 6px;font-size:12px;color:#999;font-weight:600;}
.dernek-aciklama{padding:0 16px 14px;font-size:14px;color:#444;line-height:1.7;white-space:pre-wrap;}
.dernek-footer{padding:8px 16px 12px;border-top:1px solid #f5f5f5;display:flex;justify-content:flex-end;}

/* ─── MUHTAR ─── */
.muhtar-sayfa{padding:12px;padding-bottom:80px;display:flex;flex-direction:column;}
.muhtar-profil-kart{background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,0.1);margin-bottom:14px;}
.muhtar-profil-foto{width:100%;max-height:260px;object-fit:cover;display:block;}
.muhtar-profil-foto-placeholder{width:100%;height:180px;background:linear-gradient(135deg,#588157,#3a5a40);display:flex;align-items:center;justify-content:center;font-size:90px;}
.muhtar-profil-bilgi{padding:18px 18px 20px;}
.muhtar-ad{font-size:22px;font-weight:900;color:#1a1a1a;margin-bottom:6px;}
.muhtar-unvan{display:inline-block;font-size:12px;font-weight:700;color:#5c3d0e;background:linear-gradient(135deg,#fff3cd,#ffe082);padding:4px 12px;border-radius:20px;margin-bottom:14px;border:1px solid #ffd54f;}
.muhtar-bio{font-size:14px;color:#555;line-height:1.75;}
.muhtar-bolum-baslik-row{padding:14px 4px 10px;}
.muhtar-bolum-baslik{font-size:16px;font-weight:800;color:#3a5a40;border-left:4px solid #588157;padding-left:12px;}
.muhtar-hizmet-listesi{display:flex;flex-direction:column;gap:8px;margin-bottom:6px;}
.muhtar-hizmet-kart{background:#fff;border-radius:14px;padding:14px 16px;box-shadow:0 2px 10px rgba(0,0,0,0.07);display:flex;gap:12px;align-items:flex-start;}
.muhtar-hizmet-yil{font-size:12px;font-weight:800;color:#3a5a40;background:#e8f5e9;border:1px solid #a5d6a7;padding:4px 9px;border-radius:10px;flex-shrink:0;min-width:46px;text-align:center;}
.muhtar-hizmet-icerik{flex:1;min-width:0;}
.muhtar-hizmet-baslik{font-size:14px;font-weight:700;color:#1a1a1a;margin-bottom:3px;}
.muhtar-hizmet-aciklama{font-size:13px;color:#666;line-height:1.5;}
.muhtar-hizmet-sil{background:none;border:none;color:#ddd;font-size:16px;cursor:pointer;padding:2px;flex-shrink:0;}
.muhtar-iletisim{margin-bottom:16px;}
.muhtar-iletisim .contact-buttons{flex-direction:row;flex-wrap:wrap;gap:10px;}
.muhtar-iletisim .contact-btn{flex:1;min-width:120px;justify-content:center;border-radius:14px;padding:12px 16px;font-size:14px;}

/* ═══════════ DERNEK YÖNETİM KURULU ═══════════ */
.dernek-yonetim-bolum {
    margin: 10px 12px 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8efe3;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(88,129,87,0.08);
}
.dernek-yonetim-baslik-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #3a5a3a;
    cursor: pointer;
    background: #f4f9f1;
    user-select: none;
}
.dernek-yonetim-baslik-row:active { background: #e8f0e4; }

.dy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 4px 0 8px;
}
.dy-kart {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fafdf8;
    border-radius: 12px;
    padding: 12px 8px 10px;
    border: 1px solid #e8efe3;
    position: relative;
}
.dy-foto {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    cursor: pointer;
    border: 2px solid #588157;
}
.dy-foto-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e8f0e4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 8px;
}
.dy-ad {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
    margin-bottom: 3px;
}
.dy-gore {
    font-size: 11px;
    color: #588157;
    font-weight: 600;
    background: #e8f5e9;
    padding: 2px 7px;
    border-radius: 20px;
}
.dy-sil-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #fee2e2;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── PWA Sidebar Kullanıcı Paneli ── */
.sidebar-pwa-user{display:none;align-items:center;gap:10px;padding:14px 16px;background:linear-gradient(135deg,#3a5a40,#588157);}
.sidebar-pwa-avatar{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,0.2);display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer;font-weight:700;color:#fff;border:2px solid rgba(255,255,255,0.35);flex-shrink:0;overflow:hidden;}
.sidebar-pwa-info{flex:1;min-width:0;}
.sidebar-pwa-name{font-size:14px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-pwa-role{font-size:11px;color:rgba(255,255,255,0.7);margin-top:2px;}
.sidebar-pwa-bell{background:rgba(255,255,255,0.15);border:none;border-radius:50%;width:36px;height:36px;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.sidebar-pwa-footer{display:none;flex-direction:column;gap:8px;padding:12px 16px 24px;border-top:1px solid #e8f0e8;}
.sidebar-pwa-login-btn{background:linear-gradient(135deg,#3a5a40,#588157);color:#fff;border:none;padding:12px;border-radius:12px;font-size:14px;font-weight:700;cursor:pointer;width:100%;}
.sidebar-pwa-exit-btn{background:#fee2e2;color:#dc2626;border:none;padding:10px;border-radius:12px;font-size:13px;font-weight:600;cursor:pointer;width:100%;}
body.pwa-mode #sidebarNav{display:flex!important;flex-direction:column;}
body.pwa-mode #sidebarNav .sidebar-menu{flex:1;overflow-y:auto;}

/* PWA alt menü yok, padding sıfır */
body.pwa-mode { padding-bottom: 0 !important; }

/* ── Kayan Yazı (Ticker) Öğe Renkleri ── */
span.ti {
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 500;
  padding: 0 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
span.ti b {
  color: #ffffff !important;
  font-weight: 700;
  margin: 0 2px;
}
span.tc-doviz  { color: #ffffff !important; }
span.tc-altin  { color: #fef08a !important; }
span.tc-tarim  { color: #bbf7d0 !important; }
span.tc-borsa  { color: #bfdbfe !important; }
span.tc-et     { color: #fed7aa !important; }
span.tc-hava   { color: #ffffff !important; }
span.tc-namaz  { color: #e9d5ff !important; }
span.tc-duyuru { color: #fbcfe8 !important; }
span.tc-yukari { color: #86efac !important; }
span.tc-asagi  { color: #fca5a5 !important; }
span.tsep      { color: rgba(255,255,255,0.4); padding: 0 6px; font-size: 10px; }
