/* ==========================================================================
   temel.css — TÜM SAYFALARDA YÜKLENİR
   İçerik: sabit renkler, sıfırlama, gövde, site bandı, erişilebilirlik,
   yardımcı sınıflar (gerçek istisnalar için; yeni boşluk ihtiyaçları bilesenler.css'e eklenir).

   Yükleme sırası (her sayfada aynı):
     1. temel.css
     2. tema-[bolum].css   → bölümün rengi ve fontları
     3. bilesenler.css     → kart, kutu, buton, medya...
     4. sayfaya özel css   → (varsa) arsiv.css, okuyucu.css, anasayfa.css
   ========================================================================== */

:root {
  /* Sitenin sabit renkleri — bölüm temaları bunları kullanır */
  --renk-koyu: #1B1A1F;
  --renk-acik: #F0EFEB;
  --renk-akademik: #4DFFBE;
  --renk-sanat: #FF2DD1;
  --renk-performans: #63C8FF;

  /* Tema dosyası yüklenmezse kullanılacak varsayılanlar.
     Her tema-[bolum].css bu değerleri kendi değerleriyle ezer. */
  --tema: var(--renk-akademik);
  --font-baslik: system-ui, sans-serif;
  --font-govde: system-ui, sans-serif;

  /* Açık zeminli bölüm sayfaları için ortak tonlar */
  --metin: #1B1A1F;
  --metin-soluk: #333333;
  --beyaz: #ffffff;
  --siyah: #000000;
  --zemin-okuyucu: #E8E8E5;      /* PDF okuyucu sayfa arkası */
  --zemin-arac: #fdfdfd;         /* araç çubukları */
  --cizgi: rgba(27, 26, 31, 0.15);
  --kart-zemin: rgba(255, 255, 255, 0.45);
  --kart-hover: rgba(255, 255, 255, 0.75);

  --bant-yukseklik: 56px;
}

/* --- Sıfırlama ----------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background-color: var(--tema);
  font-family: var(--font-govde);
  color: var(--metin);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img,
video {
  max-width: 100%;
}

/* HTML'deki width/height yalnızca en-boy oranını ayırmak içindir;
   görsel her zaman kutusuna göre ölçeklenir, asla basıklaşmaz. */
img {
  height: auto;
}

/* --- Site bandı (her bölüm sayfasının üstündeki şerit) ------------------ */

.site-bandi {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bant-yukseklik);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 36px;
  border-bottom: 1px solid var(--cizgi);
  background-color: var(--tema);
  background-color: color-mix(in srgb, var(--tema) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bant-geri {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-baslik);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--metin);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.bant-geri:hover {
  opacity: 0.55;
}

.bant-baslik {
  font-family: var(--font-baslik);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: lowercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bant-rozet {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--metin);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--cizgi);
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s ease;
}

.bant-rozet:hover {
  background: var(--beyaz);
}

@media (max-width: 768px) {
  .site-bandi {
    padding: 0 16px;
  }
  .bant-baslik {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
  }
  .bant-geri,
  .bant-rozet {
    font-size: 0.85rem;
  }
  .bant-rozet {
    padding: 3px 10px;
  }
}

@media (max-width: 600px) {
  /* Dar ekranda ORCID numarası gizlenir, yalnızca "orcid" yazısı kalır */
  .bant-rozet-detay {
    display: none;
  }
}

/* --- Erişilebilirlik ----------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--renk-koyu);
  outline-offset: 3px;
}

.gorunmez {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Yardımcı sınıflar (her zaman kazanır) ------------------------------ */


.genislik-520 { max-width: 520px !important; }
