/* ============================================================
   ANKA OTEL — Yakında sayfası
   Yön: koyu lacivert gece + altın vurgu, zarif serif, sade çizgi
   Ölçek: 16px taban · 1.333 tip ölçeği · 4/8 boşluk tablosu
   ============================================================ */

:root {
  --bg-0: #060b18;
  --bg-1: #0d1830;
  --ink: #ece7da;
  --muted: #a9b2c6;
  --muted-dim: rgba(169, 178, 198, 0.75);
  --gold: #c9a35c;
  --gold-hi: #e6c987;
  --gold-lo: #8a6d35;
  --line: rgba(201, 163, 92, 0.30);
  --track: rgba(236, 231, 218, 0.08);
  --display: "Montserrat", "Jost", system-ui, sans-serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  background:
    radial-gradient(120% 85% at 50% -10%, var(--bg-1) 0%, var(--bg-0) 58%),
    var(--bg-0);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Gece gökyüzü ---------- */

.sky {
  position: fixed;
  inset: -24px;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--mx) * -7px), calc(var(--my) * -5px), 0);
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: var(--o, 0.5);
  animation: twinkle var(--tw, 4s) ease-in-out var(--td, 0s) infinite;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(95% 75% at 50% 42%, transparent 52%, rgba(3, 6, 14, 0.62) 100%);
}

/* ---------- Sahne düzeni ---------- */

.scene {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 24px 20px;
}

/* Açılışta yükselen öğeler */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* ---------- Marka ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 4px;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  padding-left: 0.24em; /* takibi dengele */
  color: var(--ink);
}

.brand-line {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.brand-line:last-child {
  transform: scaleX(-1);
}

/* ---------- Logo ---------- */

.logo-wrap {
  margin: 4px 0 0;
}

.brand-logo {
  display: block;
  width: min(150px, 36vw);
  height: auto;
  /* PNG'de çizimin dışında kalan şeffaf payı yerleşimden düş:
     üst 8px / alt 1px (ölçüldü) → dikey aralık iki yana eşit kalsın */
  margin: -8px 0 -1px;
  /* çizim merkezi tuval merkezinden 3px sağda (x=16-140, ölçüldü) → optik orta */
  transform: translateX(-3px);
  filter: drop-shadow(0 0 14px rgba(201, 163, 92, 0.22));
}

/* ---------- Başlık: harf harf açılış ---------- */

.title {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.15rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.title-row { display: block; }
.title-row.gold { color: var(--gold); }

.title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(2deg);
  clip-path: inset(0 -12% 102% -12%);
  animation: charin 0.7s var(--ease) forwards;
  animation-delay: var(--cd, 1s);
}

/* ---------- Alt metin ---------- */

.sub {
  max-width: 46ch;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- İletişim hatları ---------- */

.contact {
  width: min(660px, 100%);
  margin-top: 28px;
}

.contact-title {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.line-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(236, 231, 218, 0.055), rgba(236, 231, 218, 0.015));
}

/* Mobil hat birincil: etiketi altın (kenarlık her iki kartta eşit kalır) */
.line-card:first-child .line-kind {
  color: var(--gold);
}

.line-kind {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.line-num {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.8vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.line-num:hover { color: var(--gold-hi); }

/* Kopyalama engellenirse tıklayınca numaranın tamamı seçilsin */
.line-num { -webkit-user-select: all; user-select: all; }
.line-num:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 4px; }

.line-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 18px;
}

.line-link,
.copy-btn {
  font: 400 0.9rem/1.4 var(--sans);
  letter-spacing: 0.03em;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.line-link { color: #cfd5e2; }

.line-link:hover,
.copy-btn:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }

.line-link:focus-visible,
.copy-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.copy-btn:active { transform: translateY(1px); }
.copy-btn.done { color: var(--gold-hi); }

.copy-status {
  margin: 14px 0 0;
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Sol kenar: sabit iletişim çubuğu ---------- */

.rail {
  position: fixed;
  left: clamp(14px, 2.4vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Çubuğu yukarı ve aşağı ince çizgiyle kapatır */
.rail::before,
.rail::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--line));
}

.rail::after { transform: scaleY(-1); }

.rail-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(6, 11, 24, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.rail-link svg { width: 19px; height: 19px; display: block; }

.rail-link:hover,
.rail-link:focus-visible {
  color: #0a1020;
  background: var(--gold);
  border-color: var(--gold);
  transform: translateX(3px);
}

.rail-link:active { transform: translateX(3px) scale(0.96); }

.rail-link:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- Alt bilgi ---------- */

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 18px;
  border-top: 1px solid rgba(201, 163, 92, 0.14);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.socials a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 2px 0;
  transition: color 0.2s ease;
}

.socials a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}

.socials a:hover { color: var(--ink); }
.socials a:hover::after { right: 0; }
.socials a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-dim);
}

/* ---------- Anahtar kareler ---------- */

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes charin {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    clip-path: inset(-12% -12% -12% -12%);
  }
}

@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.5); }
  50% { opacity: calc(var(--o, 0.5) * 0.25); }
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

/* 900px yerine 820px: bar yatay olurken içerik kolonuna daha çok yer kalsın;
   eşiğin altında turun ölçümü yatay taşma göstermedi (376/768 px). */
@media (max-width: 820px) {
  /* Sol dikey çubuk alta yatay bar olur */
  .rail {
    left: 50%;
    top: auto;
    bottom: 14px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
  }
  .rail::before,
  .rail::after { display: none; }
  .rail-link { width: 48px; height: 48px; }
  .rail-link:hover,
  .rail-link:focus-visible { transform: translateY(-3px); }
  .rail-link:active { transform: translateY(-3px) scale(0.96); }
  /* Bar içeriğin altında kalsın: dolgu gövdeye değil altbilgiye */
  .foot { padding-bottom: 86px; }
}

@media (max-width: 768px) {
  .scene { padding: 26px 20px 20px; }
  .brand-line { width: 40px; }
  .brand-logo { width: min(168px, 46vw); }
  .sub { font-size: 1rem; }
  .lines { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .scene { padding: 22px 18px 16px; }
  .title { letter-spacing: 0.02em; }
  .lines { grid-template-columns: 1fr; gap: 12px; }
  .line-card { padding: 20px 16px; }
  /* 86px: alttaki yatay iletişim barının (48px + 14px boşluk) arkasında kalmasın */
  .foot { padding: 24px 16px 86px; }
}

@media (min-width: 1200px) {
  .scene { padding-top: 64px; }
  .sub { font-size: 1.12rem; max-width: 44ch; }
  .contact { margin-top: 34px; }
}

/* ---------- Hareket azaltma ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .title-char,
  .star {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .sky { transform: none; }
  .line-num, .line-link, .copy-btn, .rail-link { transition: none; }
}
