/* ===========================================================================
   main.css — Thomson "Doğduğun Gün" deneyimi
   OLED için gerçek siyah, premium koyu tema; TV kumandası dostu büyük kontroller.
   =========================================================================== */

:root {
  --brand: #00b4e6;
  --accent: #c9a14a;
  --gold: #ffd98a;
  --text: #eaf2ff;
  --muted: #8fa6c4;
  --focus: #00b4e6;
}

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

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #000; color: var(--text);
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

#sky {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; display: block;
}

.hidden { display: none !important; }

/* --- Ekranlar (giriş / kapanış) ------------------------------------------ */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.2vh;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(2,6,18,0.35) 0%, rgba(0,0,0,0.78) 70%, rgba(0,0,0,0.92) 100%);
  animation: fadeIn 0.8s ease both;
  z-index: 10;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Marka kilidi --------------------------------------------------------- */
.brand-lockup { display: flex; align-items: center; gap: 18px; }
.brand-mark {
  font-size: 3.2rem; color: var(--gold);
  text-shadow: 0 0 24px rgba(255,217,138,0.6);
  animation: twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.brand-title { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-top {
  font-size: 2.0rem; letter-spacing: 0.42em; font-weight: 700;
  color: #fff; padding-left: 0.42em;
}
.brand-bottom {
  font-size: 1.5rem; font-weight: 300; letter-spacing: 0.05em;
  color: var(--brand); margin-top: 6px;
}
.tagline { font-size: 1.35rem; font-weight: 300; color: var(--muted); margin-top: -0.5vh; }

/* --- Form alanları (segmentli sayaçlar) ----------------------------------- */
.form-fields {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: stretch; justify-content: center;
  margin-top: 1.5vh; max-width: 92vw;
}
.field {
  min-width: 116px;
  background: rgba(10,18,34,0.6);
  border: 1.5px solid rgba(120,150,190,0.22);
  border-radius: 16px;
  padding: 14px 16px 12px;
  backdrop-filter: blur(6px);
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
  user-select: none;
}
.field.focused {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(0,180,230,0.25), 0 0 32px rgba(0,180,230,0.35);
  transform: translateY(-3px);
  background: rgba(14,26,46,0.8);
}
.field-label {
  font-size: 0.72rem; letter-spacing: 0.18em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 8px;
}
.field-stepper { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.field-stepper .arrow {
  font-size: 0.8rem; color: var(--muted); cursor: pointer; line-height: 1;
  transition: color .15s, transform .15s;
}
.field.focused .arrow { color: var(--brand); }
.field-stepper .arrow:hover { color: #fff; transform: scale(1.25); }
.field-value {
  font-size: 1.7rem; font-weight: 600; color: #fff; min-width: 2.4ch;
  font-variant-numeric: tabular-nums;
}

/* --- Başlat butonu -------------------------------------------------------- */
.start-btn, .end-btn {
  cursor: pointer; border: none; color: #001018;
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 18px 38px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #66e0ff);
  box-shadow: 0 8px 30px rgba(0,180,230,0.4);
  transition: transform .18s, box-shadow .18s, filter .18s;
  align-self: center;
}
.form-fields .start-btn { margin-left: 8px; align-self: center; }
.start-btn.focused, .end-btn.focused {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 4px rgba(0,180,230,0.35), 0 12px 40px rgba(0,180,230,0.55);
  filter: brightness(1.08);
}
.start-btn:hover, .end-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* --- İpucu / co-brand ----------------------------------------------------- */
.hint { font-size: 0.95rem; color: var(--muted); margin-top: 1.2vh; }
.hint .key {
  display: inline-block; padding: 2px 10px; margin: 0 2px;
  border: 1px solid rgba(140,170,210,0.3); border-radius: 8px;
  color: var(--text); font-size: 0.85rem;
}
.cobrand {
  position: absolute; bottom: 4.5vh; left: 0; right: 0;
  text-align: center; font-size: 0.85rem; letter-spacing: 0.32em;
  color: rgba(180,200,225,0.55); font-weight: 500;
}

/* --- Deneyim üst katmanı -------------------------------------------------- */
.caption {
  position: fixed; left: 0; right: 0; bottom: 9vh;
  text-align: center; font-size: 1.5rem; font-weight: 300;
  letter-spacing: 0.04em; color: rgba(234,242,255,0.92);
  text-shadow: 0 2px 28px rgba(0,0,0,0.9);
  z-index: 6; pointer-events: none;
  animation: capFade 0.9s ease both;
}
@keyframes capFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Gezegen / Ay etiketleri */
.planet-labels { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.planet-label {
  position: absolute; transform: translate(-50%, -165%);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(232,240,255,0.92); white-space: nowrap;
  text-shadow: 0 0 14px rgba(0,0,0,0.85);
  animation: capFade 0.8s ease both;
}
.planet-label::before {
  content: '•'; margin-right: 6px; font-size: 1.1em;
  color: var(--pl, #cfe0ff); text-shadow: 0 0 10px var(--pl, #cfe0ff);
}

.zodiac-label {
  position: fixed; transform: translate(-50%, -140%);
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--gold); text-shadow: 0 0 18px rgba(255,217,138,0.7);
  z-index: 6; pointer-events: none; white-space: nowrap;
}

.reveal-text {
  position: fixed; left: 0; right: 0; bottom: 8vh;
  text-align: center;
  z-index: 7; pointer-events: none;
  animation: revealIn 1.6s ease both;
}
@keyframes revealIn { from { opacity: 0; transform: translateY(18px); letter-spacing: 0.18em; } to { opacity: 1; transform: none; } }
.reveal-zod {
  font-size: 3.2rem; font-weight: 700; color: var(--gold);
  text-shadow: 0 0 34px rgba(255,217,138,0.65); margin-bottom: 10px;
}
.reveal-line { font-size: 1.7rem; font-weight: 300; color: #fff; }
.reveal-sub { font-size: 1.15rem; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em; }
.reveal-moon { font-size: 1.05rem; color: var(--gold); margin-top: 6px; letter-spacing: 0.04em; opacity: 0.9; }

/* Takımyıldız figür illüstrasyonu (assets/figures/<burç>.png varsa) */
.figure-img {
  position: fixed; z-index: 6; pointer-events: none;
  transform: translate(-50%, -50%); opacity: 0;
  transition: opacity 1.4s ease;
  filter: drop-shadow(0 0 30px rgba(255,220,150,0.45));
  mix-blend-mode: screen;
}
.figure-img.show { opacity: 0.85; }

/* --- Kapanış -------------------------------------------------------------- */
.end-inner { display: flex; flex-direction: column; align-items: center; gap: 1.6vh; }
.end-mark { font-size: 2.6rem; color: var(--gold); text-shadow: 0 0 24px rgba(255,217,138,0.6); }
.end-summary { font-size: 1.25rem; font-weight: 600; color: var(--gold); letter-spacing: 0.03em; text-shadow: 0 0 18px rgba(255,217,138,0.4); }
.end-summary:empty { display: none; }
.end-message { font-size: 2.4rem; font-weight: 300; color: #fff; }
.end-sub { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.end-actions { display: flex; gap: 18px; margin-top: 1.2vh; }
.end-btn { background: linear-gradient(135deg, #2a3a55, #43597f); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.end-btn:first-child { background: linear-gradient(135deg, var(--brand), #66e0ff); color: #001018; }

/* --- Büyük ekran (TV / kiosk) ölçeği -------------------------------------- */
@media (min-width: 1600px) {
  .brand-top { font-size: 2.6rem; }
  .brand-bottom { font-size: 1.9rem; }
  .tagline { font-size: 1.7rem; }
  .field-value { font-size: 2.1rem; }
  .start-btn, .end-btn { font-size: 1.5rem; padding: 22px 46px; }
  .caption { font-size: 1.9rem; }
  .reveal-zod { font-size: 4rem; }
  .reveal-line { font-size: 2.1rem; }
}
