/* ==========================================================================
   QR Menü — giriş sayfası (index.html)
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Logodaki renkler: krem zemin, terracotta çatı, zeytin yaprağı, koyu kahve yazı */
  --bg: #F3E6DC;
  --surface: #FCF7F3;
  --surface-2: #EAD6C8;
  --text: #3E1D0C;
  --muted: #7A5B4B;
  --accent: #AD4A27;
  --olive: #6E7F12;
  --line: rgba(62, 29, 12, .14);
  --accent-line: rgba(173, 74, 39, .32);
  --accent-soft: rgba(173, 74, 39, .10);
  --olive-line: rgba(110, 127, 18, .45);
  --olive-soft: rgba(110, 127, 18, .10);

  --font-head: "Bodoni 72", "Bodoni Moda", Didot, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Figtree", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;

  --logo: clamp(118px, 34vw, 172px);
  --gutter: 20px;
  --radius: 18px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 14%, rgba(173, 74, 39, .08), transparent 384px),
    radial-gradient(circle at 84% 82%, rgba(110, 127, 18, .10), transparent 480px),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.icon { width: 24px; height: 24px; flex: none; display: block; }

.status { padding: 48px var(--gutter); text-align: center; color: var(--muted); }

/* ---------------- Çerçeve ---------------- */

.giris {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  background: linear-gradient(180deg, rgba(252, 247, 243, .55), rgba(243, 230, 220, .9));
  overflow: hidden;
}
@media (min-width: 600px) {
  .giris {
    min-height: 0;
    margin: 32px auto;
    border: 1px solid var(--accent-line);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(62, 29, 12, .14);
  }
}

/* ---------------- Üst görsel / video ---------------- */

.hero {
  position: relative;
  aspect-ratio: 2.45 / 1;
  min-height: 150px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--accent);
  overflow: hidden;
}
/* Video/fotoğraf üstünde hafif karartma (boş zeminde yok) */
.hero:not(.is-empty)::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(24, 14, 9, .08) 45%, rgba(24, 14, 9, .72)),
    linear-gradient(90deg, rgba(24, 14, 9, .16), transparent 30%, transparent 70%, rgba(24, 14, 9, .16));
}
/* Video/fotoğraf yokken: logodaki çatı çizgisi ve renklerle süslü zemin */
.hero.is-empty {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160'%3E%3Cpath d='M40 150 200 40l160 110' fill='none' stroke='%23AD4A27' stroke-opacity='.5' stroke-width='7'/%3E%3C/svg%3E") center 30% / min(78%, 440px) auto no-repeat,
    radial-gradient(70% 90% at 50% 110%, rgba(173, 74, 39, .16), transparent 65%),
    radial-gradient(45% 70% at 12% 0%, rgba(110, 127, 18, .16), transparent 70%),
    radial-gradient(45% 70% at 88% 0%, rgba(110, 127, 18, .10), transparent 70%),
    linear-gradient(180deg, #F1E1D5, #E6D0C0);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- Logo ve başlık ---------------- */

.body { padding: 0 var(--gutter) 24px; }

.brand { text-align: center; }
.logo {
  position: relative;
  z-index: 1;
  width: var(--logo);
  height: var(--logo);
  margin: calc(var(--logo) / -2) auto 0;
  border-radius: 50%;
  background: #F3E5DB;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 12px 30px rgba(62, 29, 12, .22);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo span {
  padding: 12px;
  font-family: var(--font-head);
  font-size: calc(var(--logo) * .16);
  line-height: 1.1;
  color: #3D1F12;
}

.name {
  margin: 22px 0 0;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.1;
  /* Logodaki gibi aralıklı büyük harf */
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-inline-end: -.16em;
  color: var(--text);
}

.welcome {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--muted);
}
.welcome::before,
.welcome::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--olive-line);
}

/* ---------------- Ana butonlar ---------------- */

.actions {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.action {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(62, 29, 12, .05);
  transition: background-color .2s, border-color .2s, transform .15s;
}
.action:hover { background: #FFFFFF; border-color: var(--accent); }
.action:active { transform: scale(.985); }
.action-icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}
.action-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
}

/* ---------------- Dil seçimi ---------------- */

.lang { margin-top: 26px; text-align: center; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 164px;
  height: 58px;
  padding: 0 18px;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 17px;
  font-weight: 700;
}
.lang-btn .icon { color: var(--accent); width: 22px; height: 22px; }
.lang-btn .icon:last-child { width: 18px; height: 18px; }
.lang-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------- Sosyal ---------------- */

.socials {
  margin-top: 30px;
  display: flex;
  justify-content: space-around;
  gap: 8px;
}
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 64px;
  font-size: 13px;
  color: var(--muted);
}
.social-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--olive-line);
  border-radius: 50%;
  color: var(--olive);
  transition: background-color .2s, border-color .2s;
}
.social:hover .social-icon { background: var(--olive-soft); border-color: var(--olive); }

/* ---------------- Ana sayfa ve alt bilgi ---------------- */

.home {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 66px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-size: 18px;
  font-weight: 700;
}
.home .icon { color: #E9A27F; }
.home:hover { background: #2C1408; }

.foot {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}
.foot::before,
.foot::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------------- Alttan açılan paneller ---------------- */

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 86dvh;
  margin: auto auto 0;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  border: 1px solid var(--accent-line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}
.sheet::backdrop { background: rgba(62, 29, 12, .45); }
.sheet[open] { animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sheet-head h2 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 24px; }
.sheet-x {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}
.sheet-x:hover { background: var(--accent-soft); color: var(--text); }

.lang-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lang-item {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 17px;
  text-align: start;
}
.lang-item:hover { border-color: var(--accent-line); }
.lang-item[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.lang-item .icon { color: var(--accent); width: 20px; height: 20px; }

.wifi { margin: 0 0 18px; display: grid; gap: 10px; }
.wifi div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.wifi dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.wifi dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; word-break: break-all; }

.btn-accent,
.btn-ghost {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent .icon { width: 20px; height: 20px; }
.btn-ghost { margin-top: 10px; border: 1px solid var(--line); }

/* ---------------- Dar ekranlar ve hareket ---------------- */

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .action { gap: 14px; min-height: 66px; }
  .action-icon { width: 44px; height: 44px; }
  .social-icon { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
