/* ==========================================================================
   anasayfa-ebru.css — ANASAYFA (ebru gökyüzünde dönen dünya)
   Görüntünün tamamı WebGL ile çizilir (anasayfa-ebru.js). Bu dosya yalnızca
   üst bandı, başlığı ve WebGL olmayan tarayıcılar için yedek görünümü tanımlar.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto+Condensed:wght@300;400;600&display=swap');

:root {
  --font-baslik: 'Montserrat', sans-serif;
  --font-govde: 'Roboto Condensed', sans-serif;
  --dunya-y: 45%;     /* dünyanın merkezi; betik ekran oranına göre günceller */
  --dunya-r: 31vh;    /* dünyanın yarıçapı */
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--renk-koyu);
  color: var(--renk-acik);
}

/* --- Sahne: tüm ekran ---------------------------------------------------- */

.sahne {
  position: fixed;
  inset: 0;
  cursor: grab;
  touch-action: none;
}

.sahne.tutuyor {
  cursor: grabbing;
}

#ebru {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Üst bant ----------------------------------------------------------- */

.anasayfa-bandi {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 36px;
  background: rgba(27, 26, 31, 0.5);
  border-bottom: 1px solid rgba(240, 239, 235, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.anasayfa-bandi a {
  color: var(--renk-acik);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.anasayfa-bandi a:hover {
  opacity: 0.6;
}

/* --- Başlık: dünyanın üstünde ------------------------------------------- */

.bildirim {
  position: absolute;
  left: 50%;
  top: var(--dunya-y);
  z-index: 2;
  width: calc(var(--dunya-r) * 1.7);
  max-width: 90vw;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.bildirim h1 {
  font-family: var(--font-baslik);
  font-size: clamp(1.9rem, 5.2vmin, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  color: var(--renk-acik);
  text-shadow: 0 2px 24px rgba(27, 26, 31, 0.8);
}

.bildirim p {
  margin-top: 10px;
  font-size: clamp(0.95rem, 2vmin, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.4px;
  text-transform: lowercase;
  color: rgba(240, 239, 235, 0.72);
  text-shadow: 0 1px 12px rgba(27, 26, 31, 0.8);
}

/* --- İpucu: sağ altta, küçük ----------------------------------------- */

.ipucu {
  position: absolute;
  right: 36px;
  bottom: 24px;
  z-index: 3;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-transform: lowercase;
  color: rgba(240, 239, 235, 0.6);
  pointer-events: none;
}

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

/* --- WebGL çalışmazsa: sakin, düz bir yedek ------------------------------ */

.webgl-yok #ebru {
  display: none;
}

.webgl-yok .sahne {
  cursor: default;
  background:
    radial-gradient(60% 70% at 18% 40%, rgba(255, 45, 209, 0.55), transparent 70%),
    radial-gradient(55% 65% at 82% 30%, rgba(77, 255, 190, 0.5), transparent 70%),
    radial-gradient(70% 60% at 55% 85%, rgba(99, 200, 255, 0.5), transparent 70%),
    var(--renk-koyu);
}

.webgl-yok .ipucu {
  display: none;
}

/* --- Dar ekran ----------------------------------------------------------- */

@media (max-width: 768px) {
  .anasayfa-bandi {
    flex-direction: column;
    gap: 6px;
    padding: 14px 20px;
    text-align: center;
    font-size: 0.95rem;
  }

  .ipucu {
    right: 0;
    left: 0;
    bottom: 18px;
    text-align: center;
    font-size: 0.82rem;
  }
}
