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

:root {
  --bg:           #0c0805;
  --bg-card:      #161008;
  --bg-card-2:    #1e160a;
  --border:       #3a2a12;
  --gold:         #c9922a;
  --gold-light:   #e8b84b;
  --gold-dim:     #7a5518;
  --cream:        #f0ddb0;
  --cream-dim:    #a89060;
  --neon-green:   #30ff60;
  --neon-red:     #ff3535;
  --radius:       10px;
  --radius-sm:    6px;
}

html { font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding: 0 1rem 4rem;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  line-height: 1.2;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.page {
  max-width: 860px;
  margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.site-header .street-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  letter-spacing: -1px;
  color: var(--gold-light);
  text-shadow:
    0 0 20px rgba(232, 184, 75, 0.5),
    0 0 60px rgba(232, 184, 75, 0.2);
  line-height: 1;
}

.site-header .street-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 4vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 0.25rem;
}

.site-header .tagline {
  font-size: 0.85rem;
  color: var(--gold-dim);
  margin-top: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Open/Closed Badge ────────────────────────────────────────────────────── */
.status-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 2px solid;
}

.status-badge.open {
  color: var(--neon-green);
  border-color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green), 0 0 20px var(--neon-green);
  box-shadow:
    0 0 12px rgba(48, 255, 96, 0.25),
    inset 0 0 12px rgba(48, 255, 96, 0.08);
  background: rgba(48, 255, 96, 0.05);
}

.status-badge.closed {
  color: var(--neon-red);
  border-color: var(--neon-red);
  text-shadow: 0 0 8px var(--neon-red), 0 0 20px var(--neon-red);
  box-shadow:
    0 0 12px rgba(255, 53, 53, 0.25),
    inset 0 0 12px rgba(255, 53, 53, 0.08);
  background: rgba(255, 53, 53, 0.05);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.open  .status-dot { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.closed .status-dot { background: var(--neon-red);   box-shadow: 0 0 8px var(--neon-red); animation-play-state: paused; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Announcement ─────────────────────────────────────────────────────────── */
.announcement {
  background: linear-gradient(135deg, #1e1608, #2a1e08);
  border: 1px solid var(--gold-dim);
  border-left: 4px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  margin-bottom: 2.5rem;
  color: var(--cream);
}

.announcement .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.announcement p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Menu ─────────────────────────────────────────────────────────────────── */
.menu-section h2 {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.menu-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 12px rgba(201, 146, 42, 0.1);
}

.menu-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}

.menu-card ul {
  list-style: none;
}

.menu-card ul li {
  font-size: 0.925rem;
  color: var(--cream);
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-card ul li::before {
  content: '·';
  color: var(--gold-dim);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Admin ────────────────────────────────────────────────────────────────── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .admin-grid {
    grid-template-columns: 1fr 2fr;
  }
  .admin-grid .full-width {
    grid-column: 1 / -1;
  }
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.admin-card h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}

.current-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--cream-dim);
}

.current-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.current-status.open  .dot { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.current-status.closed .dot { background: var(--neon-red); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  text-transform: uppercase;
}

.btn-open {
  background: rgba(48, 255, 96, 0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
}
.btn-open:hover {
  background: rgba(48, 255, 96, 0.2);
  box-shadow: 0 0 12px rgba(48, 255, 96, 0.3);
}

.btn-close {
  background: rgba(255, 53, 53, 0.1);
  border-color: var(--neon-red);
  color: var(--neon-red);
}
.btn-close:hover {
  background: rgba(255, 53, 53, 0.2);
  box-shadow: 0 0 12px rgba(255, 53, 53, 0.3);
}

.btn-gold {
  background: rgba(201, 146, 42, 0.15);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn-gold:hover {
  background: rgba(201, 146, 42, 0.25);
  box-shadow: 0 0 12px rgba(201, 146, 42, 0.3);
}

.btn-full { width: 100%; }

/* ── Form Elements ────────────────────────────────────────────────────────── */
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.4rem;
}

textarea, input[type="text"], input[type="password"] {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 0.75rem 1rem;
  resize: vertical;
  transition: border-color 0.18s;
  -webkit-appearance: none;
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(201, 146, 42, 0.15);
}

textarea::placeholder, input::placeholder {
  color: var(--gold-dim);
  opacity: 0.7;
}

.field { margin-bottom: 1.1rem; }
.field:last-of-type { margin-bottom: 0; }

.hint {
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* ── Toast / Save indicator ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card-2);
  border: 1px solid var(--gold-dim);
  border-left: 4px solid var(--gold-light);
  color: var(--cream);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: slideIn 0.3s ease, fadeOut 0.4s ease 2.5s forwards;
  z-index: 100;
}

@keyframes slideIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(6px); }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .site-header { padding: 2rem 0.5rem 1.5rem; }
  .menu-grid   { grid-template-columns: 1fr; }
}
