/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --primary: #c8392b;
  --primary-dark: #a52d21;
  --accent: #e8a020;
  --dark: #0c0b09;
  --card-bg: #161410;
  --card-bg2: #1e1b17;
  --border: #2a2520;
  --text: #f0ede8;
  --muted: #8a8078;
  --success: #27ae60;
  --error: #e74c3c;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,11,9,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 900; letter-spacing: -.3px; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 18px;
  border-radius: 99px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary); color: #fff; }

/* ── Accent ── */
.accent { color: var(--primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 99px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer; border: none;
  transition: all .2s;
  letter-spacing: .2px;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,57,43,.35); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 20px; font-size: .82rem; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
  filter: saturate(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,11,9,.97) 40%, rgba(12,11,9,.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  padding: 80px 28px;
  width: 100%;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,57,43,.12);
  border: 1px solid rgba(200,57,43,.3);
  color: #e07060;
  padding: 7px 18px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.07;
  margin-bottom: 22px;
  max-width: 680px;
}
.hero-sub { color: #a09890; font-size: 1.05rem; max-width: 480px; margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 2.2rem; font-weight: 900; color: var(--text); font-family: 'Playfair Display', serif; }
.stat label { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }

/* ── Section ── */
.section { padding: 100px 0; }
.section-alt { background: var(--card-bg); }
.container { max-width: 1200px; margin: auto; padding: 0 28px; }
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 520px; line-height: 1.7; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 56px; }
.step {
  background: var(--card-bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--primary); transform: translateY(-4px); }
.step-num { font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 900; color: rgba(255,255,255,.04); position: absolute; top: 8px; right: 16px; line-height: 1; }
.step-icon { font-size: 2rem; margin-bottom: 20px; }
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .88rem; line-height: 1.7; }

/* ── Gallery Strip ── */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 18px;
}
.gallery-item .overlay span { font-size: .82rem; font-weight: 700; color: #fff; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 40px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { color: var(--muted); font-size: .82rem; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 900; }

/* ── Page Header ── */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 72px 28px;
  text-align: center;
}
.page-header-bg { position: absolute; inset: 0; }
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: saturate(.8); }
.page-header-bg::after { content: ''; position: absolute; inset: 0; background: var(--dark); opacity: .6; }
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; margin-bottom: 10px; }
.page-header p { color: var(--muted); font-size: .95rem; }

/* ── Vote Page Layout ── */
.vote-layout {
  max-width: 1200px;
  margin: 52px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── Auth Card ── */
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: sticky;
  top: 88px;
}
.auth-card h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: .85rem; margin-bottom: 28px; }

.twitter-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(29,161,242,.08);
  border: 1px solid rgba(29,161,242,.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 26px;
  font-size: .82rem; color: #4db0f0; font-weight: 600;
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .6px; }
.form-group input, .form-group select {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, background .2s;
  font-family: 'Inter', sans-serif;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); background: rgba(200,57,43,.04); }
.form-group input::placeholder { color: #4a4540; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; font-size: .95rem; }
.msg { font-size: .85rem; margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); display: none; line-height: 1.5; }
.msg.success { background: rgba(39,174,96,.1); border: 1px solid rgba(187, 38, 4, 0.25); color: #811b05; display: block; }
.msg.error { background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.25); color: #f0736a; display: block; }

/* ── Dishes Panel ── */
.dishes-panel h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.dishes-panel .sub { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.dishes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

.dish-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .22s;
  user-select: none;
}
.dish-card:hover { border-color: rgba(200,57,43,.5); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.dish-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,57,43,.2), 0 12px 32px rgba(0,0,0,.4); }

.dish-img {
  position: relative;
  height: 148px;
  overflow: hidden;
}
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.dish-card:hover .dish-img img { transform: scale(1.06); }
.dish-check {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  display: none;
  align-items: center; justify-content: center;
  font-size: .75rem; color: #fff;
  box-shadow: 0 2px 8px rgba(200,57,43,.5);
}
.dish-card.selected .dish-check { display: flex; }

.dish-body { padding: 16px; }
.dish-body h4 { font-size: .92rem; font-weight: 800; margin-bottom: 4px; }
.dish-body .chef { font-size: .75rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.dish-body p { font-size: .75rem; color: var(--muted); line-height: 1.55; }

/* ── Admin Page ── */
.admin-layout { max-width: 1280px; margin: 40px auto; padding: 0 28px; }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.admin-header h1 { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 900; }
.admin-badge { background: rgba(200,57,43,.15); border: 1px solid rgba(200,57,43,.3); color: #e07060; padding: 4px 12px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .5px; }
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 36px; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.stat-card .num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 900; color: var(--primary); }
.stat-card .lbl { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-top: 2px; }

/* ── Table ── */
.table-wrap { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.table-toolbar { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.table-toolbar h2 { font-size: .95rem; font-weight: 800; }
.search-box { background: rgba(255,255,255,.03); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 9px 14px; color: var(--text); font-size: .85rem; outline: none; width: 230px; font-family: 'Inter', sans-serif; }
.search-box:focus { border-color: var(--primary); }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 13px 18px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); text-align: left; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 13px 18px; font-size: .85rem; border-bottom: 1px solid rgba(42,37,32,.7); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.015); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .7rem; font-weight: 700; }
.tag-voted { background: rgba(39,174,96,.12); color: #52c97c; border: 1px solid rgba(39,174,96,.25); }
.pw-cell { font-family: monospace; color: var(--accent); font-size: .82rem; letter-spacing: .3px; }
.empty-state { padding: 72px; text-align: center; color: var(--muted); }

/* ── Admin Login ── */
.admin-gate { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.gate-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 52px 44px; width: 100%; max-width: 420px; }
.gate-card h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 900; margin-bottom: 8px; }
.gate-card p { color: var(--muted); font-size: .88rem; margin-bottom: 36px; line-height: 1.6; }
.lock-icon { font-size: 2.6rem; margin-bottom: 22px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .vote-layout {
    grid-template-columns: 1fr;
  }
  .dishes-panel {
    order: -1;
  }
  .auth-card {
    position: static;
  }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero-stats { gap: 28px; }
  .gallery-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dishes-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dish-img { height: 120px; }
  .form-row { grid-template-columns: 1fr; }
  .gate-card { padding: 36px 24px; }
  .nav-links a { padding: 7px 13px; font-size: .82rem; }
}
