/* =========================================================
   İSTİKLAL • "KIZIL KURT" TEMASI
   Obsidyen zemin, kan kırmızısı parıltı, altın çizgiler.
   Kaldırmak için index.html'deki tema.css satırını silmek yeterli.
   ========================================================= */

:root {
  --ist-obsidian: #0b0707;
  --ist-ink: #140b0b;
  --ist-blood: #b3161b;
  --ist-ember: #ff5a1f;
  --ist-gold: #d8b25a;
  --ist-gold-soft: rgba(216, 178, 90, 0.28);
  --ist-gold-faint: rgba(216, 178, 90, 0.12);
}

html { background: var(--ist-obsidian); }

body {
  background-color: var(--ist-obsidian) !important;
  color: #f3ece7;
  isolation: isolate;
}

/* Afişten türetilmiş, bulanık ve karartılmış sabit arka plan */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(179, 22, 27, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11, 7, 7, 0.35) 0%, rgba(11, 7, 7, 0.82) 38%, var(--ist-obsidian) 70%),
    url("/static/img/tema/istiklal-arka.jpg") center top / cover no-repeat;
}

/* Yükselen kor parçacıkları (çok hafif, harekete duyarlı kullanıcılar için kapalı) */
body::after {
  content: "";
  position: fixed;
  inset: -20% 0 0 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 88%, #ff8a3d 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 72%, #ffb15c 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 95%, #ff5a1f 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 80%, #ffd27a 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 90%, #ff7a2f 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 76%, #ffb15c 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 55%, #ff7a2f 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 48%, #ffd27a 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 69% 52%, #ff5a1f 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 40%, #ffb15c 50%, transparent 51%);
  background-size: 100% 100%;
  animation: istEmbers 18s linear infinite;
}
@keyframes istEmbers {
  from { transform: translateY(0); opacity: 0.55; }
  to   { transform: translateY(-20%); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* Başlıklar: afişteki gibi oyma harfler */
h1, h2, h3,
#welcomeMemberName {
  font-family: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
}

/* Kartlar: koyu cam + ince altın çerçeve + iç ışık */
.glassmorphism {
  background:
    linear-gradient(180deg, rgba(40, 18, 16, 0.55) 0%, rgba(16, 9, 9, 0.88) 100%) !important;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid var(--ist-gold-soft) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.08),
    0 10px 30px -12px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* Üst çubuk ve alt menü */
header.glassmorphism {
  background: linear-gradient(180deg, rgba(20, 8, 8, 0.96), rgba(12, 6, 6, 0.9)) !important;
  border-bottom: 1px solid var(--ist-gold-soft) !important;
  box-shadow: 0 1px 0 rgba(179, 22, 27, 0.35), 0 8px 24px -8px rgba(0, 0, 0, 0.9) !important;
}
#bottomNav {
  background: linear-gradient(0deg, rgba(10, 5, 5, 0.98), rgba(20, 9, 9, 0.94)) !important;
  border-top: 1px solid var(--ist-gold-soft) !important;
}
.bottom-nav-active { color: var(--ist-gold) !important; }
.bottom-nav-active div {
  background: rgba(216, 178, 90, 0.16) !important;
  color: var(--ist-gold) !important;
  box-shadow: 0 0 14px rgba(216, 178, 90, 0.35) !important;
}

/* Ana sayfa afişi + altında slogan şeridi (afişteki siyah levha gibi) */
.ist-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(216, 178, 90, 0.45);
  background: #0d0606;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 40px -8px rgba(179, 22, 27, 0.55),
    0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.ist-hero picture,
.ist-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 511;
  object-fit: cover;
}
.ist-hero-motto {
  position: relative;
  padding: 0.7rem 1rem 0.8rem;
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: clamp(0.72rem, 2.8vw, 1.05rem);
  letter-spacing: 0.26em;
  color: var(--ist-gold);
  background: linear-gradient(180deg, #120808, #0a0505);
  border-top: 1px solid rgba(216, 178, 90, 0.35);
  text-shadow: 0 1px 0 #000, 0 0 14px rgba(179, 22, 27, 0.7);
  white-space: nowrap;
}
.ist-hero-motto::before,
.ist-hero-motto::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 1.8em;
  height: 1px;
  margin: 0 0.7em;
  background: linear-gradient(90deg, transparent, var(--ist-gold));
}
.ist-hero-motto::after { background: linear-gradient(270deg, transparent, var(--ist-gold)); }
@media (max-width: 640px) {
  .ist-hero { border-radius: 0.9rem; }
  .ist-hero picture, .ist-hero img { aspect-ratio: 900 / 448; }
}

/* Karşılama kartı: altın-kırmızı ayrım çizgisi */
#memberSection > .ist-greeting {
  background: linear-gradient(100deg, rgba(120, 14, 18, 0.45), rgba(20, 9, 9, 0.85) 55%) !important;
  border-color: var(--ist-gold-soft) !important;
}

/* Butonlar ve odak */
input:focus, select:focus, textarea:focus {
  border-color: var(--ist-gold) !important;
  box-shadow: 0 0 0 2px rgba(216, 178, 90, 0.18);
}

/* Kaydırma çubuğu */
.custom-scrollbar::-webkit-scrollbar-thumb { background: #4a2a26; }

/* Kale Savaşı sayfası (/kale) üst çubuğu */
.ist-header {
  background: linear-gradient(180deg, rgba(20, 8, 8, 0.96), rgba(12, 6, 6, 0.9)) !important;
  border-bottom: 1px solid var(--ist-gold-soft) !important;
  box-shadow: 0 1px 0 rgba(179, 22, 27, 0.35), 0 8px 24px -8px rgba(0, 0, 0, 0.9);
}
