/* ============================================
   CREATIVE RESTAURANT — MASTER THEME CSS
   Fully separated, controllable via variables
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&family=Noto+Serif+Display:wght@400;700&display=swap');

:root {
  /* Colors */
  --gold: #D4AF37;
  --gold-light: #F2D87A;
  --gold-dark: #8A6E1A;
  --dark: #0B0C10;
  --surface: rgba(255,255,255,0.05);
  --surface-strong: rgba(255,255,255,0.08);
  --text: #F0ECE0;
  --text-dim: #A8A292;
  --accent: #E8B84D;
  --danger: #D9534F;
  --success: #5CB85C;
  /* Fonts — change here to control globally */
  --font-main: 'Vazirmatn', 'Tahoma', system-ui, sans-serif;
  --font-display: 'Noto Serif Display', 'Georgia', serif;
  /* Spacing */
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main); background: var(--dark);
  color: var(--text); direction: rtl; min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212,175,55,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212,175,55,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0B0C10 0%, #11131a 100%);
}

/* Glass utilities */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
}
.glass-strong { background: var(--surface-strong); border-color: rgba(255,255,255,0.12); }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.02em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); color: var(--gold-light); }
h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: .4rem; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem; border-radius: 50px; text-decoration: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a1205; font-weight: 800; font-family: inherit;
  box-shadow: 0 4px 20px rgba(212,175,55,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform .2s, box-shadow .2s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,175,55,0.55); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.4rem; border-radius: 50px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04);
  color: var(--text); font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(212,175,55,0.55); }

/* Animations */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes glow { 0%,100%{filter:drop-shadow(0 0 6px rgba(212,175,55,0.5))} 50%{filter:drop-shadow(0 0 16px rgba(212,175,55,0.9))} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-glow { animation: glow 3s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp .7s ease-out both; }

/* Header */
.site-header {
  position: sticky; top:0; z-index:100;
  backdrop-filter: blur(16px); background: rgba(11,12,16,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner { max-width: 1200px; margin: 0 auto; padding: .9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); letter-spacing: .05em; text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.nav-links { display: flex; gap: 1rem; list-style: none; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: .9rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.section-header h2 { margin: 0; }
.divider-gold { height: 2px; flex: 1; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent); border: none; }

/* Product / Card Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.card-product {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08); padding: 1.2rem;
  transition: transform .25s, box-shadow .25s;
}
.card-product:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,0.5); border-color: rgba(212,175,55,0.25); }
.card-product img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; margin-bottom: .8rem; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.card-product h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .3rem; }
.card-product .meta { color: var(--text-dim); font-size: .82rem; margin-bottom: .6rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.card-product .price { font-weight: 800; color: var(--gold); font-size: 1.1rem; }
.card-product .tag { display: inline-block; padding: .15rem .55rem; border-radius: 50px; font-size: .7rem; font-weight: 700; background: rgba(212,175,55,0.12); color: var(--gold); border: 1px solid rgba(212,175,55,0.25); }

/* Category Band */
.cat-band { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02)); border: 1px solid rgba(212,175,55,0.15); margin-bottom: 1.5rem; }
.cat-band h2 { font-size: 1.3rem; margin: 0; }
.printer-badge { margin-right: auto; display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-dim); background: rgba(0,0,0,0.3); padding: .3rem .7rem; border-radius: 50px; border: 1px solid rgba(255,255,255,0.08); }

/* Intro Overlay */
.intro-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11,12,16,0.92); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
.intro-overlay.active { opacity: 1; pointer-events: auto; }
.intro-card { max-width: 600px; width: 100%; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(212,175,55,0.25); border-radius: 26px; padding: 2.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.6); animation: fadeUp .4s ease-out; }
.intro-card h3 { font-family: var(--font-display); color: var(--gold); font-size: 1.6rem; margin-bottom: 1rem; }
.intro-card p { color: var(--text); line-height: 1.8; font-size: 1.05rem; }

/* Tables / QR */
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.table-card { background: var(--surface-strong); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 1rem; text-align: center; transition: border-color .2s; }
.table-card:hover { border-color: rgba(212,175,55,0.4); }
.table-card h4 { margin-bottom: .3rem; }
.table-card .code { font-family: monospace; color: var(--gold); font-weight: 700; font-size: 1.1rem; letter-spacing: .05em; }
.table-card .qr-box { width: 120px; height: 120px; margin: .6rem auto; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.table-card .qr-box img { width: 100%; height: 100%; border-radius: 8px; }

/* Club / Stats */
.club-panel { background: linear-gradient(180deg, rgba(212,175,55,0.08), rgba(212,175,55,0.03)); border: 1px solid rgba(212,175,55,0.2); border-radius: 20px; padding: 2rem; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-top: 1rem; }
.stat-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 1rem; text-align: center; }
.stat-box .num { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); }
.stat-box .label { font-size: .8rem; color: var(--text-dim); margin-top: .2rem; }

/* Login Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.7); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card { max-width: 420px; width: 100%; background: linear-gradient(180deg, #15171e, #0d0e12); border: 1px solid rgba(212,175,55,0.25); border-radius: 24px; padding: 2rem; box-shadow: 0 24px 60px rgba(0,0,0,0.6); animation: fadeUp .35s ease-out; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; color: var(--text-dim); margin-bottom: .3rem; }
.form-group input, .form-group textarea { width: 100%; padding: .7rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3); color: var(--text); font-family: inherit; font-size: 1rem; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }

/* Mobile Nav */
.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(11,12,16,0.95); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.06); padding: .6rem 1rem; display: flex; justify-content: space-around; align-items: center; }
.mobile-nav a { color: var(--text-dim); text-decoration: none; font-size: .75rem; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: color .2s; }
.mobile-nav a.active { color: var(--gold); }

/* Order Bar */
.order-bar { position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%); z-index: 95; background: linear-gradient(135deg, rgba(212,175,55,0.95), rgba(138,110,26,0.98)); color: #1a1205; padding: .6rem 1.2rem; border-radius: 50px; box-shadow: 0 10px 30px rgba(212,175,55,0.35); font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: .8rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.order-bar.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

/* Utilities */
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.gold { color: var(--gold); }

/* Responsive */
@media (max-width: 800px) {
  .section { padding: 2.5rem 1rem; }
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .feedback-grid { grid-template-columns: 1fr; }
}
