/* ============================================================
   Sosua Poker — Coral Reef Casino Poker Room
   Theme: deep felt green + casino gold, cinematic night hero
   ============================================================ */

:root {
  --felt: #0a2a1f;
  --felt-2: #0b3d2e;
  --ink: #061713;
  --panel: rgba(9, 34, 26, 0.82);
  --panel-solid: #0d3325;
  --gold: #e7c35a;
  --gold-2: #f0d488;
  --gold-deep: #b8912f;
  --cream: #f4ecd8;
  --text: #eef3ee;
  --muted: #a9c2b3;
  --line: rgba(231, 195, 90, 0.22);
  --red: #c0392b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Fixed cinematic background ── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("/assets/SosuaPoker_Background.png") center/cover no-repeat;
  filter: saturate(1.05) brightness(1.2);
}
.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 19, 0.72) 0%, rgba(6, 23, 19, 0.86) 45%, rgba(6, 23, 19, 0.96) 100%);
}

h1, h2, h3, .festival-gtd { font-family: "Cinzel", Georgia, serif; letter-spacing: 0.01em; }

/* ── Language selector ── */
.lang-float {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  gap: 6px;
  background: rgba(6, 23, 19, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  backdrop-filter: blur(8px);
}
.lang-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  transition: 0.2s;
}
.lang-link:hover { color: var(--cream); }
.lang-link.active { color: var(--ink); background: var(--gold); }

/* ── Shell ── */
.site-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(184, 145, 47, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(184, 145, 47, 0.5); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-wide { width: 100%; justify-content: center; margin-top: 6px; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 54px 0 34px;
}
.brand-logo {
  width: min(340px, 76vw);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 900;
  color: var(--cream);
  margin: 12px 0 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.hero-copy {
  max-width: 640px;
  margin: 0 auto 22px;
  color: var(--text);
  font-size: 1.05rem;
}
.hero-copy strong { color: var(--gold-2); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* ── Panels ── */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px clamp(18px, 4vw, 40px);
  margin-top: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.panel h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--cream);
  margin-bottom: 16px;
}
.contact-copy { color: var(--muted); max-width: 640px; margin-bottom: 18px; }

/* ── Festival ── */
.festival {
  background: linear-gradient(135deg, rgba(184, 145, 47, 0.16), var(--panel) 60%);
  border-color: rgba(231, 195, 90, 0.4);
}
.festival-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}
.festival-dates {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-2);
  letter-spacing: 0.04em;
}
.festival-gtd {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--cream);
  margin: 4px 0;
}
.festival-gtd span { color: var(--gold); }
.festival-sub { color: var(--muted); margin-bottom: 18px; }
.festival-facts {
  list-style: none;
  display: grid;
  gap: 10px;
}
.festival-facts li {
  background: rgba(6, 23, 19, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}
.festival-facts strong { color: var(--gold-2); display: block; font-size: 0.98rem; }

/* ── Game cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.game-card {
  background: rgba(6, 23, 19, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.15s, border-color 0.2s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.game-card h3 { color: var(--gold-2); font-size: 1.15rem; margin-bottom: 4px; }
.game-card.highlight { background: linear-gradient(135deg, rgba(192, 57, 43, 0.18), rgba(6, 23, 19, 0.55)); }
.game-when {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.game-card p:last-child { color: var(--muted); font-size: 0.92rem; }
.game-card strong { color: var(--cream); }

/* ── Poster gallery ── */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.poster {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.18s, border-color 0.2s;
}
.poster:hover { transform: translateY(-4px); border-color: var(--gold); }
.poster img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ── Schedule table ── */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.sched { width: 100%; border-collapse: collapse; font-size: 0.9rem; table-layout: fixed; }
.sched thead th {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--ink);
  text-align: left;
  padding: 10px 14px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sched th, .sched td { overflow-wrap: anywhere; }
.sched td { padding: 9px 14px; border-top: 1px solid rgba(231, 195, 90, 0.12); color: var(--text); vertical-align: top; }
/* columns: Time (fixed) | Event (flexible, wraps) | Buy-in (fixed, right) */
.sched th:nth-child(1), .sched td:nth-child(1) { width: 3.6rem; white-space: nowrap; }
.sched th:nth-child(3), .sched td:nth-child(3) { width: 4.6rem; text-align: right; }
.sched tbody tr:hover td { background: rgba(231, 195, 90, 0.06); }
.sched td:nth-child(3) { color: var(--gold-2); font-weight: 600; white-space: nowrap; }
.sched tr.day td {
  background: rgba(6, 23, 19, 0.7);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

/* ── Location ── */
.location-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; align-items: center; }
.addr { font-size: 1.05rem; line-height: 1.9; margin-bottom: 18px; }
.addr strong { color: var(--gold-2); }
.map-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; }
.contact-card {
  background: rgba(6, 23, 19, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.contact-card h3 { color: var(--gold-2); margin-bottom: 10px; }
.contact-card > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.95rem;
}
.contact-item .ci { font-size: 1.1rem; }
.contact-item a { color: var(--cream); text-decoration: none; }
.contact-item a:hover { color: var(--gold-2); }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(6, 23, 19, 0.6);
  color: var(--text);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 108px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { font-size: 0.9rem; color: var(--gold-2); min-height: 1.2em; text-align: center; }

/* ── Footer ── */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.foot-right { display: flex; align-items: center; gap: 8px; }
.dev-logo { height: 26px; width: auto; opacity: 0.85; transition: opacity 0.2s; }
.dev-link:hover .dev-logo { opacity: 1; }

/* ── WhatsApp QR ── */
.qr-wrap {
  display: block;
  text-align: center;
  text-decoration: none;
  margin: 4px 0 14px;
}
.qr-wrap img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 3px solid var(--gold);
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
}
.qr-wrap:hover img { transform: scale(1.03); }
.qr-caption {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .festival-grid,
  .location-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
  .panel { padding: 26px 18px; }
  .lang-float { top: 10px; right: 10px; }
  .sched { font-size: 0.82rem; }
  .sched td, .sched th { padding: 8px; }
  .sched th:nth-child(1), .sched td:nth-child(1) { width: 3.2rem; }
  .sched th:nth-child(3), .sched td:nth-child(3) { width: 3.8rem; }
}
