/* =========================================================
   AstroArketip — Ana Stiller / Layout / Bileşenler
   ========================================================= */

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink-1);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, .display {
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; }
button { font-family: inherit; }

.hidden { display: none !important; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Yükleme ekranı ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-base);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.orbit-loader { width: 64px; height: 64px; position: relative; }
.orbit-loader span {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent-indigo);
  border-right-color: var(--accent-pink);
  animation: orbit-spin 1.1s linear infinite;
}
.orbit-loader span:nth-child(2) { inset: 12px; border-top-color: var(--accent-cyan); border-right-color: transparent; animation-duration: 0.8s; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
#loading-screen p { color: var(--ink-2); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Üst navigasyon ---------- */
.topbar {
  position: sticky; top: 14px; z-index: 500;
  margin: 14px auto 0; max-width: 1180px; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand .glyph {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad-aurora);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: 0 6px 16px rgba(107,91,255,0.35);
}

.tabs { display: flex; gap: 4px; padding: 4px; }
.tabs button {
  border: none; background: transparent; cursor: pointer;
  padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.tabs button.is-active { background: var(--glass-fill-strong); color: var(--ink-1); box-shadow: var(--shadow-soft); }
.tabs button:hover:not(.is-active) { color: var(--ink-1); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-1); font-size: 16px;
}
.sun-badge { display: none; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; font-size: 13px; font-weight: 600; }
.sun-badge .em { font-size: 18px; }
.hamburger { display: none; }

@media (max-width: 880px) {
  .tabs { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Mobil hamburger menü ---------- */
#mobile-menu { position: fixed; inset: 0; z-index: 600; display: flex; align-items: flex-start; justify-content: flex-end; padding: 18px; }
#mobile-menu .scrim { position: absolute; inset: 0; background: rgba(15,10,35,0.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#mobile-menu .panel { position: relative; width: 240px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
#mobile-menu button.menu-link { text-align: left; border: none; background: transparent; cursor: pointer; padding: 12px 10px; border-radius: var(--r-md); font-weight: 600; font-size: 15px; color: var(--ink-1); }
#mobile-menu button.menu-link.is-active { background: var(--glass-fill); }

/* ---------- Mobil alt nav ---------- */
.mobile-bottom-nav { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 500; padding: 8px; border-radius: var(--r-xl); align-items: center; justify-content: space-between; }
.mobile-bottom-nav button { flex: 1; border: none; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: var(--r-md); color: var(--ink-3); font-size: 10px; font-weight: 600; }
.mobile-bottom-nav button .ico { font-size: 17px; }
.mobile-bottom-nav button.is-active { color: var(--accent-indigo); background: var(--glass-fill); }

@media (max-width: 880px) {
  .mobile-bottom-nav { display: flex; }
  main { padding-bottom: 90px; }
}

/* ---------- Genel bölüm ---------- */
.section { padding: 28px 0 60px; animation: fade-up 0.5s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hero { text-align: center; padding: 40px 0 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--ink-2); font-size: 17px; max-width: 560px; margin: 14px auto 0; }

.card { padding: 22px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.guide-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.block-guide { padding: 16px 18px; font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 8px; }
.placeholder-note { color: var(--ink-3); font-size: 14px; line-height: 1.7; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input {
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.5);
  border-radius: var(--r-md);
  padding: 12px 14px; font-size: 15px; color: var(--ink-1);
  outline: none; transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
[data-theme="dark"] .field input { background: rgba(255,255,255,0.04); }
.field input:focus { border-color: var(--accent-indigo); box-shadow: 0 0 0 3px rgba(107,91,255,0.18); }

/* ---------- KVKK Modal ---------- */
#kvkk-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(10, 8, 24, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#kvkk-overlay.is-hidden { display: none; }
.kvkk-modal { width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column; padding: 0; }
.kvkk-modal__head { padding: 24px 26px 6px; }
.kvkk-modal__head h2 { font-size: 21px; }
.kvkk-modal__head p { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.kvkk-tabs { display: flex; gap: 6px; padding: 0 26px; margin-top: 14px; }
.kvkk-tabs button { border: none; background: var(--glass-fill); cursor: pointer; padding: 8px 14px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.kvkk-tabs button.is-active { background: var(--grad-aurora); color: #fff; }
.kvkk-modal__body {
  margin: 14px 26px; padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.4); border: 1px solid var(--glass-border);
  overflow-y: auto; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); max-height: 32vh;
}
[data-theme="dark"] .kvkk-modal__body { background: rgba(255,255,255,0.03); }
.kvkk-modal__foot { padding: 6px 26px 24px; }
.kvkk-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.55; cursor: pointer; margin-bottom: 16px; }
.kvkk-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent-indigo); flex-shrink: 0; }
.kvkk-modal__foot .btn-aurora { width: 100%; }
.kvkk-modal__foot .btn-aurora:disabled { background: var(--ink-3); box-shadow: none; }
.kvkk-modal__foot small { display: block; text-align: center; margin-top: 10px; color: var(--ink-3); font-size: 11.5px; }

/* ---------- Toast ---------- */
#toast-stack { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 7000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 12px 20px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; animation: toast-in 0.25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

footer { text-align: center; padding: 30px 0 50px; color: var(--ink-3); font-size: 12.5px; }
footer a { text-decoration: underline; }
