/* ============================================
   KATRAN DERGİ — TEMA SİSTEMİ
   ============================================ */

:root, [data-theme="katran"] {
  --bg: #0d0405;
  --bg-elev: rgba(139,46,62,0.08);
  --bg-elev-2: rgba(139,46,62,0.14);
  --border: rgba(139,46,62,0.25);
  --border-strong: rgba(139,46,62,0.5);
  --text: #f8ece8;
  --text-muted: #c8a0a8;
  --text-dim: #8a6068;
  --bordo: #b04455;
  --bordo-dark: #8b2e3e;
  --bordo-light: #d16478;
  --bordo-glow: rgba(176,68,85,0.3);
  --accent: #ff4d4d;
  --accent-dark: #d32f2f;
  --accent-glow: rgba(255,77,77,0.2);
  --gold: #e8b860;
  --shadow-sm: 0 4px 20px rgba(139,46,62,0.3);
  --shadow-lg: 0 20px 50px rgba(139,46,62,0.4);
  --nav-bg: rgba(13,4,5,0.92);
}

[data-theme="light"] {
  --bg: #f4efe8;
  --bg-elev: rgba(0,0,0,0.02);
  --bg-elev-2: rgba(0,0,0,0.05);
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text: #0a0808;
  --text-muted: #5a5450;
  --text-dim: #8a8480;
  --bordo: #6b1f2e;
  --bordo-dark: #4a1520;
  --bordo-light: #8b2e3e;
  --bordo-glow: rgba(107,31,46,0.12);
  --accent: #c1272d;
  --accent-dark: #8b1a1e;
  --accent-glow: rgba(193,39,45,0.1);
  --gold: #b8860b;
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --nav-bg: rgba(244,239,232,0.92);
}

/* NOT: eski 'dark' teması kaldırıldı; yerine varsayılan 'katran' kullanılır.
   Kayıtlı 'dark' değeri JS tarafında otomatik 'katran'a göçürülür. */

/* ============================================
   GLOBAL TRANSITION
   ============================================ */
*, *::before, *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
input, textarea, select, button {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}

/* ============================================
   ÇİÇEK SEMBOLÜNÜ GİZLE (global)
   ============================================ */
.section h2::before,
.section-title::before,
.section-header h2::before,
h1::before, h2::before, h3::before {
  content: none !important;
  display: none !important;
}
.empty .flower,
.loading .flower {
  display: none !important;
}

/* ============================================
   TEMA DÜĞMESİ — TEK BUTON (tüm sayfalarla aynı)
   ============================================ */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--bordo);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}
.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}
.theme-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   ALT MENÜ
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
}
.bottom-nav-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}
.bn-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  min-width: 50px;
}
.bn-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.2s;
}
.bn-item:hover { color: var(--text); }
.bn-item:hover svg { transform: translateY(-2px); }
.bn-item.active { color: var(--bordo); }
.bn-item.active svg { fill: var(--bordo-glow); }
.bn-item .bn-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 20px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}
.bn-create {
  background: var(--bordo);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px var(--bordo-glow);
  margin-top: -20px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.bn-create svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bn-create:hover {
  background: var(--bordo-dark);
  transform: translateY(-4px) scale(1.05);
}
.bn-item.bn-admin svg { color: var(--gold); }

/* ============================================
   MOBİL UYUM
   ============================================ */
@media (max-width: 520px) {
  .theme-toggle {
    bottom: 84px;
    right: 0.75rem;
    width: 44px;
    height: 44px;
  }
  .theme-toggle svg {
    width: 22px;
    height: 22px;
  }
}