/*
Theme Name: Koreko
Theme URI: https://koreko.example
Author: Koreko
Description: قالب رستوران کره‌ای کورکو — منوی فارسی RTL با دسته‌بندی، تصویر و قیمت، قابل ویرایش از پیشخوان وردپرس.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: koreko
Tags: restaurant, menu, rtl, dark
*/

:root {
  --radius: 0.75rem;
  --background: #181412;
  --foreground: #f3ece3;
  --surface: #2e2622;
  --muted-foreground: #b3a79b;
  --primary: #d63b2f;
  --accent: #e8b464;
  --gold: #f0be6e;
  --ember: #dc6e3c;
  --border: rgba(255, 255, 255, 0.12);
  --gradient-ember: linear-gradient(135deg, var(--ember), var(--primary));
  --shadow-plate: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 0 1px rgba(240, 190, 110, 0.28), 0 18px 50px -20px rgba(220, 110, 60, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Vazirmatn", system-ui, sans-serif;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(220, 110, 60, 0.18), transparent 60%),
    radial-gradient(700px 420px at 5% 10%, rgba(240, 190, 110, 0.09), transparent 65%);
  background-attachment: fixed;
  line-height: 1.8;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header — Luxe obsidian glass */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 20, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-inner {
  direction: ltr;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand-name {
  font-family: "Bebas Neue", "Vazirmatn", sans-serif;
  font-size: 30px; letter-spacing: 0.06em; line-height: 1;
  background: var(--gradient-ember);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-tagline {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(240, 190, 110, 0.8);
}

/* Hero */
.hero { position: relative; overflow: hidden; isolate: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,20,18,1) 4%, rgba(24,20,18,0.75) 45%, rgba(24,20,18,0.15) 100%);
}
.hero-content { position: relative; padding: 120px 20px; max-width: 1120px; margin: 0 auto; }
.hero-kicker { direction: ltr; text-align: left; font-size: 13px; letter-spacing: 0.4em; color: var(--accent); margin: 0 0 16px; }
.hero h1 { font-size: clamp(32px, 6vw, 58px); line-height: 1.25; margin: 0; max-width: 620px; }
.hero h1 .accent { background: var(--gradient-ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 540px; color: var(--muted-foreground); font-size: 17px; margin-top: 18px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; padding: 12px 24px; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-weight: 600; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }

/* Menu */
.menu-section { padding: 30px 0 60px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 32px;
}
.section-head h2 { font-size: 28px; margin: 0; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  background: rgba(46, 38, 34, 0.88); box-shadow: var(--shadow-plate);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(240,190,110,0.45); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.badge {
  position: absolute; inset-inline-end: 12px; top: 12px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.card-body { padding: 20px; }
.card-body h3 { margin: 0 0 8px; font-size: 18px; }
.card-body p { margin: 0; color: var(--muted-foreground); font-size: 14px; min-height: 48px; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px;
}
.price { color: var(--gold); font-weight: 600; }
.card-foot span:last-child { font-size: 12px; color: var(--muted-foreground); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(46,38,34,0.4); }
.footer-inner {
  direction: ltr; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--muted-foreground);
}
.footer-inner .brand-name { font-size: 24px; }
.footer-inner .hours { direction: rtl; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .hero-content { padding: 80px 20px; }
}
