/* ============================================================
   public.css
   מעצב את עמוד המסעדה ואת התפריט שהלקוחות רואים בלבד.
   ערכת נושא כהה עם הדגשות בזהב.
   שינויים כאן לא משפיעים על פאנלי הניהול (ראה admin.css).
   ============================================================ */

:root {
    --gold: #cda445;            /* צבע ההדגשה - כפתורים, מחירים, קווים */
    --gold-dark: #b78d33;
    --gold-soft: rgba(205,164,69,0.16);

    --bg: #111113;              /* רקע העמוד */
    --surface: #1b1b1f;         /* המסגרות האפרפרות שהכל יושב בתוכן */
    --surface-2: #232329;       /* רקע משני - תמונות, תגיות */
    --border: #2e2e35;          /* גבול עדין למסגרות */

    --text: #f2f2f4;
    --text-light: #a2a2ad;

    --radius: 18px;
    --shadow: 0 8px 26px rgba(0,0,0,0.45);

    /* ערכים שמשתנים לפי הסקין (ברירת המחדל = זהב לילה) */
    --on-gold: #1a1408;                     /* טקסט על רקע בצבע ההדגשה */
    --btn-shadow: 0 6px 18px rgba(205,164,69,0.16);
    --outline: rgba(205,164,69,0.5);        /* מסגרת כפתור "חזרה" */
    --border-hover: #3d3d46;
    --dots: #4a4a55;                        /* הנקודות בין שם המנה למחיר */
    --hero-placeholder: linear-gradient(135deg, #26262c, #17171b);
    --tile-overlay: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.12) 100%);
    --radius-sm: 12px;                      /* תמונות מנות, תפריט השפות */
    --radius-xs: 8px;
    --radius-btn: 999px;                    /* כפתורים, לשוניות ותגיות */
}

/* רקע הכפתור הראשי (יכול להיות גרדיאנט).
   מוגדר על ה-body ולא על :root, כדי שיתעדכן לפי צבע ההדגשה של הסקין */
body {
    --btn-bg: var(--gold);
    --btn-bg-hover: var(--gold-dark);
}

/* ============================================================
   סקינים - נבחרים בפרטי המסעדה ומוחלים כ-class על ה-body.
   הלוגו נשאר עגול בכל הסקינים.
   ============================================================ */

/* Dusk - כחול לילה עם כתום, פינות מינימליות */
body.skin-dusk {
    --gold: #F7924A; --gold-dark: #e47c32; --gold-soft: rgba(247,146,74,0.28);
    --bg: #1A1B2E; --surface: #23243C; --surface-2: #2C2D4A; --border: #42426F;
    --text: #F3EDE8; --text-light: #B3AECB;
    --shadow: 0 8px 26px rgba(0,0,0,0.4);
    --on-gold: #1A1B2E;
    --btn-shadow: 0 6px 18px rgba(247,146,74,0.18);
    --outline: rgba(247,146,74,0.55); --border-hover: #5a5a8a; --dots: #42426F;
    --hero-placeholder: linear-gradient(135deg, #2C2D4A, #1A1B2E);
    --radius: 4px; --radius-sm: 3px; --radius-xs: 2px; --radius-btn: 3px;
}

/* Ocean - כחול עמוק עם טורקיז */
body.skin-ocean {
    --gold: #29ADB2; --gold-dark: #1f9499; --gold-soft: rgba(41,173,178,0.25);
    --bg: #0D1B2A; --surface: #12273B; --surface-2: #17324B; --border: #1B4965;
    --text: #E6F4F1; --text-light: #A8DADC;
    --shadow: 0 8px 26px rgba(0,0,0,0.4);
    --on-gold: #0D1B2A;
    --btn-shadow: 0 6px 18px rgba(41,173,178,0.18);
    --outline: rgba(41,173,178,0.55); --border-hover: #23607f; --dots: #1B4965;
    --hero-placeholder: linear-gradient(135deg, #17324B, #0D1B2A);
}

/* Sunset - בהיר, קרם עם אדום־כתום */
body.skin-sunset {
    --gold: #E94F37; --gold-dark: #cf3e27; --gold-soft: rgba(249,199,79,0.6);
    --bg: #FFF2E7; --surface: #FFFFFF; --surface-2: #FDD9B5; --border: #F6DCC4;
    --text: #3A2418; --text-light: #8A6450;
    --shadow: 0 6px 20px rgba(120,60,20,0.08);
    --on-gold: #FFFFFF;
    --btn-shadow: 0 6px 16px rgba(233,79,55,0.2);
    --outline: rgba(233,79,55,0.55); --border-hover: #eec7a3; --dots: #F9C74F;
    --hero-placeholder: linear-gradient(135deg, #FDD9B5, #FFF2E7);
}

/* Lavender - בהיר, סגול, בלי עיגול פינות */
body.skin-lavender {
    --gold: #5E488B; --gold-dark: #4b3971; --gold-soft: #B9A7E0;
    --bg: #F6F2FB; --surface: #FFFFFF; --surface-2: #E7D6F7; --border: #E4D9F2;
    --text: #2B2240; --text-light: #6D6189;
    --shadow: 0 6px 20px rgba(60,40,100,0.08);
    --on-gold: #FFFFFF;
    --btn-shadow: 0 6px 16px rgba(94,72,139,0.2);
    --outline: rgba(94,72,139,0.55); --border-hover: #cdbde6; --dots: #B9A7E0;
    --hero-placeholder: linear-gradient(135deg, #E7D6F7, #F6F2FB);
    --radius: 0; --radius-sm: 0; --radius-xs: 0; --radius-btn: 0;
}

/* Berry - בהיר, ורוד עם בורדו, בלי עיגול פינות */
body.skin-berry {
    --gold: #9D174D; --gold-dark: #6B0F3C; --gold-soft: #F7A1B3;
    --bg: #FFE6EC; --surface: #FFFFFF; --surface-2: #FFF0F3; --border: #F7C3CF;
    --text: #3A0A20; --text-light: #8A4A62;
    --shadow: 0 6px 20px rgba(107,15,60,0.08);
    --on-gold: #FFFFFF;
    --btn-bg: #6B0F3C; --btn-bg-hover: #520b2e;
    --btn-shadow: 0 6px 16px rgba(107,15,60,0.2);
    --outline: rgba(157,23,77,0.55); --border-hover: #f0a9ba; --dots: #F7A1B3;
    --hero-placeholder: linear-gradient(135deg, #F7A1B3, #FFE6EC);
    --radius: 0; --radius-sm: 0; --radius-xs: 0; --radius-btn: 0;
}

/* Happy Gradient - פחם עם גרדיאנט סגול־ורוד־כתום */
body.skin-happy {
    --gold: #F0609A; --gold-dark: #d9468f; --gold-soft: rgba(240,96,154,0.28);
    --bg: #26262B; --surface: #303036; --surface-2: #3a3a42; --border: #3f3f48;
    --text: #F4F4F6; --text-light: #A9A9B4;
    --shadow: 0 8px 26px rgba(0,0,0,0.4);
    --on-gold: #FFFFFF;
    --btn-bg: linear-gradient(90deg, #7B5CF0, #D9468F 55%, #F79A5A);
    --btn-bg-hover: linear-gradient(90deg, #6b4ce0, #c93a80 55%, #ea8b4b);
    --btn-shadow: 0 6px 18px rgba(217,70,143,0.25);
    --outline: rgba(240,96,154,0.6); --border-hover: #55555f; --dots: #4a4a54;
    --hero-placeholder: linear-gradient(135deg, #7B5CF0, #D9468F 55%, #F79A5A);
    --tile-overlay: linear-gradient(135deg, rgba(123,92,240,0.78) 0%, rgba(217,70,143,0.66) 55%, rgba(247,154,90,0.62) 100%);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Heebo", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* בשפות שנכתבות משמאל לימין (אנגלית, רוסית) */
html[dir="ltr"] body { direction: ltr; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 18px 44px;
}

/* ---------- כפתורים ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: var(--radius-btn);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background .15s ease, transform .12s ease;
    width: 100%;
    font-family: inherit;
    line-height: 1.25;
    border: 1.5px solid transparent;
}
.btn:active { transform: scale(0.98); }

/* הכפתור הראשי - זהב מלא עם טקסט כהה */
.btn-primary {
    background: var(--btn-bg);
    color: var(--on-gold);
    box-shadow: var(--btn-shadow);
}
.btn-primary:hover { background: var(--btn-bg-hover); }

/* כפתור משני - מסגרת אפרפרה על רקע כהה */
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--border-hover); }

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--outline);
}
.btn-outline:hover { background: var(--gold-soft); }

.btn-small { padding: 8px 16px; font-size: 13.5px; width: auto; }

/* ---------- מסגרות ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 18px;
}

.form-hint { color: var(--text-light); font-size: 12.5px; margin-top: 4px; }

/* ---------- ראש עמוד המסעדה ---------- */
.hero-wrap { position: relative; }
.hero-img {
    width: 100%;
    height: 190px;                 /* גובה מצומצם */
    object-fit: cover;
}
.hero-placeholder { background: var(--hero-placeholder); }

/* הצללה בתחתית ה-hero כדי שיתמזג אל הרקע הכהה */
.hero-wrap::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}
.logo-img {
    width: 96px; height: 96px; border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface);
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}

.welcome-title {
    text-align: center; font-size: 25px; font-weight: 800;
    margin: 16px 0 6px; letter-spacing: -0.3px;
}
.welcome-sub {
    text-align: center; color: var(--text-light);
    margin-bottom: 26px; font-size: 15px;
}

/* ---------- אריחי הכניסה לתפריט ---------- */
.menu-tiles { display: flex; gap: 12px; margin-bottom: 26px; }

.tile {
    flex: 1 1 0; min-width: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: transform .14s ease, border-color .14s ease;
}
/* הצללה שמתחזקת כלפי מטה, כדי שהטקסט יישאר קריא על כל תמונה */
.tile::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--tile-overlay);
}
.tile:hover { transform: translateY(-2px); border-color: var(--gold); }
.tile span {
    position: relative; z-index: 2;
    color: #fff; font-weight: 800; font-size: 18px;
    text-align: center; line-height: 1.3;
    padding: 0 12px 16px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* כשיש אריח אחד בלבד - ריבוע מלא רוחב נראה גדול מדי */
.menu-tiles.single .tile { aspect-ratio: 16 / 9; }

@media (max-width: 380px) {
    .tile span { font-size: 16px; }
}

.review-card { text-align: center; }
.review-card h3 { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.review-stars { font-size: 22px; color: var(--gold); margin-bottom: 10px; }

.thanks {
    text-align: center; color: var(--text-light);
    margin-top: 28px; font-size: 14px;
}

/* כפתור "רוצים לעבוד אצלנו?" - עומד לבדו בתחתית העמוד */
.jobs-row { margin-top: 26px; }

/* כפתור "הצטרפו למועדון שלנו!" - צמוד מתחת לכרטיס הביקורות */
.club-row { margin-top: -4px; margin-bottom: 4px; }

/* ---------- קישורים חיצוניים בעיגולים ---------- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}
.social-circle {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* כל העיגולים באותו מראה: רקע כהה, מסגרת עדינה, לוגו בצבע אחיד */
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--gold);
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.social-circle svg { width: 22px; height: 22px; display: block; }
.social-circle:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}

/* ---------- עמוד התפריט ---------- */
.menu-header { text-align: center; padding: 26px 0 12px; }
.menu-header .logo-img { width: 68px; height: 68px; margin: 0 auto 10px; }
.menu-header-name { font-size: 21px; font-weight: 800; }

.back-row { margin-bottom: 18px; }

.section-tabs {
    display: flex; gap: 8px; margin-bottom: 22px; overflow-x: auto;
    padding-bottom: 2px;
}
.section-tabs a {
    padding: 9px 18px; border-radius: var(--radius-btn);
    border: 1px solid var(--border);
    background: var(--surface);
    white-space: nowrap; font-weight: 600; font-size: 14px;
    color: var(--text-light);
}
.section-tabs a.active {
    background: var(--btn-bg); color: var(--on-gold);
    border-color: var(--gold); font-weight: 700;
}

/* כל קטגוריה יושבת במסגרת אפרפרה משלה */
.category-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px 6px;
    margin-bottom: 18px;
}
.category-title {
    font-size: 19px; font-weight: 800; margin-bottom: 10px;
    color: var(--gold);
    border-bottom: 2px solid var(--gold-soft);
    display: inline-block; padding-bottom: 5px;
}

/* הערה של הקטגוריה - מוצגת מתחת לשם הקטגוריה */
.category-note {
    color: var(--text-light);
    font-size: 13.5px;
    font-style: italic;
    margin: 2px 0 4px;
}

.menu-item {
    display: flex; gap: 14px; padding: 13px 0;
}
.menu-item-img {
    width: 84px; height: 84px; border-radius: var(--radius-sm);
    object-fit: cover; flex-shrink: 0; background: var(--surface-2);
}
.menu-item-body { flex: 1; min-width: 0; }
.menu-item-title-row { display: flex; align-items: baseline; gap: 6px; }
.menu-item-name { font-weight: 700; font-size: 16px; white-space: nowrap; }
.menu-item-dots { flex: 1; border-bottom: 1px dotted var(--dots); height: 0; margin-bottom: 5px; min-width: 10px; }
.menu-item-price { font-weight: 800; font-size: 16px; color: var(--gold); white-space: nowrap; }
.menu-item-desc { color: var(--text-light); font-size: 13.5px; margin-top: 4px; }

/* גדלים למנה - מתחת לתיאור, במקום המחיר הכללי. שורה לכל גודל */
.menu-item-sizes { margin-top: 8px; }
.size-line { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; font-size: 14.5px; }
.size-name { white-space: nowrap; }
.size-price { font-weight: 800; color: var(--gold); white-space: nowrap; }

/* שדרוגים למנה - מתחת לתיאור */
.menu-item-upgrades {
    margin-top: 8px; padding-top: 6px;
    border-top: 1px dashed var(--border);
}
.upgrades-title { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.upgrade-line {
    display: flex; justify-content: space-between; gap: 10px;
    font-size: 13px; color: var(--text-light); padding: 2px 0;
}
.upgrade-price { color: var(--gold); font-weight: 700; white-space: nowrap; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.badge {
    font-size: 11.5px; background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 3px 9px; border-radius: var(--radius-btn); color: var(--text-light);
}

.empty-state { text-align: center; color: var(--text-light); padding: 30px 10px; }

/* ---------- מסכים קטנים ---------- */
@media (max-width: 480px) {
    .hero-img { height: 160px; }
    .welcome-title { font-size: 22px; }
}


/* ---------- בורר שפות ---------- */
.lang-bar { display: flex; justify-content: flex-end; padding-top: 14px; }
.lang-bar-hero {
    position: absolute; top: 12px; inset-inline-end: 14px;
    z-index: 5; padding-top: 0;
}
.lang-switch { position: relative; }
.lang-switch summary {
    list-style: none;
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); border-radius: var(--radius-btn);
    padding: 7px 13px; font-size: 13.5px; font-weight: 600;
    cursor: pointer; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-chev { width: 14px; height: 14px; transition: transform .2s ease; }
.lang-switch[open] .lang-chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
    min-width: 160px; z-index: 20;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px;
}
.lang-option {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px; border-radius: var(--radius-xs);
    color: var(--text); font-size: 14px;
}
.lang-option:hover { background: var(--surface-2); }
.lang-option.is-current { color: var(--gold); font-weight: 700; }
.lang-flag { width: 20px; height: 14px; border-radius: 2px; flex-shrink: 0; display: block; }

/* ---------- פופאפ "דרגו אותנו" (סינון ביקורות חכם) ---------- */
.rv-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 18px; }
.rv-modal[hidden] { display: none; }
.rv-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.rv-box {
    position: relative; width: 100%; max-width: 380px; max-height: 92vh; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 26px 22px 20px; text-align: center; color: var(--text);
}
.rv-x {
    position: absolute; top: 8px; inset-inline-end: 10px;
    background: none; border: 0; color: var(--text-light);
    font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.rv-step[hidden] { display: none; }
.rv-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.rv-sub { color: var(--text-light); font-size: 13.5px; margin-bottom: 18px; }
.rv-faces { display: flex; gap: 14px; justify-content: center; }
.rv-face {
    flex: 1; max-width: 140px; padding: 14px 8px;
    background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: border-color .14s ease, transform .12s ease;
}
.rv-face:hover { border-color: var(--gold); }
.rv-face:active { transform: scale(0.97); }
.rv-face svg { width: 52px; height: 52px; display: block; margin: 0 auto 6px; }
.rv-face-happy svg { color: var(--gold); }
.rv-face-sad svg { color: var(--text-light); }
.rv-stack { display: flex; flex-direction: column; gap: 10px; }
.rv-link {
    display: inline-block; margin-top: 12px; background: none; border: 0;
    color: var(--text-light); font-family: inherit; font-size: 13px; cursor: pointer; text-decoration: underline;
}
.rv-form { text-align: start; }
.rv-form label { display: block; font-size: 13.5px; font-weight: 600; margin: 12px 0 5px; }
.rv-form input, .rv-form textarea {
    width: 100%; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-xs); color: var(--text);
    padding: 11px 12px; font-family: inherit; font-size: 15px;
}
.rv-form textarea { min-height: 96px; resize: vertical; }
.rv-form input:focus, .rv-form textarea:focus { outline: none; border-color: var(--gold); }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-error { color: #e5484d; font-size: 13px; margin-top: 10px; min-height: 18px; text-align: center; }
.rv-form .btn { margin-top: 12px; }

/* ---------- הודעת עוגיות ---------- */
.cookie-bar {
    position: fixed;
    right: 14px; left: 14px; bottom: 14px;
    z-index: 60;
    max-width: 612px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    /* מוסתרת עד שה-JS מחליט להציג, וגם אז נכנסת בהחלקה מלמטה */
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease;
}
.cookie-bar.show { opacity: 1; transform: translateY(0); }
.cookie-bar[hidden] { display: none; }

.cookie-text {
    flex: 1;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-light);
}
.cookie-text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.cookie-ok {
    flex-shrink: 0;
    background: var(--btn-bg);
    color: var(--on-gold);
    border: none;
    border-radius: var(--radius-btn);
    padding: 10px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .12s ease;
}
.cookie-ok:hover { background: var(--btn-bg-hover); }
.cookie-ok:active { transform: scale(0.97); }

/* במסך צר הכפתור עובר לשורה נפרדת ברוחב מלא */
@media (max-width: 520px) {
    .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-ok { width: 100%; }
}
