/* ============================================================
   TULSA ROULETTE — style.css
   ============================================================ */

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

:root {
  --gold:       #C4622D;
  --gold-dim:   #9e4e24;
  --offwhite:   #f5f0e8;
  --card-bg:    #1a1a1a;
  --text-muted: #888;
  --radius:     12px;
}

/* ── BASE ── */
body {
  background: transparent;
  color: var(--offwhite);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 200px;
}

/* ── GATE OVERLAY ── */
.gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gate-overlay.open { display: flex; }

.gate-modal {
  background: #1a1a1a;
  border: 1.5px solid #2a2a2a;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 40px 32px 32px;
  text-align: center;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gate-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}

.gate-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--offwhite);
  margin-bottom: 8px;
}

.gate-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.gate-row {
  display: flex;
  gap: 10px;
}

.gate-input {
  width: 100%;
  background: #252525;
  border: 1.5px solid #333;
  border-radius: 8px;
  color: var(--offwhite);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 10px;
  display: block;
}

.gate-input:focus { border-color: var(--gold); }
.gate-input::placeholder { color: #555; }

.gate-error {
  color: #e07070;
  font-size: 0.8rem;
  margin-bottom: 8px;
  min-height: 18px;
  text-align: left;
}

.gate-submit {
  width: 100%;
  background: var(--gold);
  color: #0d0d0d;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.gate-submit:hover  { background: #a8501f; transform: translateY(-1px); }
.gate-submit:active { transform: translateY(0); }
.gate-submit:disabled { background: #555; color: #888; cursor: not-allowed; transform: none; }

.gate-fine {
  font-size: 0.72rem;
  color: #444;
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* ── FILTERS ROW ── */
.filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 8px;
}

/* ── CATEGORY TABS ── */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover  { border-color: var(--gold-dim); color: var(--gold-dim); }
.tab.active { border-color: var(--gold); color: var(--gold); background: rgba(196,98,45,0.08); }

/* ── DROPDOWNS ── */
.dropdowns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-select {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--offwhite);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  padding: 8px 32px 8px 14px;
  border-radius: 99px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C4622D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s;
}

.filter-select:hover,
.filter-select:focus  { border-color: var(--gold-dim); }
.filter-select option { background: #1a1a1a; color: var(--offwhite); }

/* ── FEATURE CHECKBOXES ── */
.features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.2s;
  user-select: none;
}

.feature-label:hover {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
}

.feature-label input[type="checkbox"] {
  display: none;
}

.feature-label:has(input:checked) {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196,98,45,0.12);
}

/* ── WHEEL SECTION ── */
.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 28px;
  position: relative;
}

.wheel-container {
  position: relative;
  width: min(440px, 88vw);
  height: min(440px, 88vw);
}

.pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--gold);
  z-index: 10;
  filter: drop-shadow(0 2px 6px rgba(196,98,45,0.6));
}

canvas#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.05),
    0 0 0 7px var(--gold-dim),
    0 0 40px rgba(196,98,45,0.12);
}

.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(0,0,0,0.7);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  z-index: 5;
}

/* ── SPIN BUTTON ── */
.spin-btn {
  margin-top: 32px;
  background: var(--gold);
  color: #0d0d0d;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  border: none;
  padding: 14px 52px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 24px rgba(196,98,45,0.3);
}

.spin-btn:hover  { background: #a8501f; transform: translateY(-1px); }
.spin-btn:active { transform: translateY(0); }
.spin-btn:disabled {
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ── STATUS MESSAGES ── */
.loading-msg {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
  letter-spacing: 0.06em;
}

.error-msg {
  color: #e07070;
  font-size: 0.82rem;
  margin-top: 14px;
  text-align: center;
  max-width: 320px;
}

/* ── MODAL OVERLAY ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

/* ── MODAL CARD ── */
.modal {
  background: var(--card-bg);
  border: 1.5px solid #2a2a2a;
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px 28px;
  position: relative;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--offwhite); }

.modal-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.modal-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.modal-logo {
  width: 64px; height: 64px;
  border-radius: 8px;
  object-fit: contain;
  background: #222;
  margin-bottom: 14px;
}

.modal-logo-placeholder {
  width: 64px; height: 64px;
  border-radius: 8px;
  background: #252525;
  border: 1px solid #333;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.modal-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--offwhite);
  line-height: 1.1;
  margin-bottom: 6px;
}

/* ── GOOGLE RATING ── */
.modal-rating {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  min-height: 18px;
}

.modal-rating .stars {
  color: #f4c430;
  margin-right: 4px;
}

.modal-rating .rating-count {
  font-size: 0.78rem;
  color: #666;
}

.modal-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 14px;
}

/* ── FEATURE TAGS IN MODAL ── */
.modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.feature-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(196,98,45,0.4);
  color: var(--gold);
  background: rgba(196,98,45,0.08);
}

/* ── MODAL ACTIONS ── */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-website {
  display: block; text-align: center;
  background: var(--gold); color: #0d0d0d;
  font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.06em;
  padding: 12px; border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-website:hover { background: #a8501f; }

.btn-opentable {
  display: block; text-align: center;
  background: #DA3743; color: #fff;
  font-weight: 600; font-size: 0.88rem;
  padding: 12px; border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-opentable:hover { background: #c02f3a; }

.btn-doordash {
  display: block; text-align: center;
  background: #FF3008; color: #fff;
  font-weight: 600; font-size: 0.88rem;
  padding: 12px; border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-doordash:hover { background: #d42600; }

.btn-phone {
  display: block; text-align: center;
  background: transparent; color: var(--offwhite);
  font-weight: 500; font-size: 0.88rem;
  padding: 11px; border-radius: 8px;
  border: 1.5px solid #333;
  text-decoration: none;
  transition: border-color 0.15s;
}
.btn-phone:hover { border-color: var(--gold-dim); }

.btn-respin {
  background: none; border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer; text-align: center;
  margin-top: 8px;
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.btn-respin:hover { color: var(--gold); }