/* =========================================================
   TITUS LOUNGE — Tasarım Sistemi
   Palet: fildişi zemin + mürekkep metin, yeşil (bilardo çuhası)
   birincil vurgu, pirinç/altın ikincil vurgu, dört klasik okey
   rengi (siyah/mavi/kırmızı/altın) özellik rozetlerinde kullanılır.
   Tipografi: Space Grotesk (başlık) + Inter (gövde) + JetBrains
   Mono (fiyatlar, rozet numaraları — skor kağıdı hissi).
   ========================================================= */

:root {
  --bg: #FBFAF7;
  --surface: #F1EEE6;
  --surface-2: #E9E4D8;
  --ink: #16181B;
  --ink-soft: #5B5F63;
  --line: #E1DDD1;

  --green: #0E4F3A;
  --green-deep: #0A3B2B;
  --gold: #B8894F;

  --tile-black: #1C1C1C;
  --tile-blue: #1D4E89;
  --tile-red: #B5322A;
  --tile-gold: #C99A2E;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;

  --shadow-soft: 0 8px 30px rgba(22, 24, 27, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: #201505; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.lang-switch a {
  padding: 6px 11px;
  color: var(--ink-soft);
}
.lang-switch a.active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--green); }
.hero-desc {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note::before { content: "📍"; }

/* Signature element: okey tile rack, CSS-only */
.tile-rack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 26px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
}
.rack-tile {
  aspect-ratio: 3 / 4;
  background: #FFFDF8;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.25s ease;
}
.rack-tile:hover { transform: rotate(0deg) translateY(-4px); }
.rack-tile.black { color: var(--tile-black); }
.rack-tile.blue { color: var(--tile-blue); }
.rack-tile.red { color: var(--tile-red); }
.rack-tile.gold { color: var(--tile-gold); }
.rack-tile:nth-child(1) { --r: -3deg; }
.rack-tile:nth-child(2) { --r: 2deg; margin-top: 14px; }
.rack-tile:nth-child(3) { --r: -2deg; margin-top: -6px; }
.rack-tile:nth-child(4) { --r: 3deg; margin-top: 10px; }
.rack-tile:nth-child(5) { --r: 2deg; }
.rack-tile:nth-child(6) { --r: -3deg; margin-top: 8px; }
.rack-tile:nth-child(7) { --r: 1deg; margin-top: -8px; }
.rack-tile:nth-child(8) { --r: -1deg; margin-top: 12px; }
.rack-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* ---------- Section shell ---------- */
section { padding: 78px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 16px; margin-top: 12px; }
.on-surface { background: var(--surface); }

/* ---------- Feature tiles (4 okey colors) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 4px solid var(--c, var(--green));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.feature-card:nth-child(1) { --c: var(--tile-black); }
.feature-card:nth-child(2) { --c: var(--tile-blue); }
.feature-card:nth-child(3) { --c: var(--tile-red); }
.feature-card:nth-child(4) { --c: var(--tile-gold); }
.feature-badge {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c, var(--green));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- About / stats ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid p { color: var(--ink-soft); margin: 0 0 14px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.stat { border-left: 2px solid var(--gold); padding-left: 14px; }
.stat-num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--green); display: block; }
.stat-label { font-size: 12.5px; color: var(--ink-soft); }
.photo-frame {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: center;
  padding: 20px;
}
.photo-frame span.big { font-size: 28px; }

/* ---------- Menu preview / full menu ---------- */
.menu-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.menu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.menu-card h3 { font-size: 17px; margin-bottom: 12px; }
.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 14.5px;
}
.menu-row:last-child { border-bottom: none; }
.menu-row .price { font-family: var(--font-mono); color: var(--green); white-space: nowrap; }
.menu-row .item-name { color: var(--ink); }
.menu-row .item-desc { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

.menu-full { display: flex; flex-direction: column; gap: 44px; }
.menu-price-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 20px;
}

/* ---------- Games page ---------- */
.game-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.game-block:last-of-type { border-bottom: none; }
.game-block:nth-of-type(even) { direction: rtl; }
.game-block:nth-of-type(even) > * { direction: ltr; }
.game-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}
.game-block h2 { font-size: 28px; margin-bottom: 14px; }
.game-block p { color: var(--ink-soft); }

.reserve-strip {
  margin-top: 60px;
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.reserve-strip h3 { font-size: 24px; margin-bottom: 8px; }
.reserve-strip p { color: rgba(255,255,255,0.8); margin: 0; }
.reserve-strip .btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid .photo-frame { aspect-ratio: 4/3; }
.gallery-note {
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Location / contact ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.location-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.location-card .row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.location-card .row:last-child { border-bottom: none; }
.location-card .row .icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  color: var(--green);
  flex-shrink: 0;
}
.location-card .row .label { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 3px; }
.location-card .row .value { font-weight: 600; font-size: 15px; }
.map-frame {
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-mono); }
.footer-brand { color: #fff; font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
.footer-grid p, .footer-grid a { font-size: 14px; line-height: 1.7; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .location-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-preview-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .game-block { grid-template-columns: 1fr; }
  .game-block:nth-of-type(even) { direction: ltr; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; }
  body.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 18px 24px 24px;
    gap: 4px;
  }
  body.nav-open .main-nav a { width: 100%; padding: 10px 0; }
  .feature-grid, .menu-preview-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .reserve-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .feature-grid, .menu-preview-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 60px; }
  section { padding: 56px 0; }
}

/* ---------- Alcohol badge / responsible-service note ---------- */
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tile-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.alcohol-note {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border-left: 3px solid var(--tile-red);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 0;
}

/* ---------- Gallery thumbs as buttons (for lightbox) ---------- */
.gallery-thumb {
  all: unset;
  cursor: pointer;
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-thumb:hover img { transform: scale(1.04); }
.gallery-thumb:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.gallery-thumb .thumb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 12.5px;
  padding: 20px 12px 10px;
}
.gallery-thumb.photo-frame { cursor: pointer; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 9, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-stage {
  max-width: min(90vw, 1000px);
  max-height: 82vh;
  text-align: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 10px;
  margin: 0 auto;
}
.lightbox-caption {
  color: #fff;
  font-size: 14px;
  margin-top: 14px;
}
.lightbox-counter {
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin: 0 18px;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 24px; margin: 0 8px; }
  .lightbox-close { top: 12px; right: 14px; font-size: 28px; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 150;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
@media (max-width: 640px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 300;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}
