/* ==========================================================================
   Ardilla — Glassmorphism arayüz
   index.html ve child-safety.html bu dosyayı ortak kullanır.
   ========================================================================== */

:root {
  --brand: #cc185e;          /* logodaki fuşya */
  --brand-soft: #ff9cc0;     /* koyu cam üzerinde okunabilir pembe */
  --cream: #fdfbee;          /* logonun zemin rengi */
  --ink: #111726;

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --text-faint: rgba(255, 255, 255, 0.64);

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.07) 100%);
  --glass-bg-fallback: rgba(28, 34, 48, 0.88);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.32);
  --shadow: 0 18px 50px -14px rgba(4, 8, 20, 0.5);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
  --header-h: 68px;
}

/* ---------- Temel ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #1c2431;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 32px);
}

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* İkonlar (sayfadaki SVG sprite'tan <use> ile çağrılır) */
.ic {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ic-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Tam ekran arka plan ----------
   background-attachment: fixed iOS Safari'de çalışmadığı için
   sabit konumlu ayrı bir katman kullanılır. */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #5d6f80 url("assets/bg-1200.webp") 32% center / cover no-repeat;
}

@media (min-width: 1200px), (min-width: 700px) and (min-resolution: 2dppx) {
  .page-bg {
    background-image: url("assets/bg-2400.webp");
  }
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(204, 24, 94, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.28) 0%, rgba(10, 16, 30, 0.42) 45%, rgba(10, 16, 30, 0.72) 100%);
}

/* ---------- Cam (glass) yüzey ---------- */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

/* backdrop-filter desteklemeyen eski tarayıcılarda okunabilirlik için */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-bg-fallback);
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin-top: 14px;
  padding-inline: 16px;
}

.nav {
  max-width: var(--container);
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 12px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn .ic {
  width: 18px;
  height: 18px;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}

/* Mağaza butonları */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
  padding: 11px 22px 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(8, 10, 18, 0.62);
  color: #fff;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  background: rgba(8, 10, 18, 0.8);
  border-color: rgba(255, 255, 255, 0.42);
}

.store-btn .ic {
  width: 26px;
  height: 26px;
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--text-muted);
}

.store-btn strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* ---------- Ortak tipografi ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-soft);
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 156, 192, 0.7); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(255, 156, 192, 0); }
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #ffc4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-muted);
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head .h2 {
  text-shadow: 0 2px 30px rgba(5, 10, 25, 0.5);
}

.section-head p {
  margin: 0;
  font-size: 1.075rem;
  color: var(--text-muted);
  text-shadow: 0 1px 18px rgba(5, 10, 25, 0.6);
}

/* İkon kutusu: logodaki krem zemin + fuşya */
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: var(--cream);
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - var(--header-h) - 28px);
  min-height: calc(100svh - var(--header-h) - 28px);
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px);
  align-items: center;
  padding-block: 48px 72px;
}

.hero-card {
  grid-column: 2;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero .store-buttons {
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-points .ic {
  width: 18px;
  height: 18px;
  color: var(--brand-soft);
  stroke-width: 2.4;
}

/* ---------- Özellik kartları ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.48);
}

.feature-card h3 {
  margin: 6px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Aura Alanı (metin + harita önizlemesi) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
}

.split .h2 {
  margin-top: 18px;
}

.mode-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.mode {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.mode .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mode .ic {
  width: 22px;
  height: 22px;
}

.mode strong {
  display: block;
  font-weight: 700;
}

.mode span {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Telefon + harita maketi (tamamen CSS) */
.phone {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 9 / 18;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.map {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(118deg, transparent 0 60%, #b9d4e6 60% 73%, transparent 73%),
    radial-gradient(circle at 22% 30%, #cde2bd 0 13%, transparent 13.5%),
    radial-gradient(ellipse 30% 18% at 30% 82%, #cde2bd 0 99%, transparent 100%),
    linear-gradient(32deg, transparent 0 47.5%, #ffffff 47.5% 50.5%, transparent 50.5%),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, 0.95) 52px 56px),
    repeating-linear-gradient(0deg, transparent 0 64px, rgba(255, 255, 255, 0.95) 64px 68px),
    #ece6d6;
}

.map-search {
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.map-search .ic {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.pin {
  position: absolute;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2.5px solid #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.pin.story {
  box-shadow: 0 0 0 2.5px var(--brand), 0 6px 14px rgba(0, 0, 0, 0.28);
}

.pin-1 { left: 26%; top: 26%; background: linear-gradient(135deg, #f7a072, #e8577e); }
.pin-2 { left: 74%; top: 33%; background: linear-gradient(135deg, #7cc6a4, #2f8f83); }
.pin-3 { left: 30%; top: 58%; background: linear-gradient(135deg, #8ea7ff, #5361e6); }
.pin-4 { left: 78%; top: 60%; background: linear-gradient(135deg, #ffd36e, #ef8f3c); }
.pin-5 { left: 56%; top: 20%; background: linear-gradient(135deg, #c79cff, #8b5cf6); }

/* Kullanıcının konumu ve "aura" halkası */
.aura,
.me {
  position: absolute;
  left: 52%;
  top: 45%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.aura {
  width: 140px;
  height: 140px;
  border: 1px dashed rgba(204, 24, 94, 0.45);
  background: radial-gradient(circle, rgba(204, 24, 94, 0.22) 0%, rgba(204, 24, 94, 0.06) 60%, transparent 72%);
}

.aura::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: rgba(204, 24, 94, 0.4);
  animation: aura 2.6s ease-out infinite;
}

@keyframes aura {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(6.5); opacity: 0; }
}

.me {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  background: var(--brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.map-sheet .row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-sheet .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.map-sheet .ic {
  width: 20px;
  height: 20px;
}

.map-sheet strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.3;
}

.map-sheet .row span {
  display: block;
  font-size: 0.72rem;
  color: #5a6070;
}

.map-sheet .btn {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  padding: 8px;
  font-size: 0.82rem;
}

/* ---------- Güvenlik ---------- */

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.safety-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding: 24px 28px;
}

.safety-banner > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.safety-banner h3 {
  margin: 0;
  font-size: 1.1rem;
}

.safety-banner p {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- İndirme çağrısı ---------- */

.cta {
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-xl);
  text-align: center;
}

.cta-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.cta .lead {
  margin-inline: auto;
}

.cta .store-buttons {
  justify-content: center;
  margin-top: 28px;
}

.cta .contact {
  margin: 28px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta .contact a {
  font-weight: 600;
  color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-bottom: 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
}

.footer-brand p {
  max-width: 34ch;
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Yasal sayfa (child-safety.html) ---------- */

.legal {
  display: grid;
  gap: 20px;
  max-width: 880px;
  padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.legal-hero,
.policy {
  padding: clamp(28px, 5vw, 48px);
}

.legal-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.legal-hero .meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.policy h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  letter-spacing: -0.02em;
}

.policy-statement {
  margin: 0;
  padding: 22px 24px;
  border-left: 4px solid var(--brand-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.75;
  color: #fff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
}

.info-card h3 {
  margin: 6px 0 0;
  font-size: 1.1rem;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.info-card a {
  font-weight: 600;
  color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  /* Galata kulesi üstte görünsün, cam kart alta otursun */
  .hero {
    grid-template-columns: 1fr;
    align-items: end;
    padding-block: 32px 40px;
  }

  .hero-card {
    grid-column: 1;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 60px;
  }

  .nav {
    padding: 0 8px 0 10px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav .btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.875rem;
  }

  .store-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-btn {
    justify-content: center;
  }

  .feature-grid,
  .info-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px;
  }

  .safety-banner {
    padding: 22px;
  }

  .safety-banner .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
