/* Restaurant Menu Website Stylesheet
   Bilingual (English/Arabic) Italian restaurant menu
   Elegant design with green leaf decorations
*/

:root {
    --primary-color: #45624a;
    /* Dark green */
    --secondary-color: #6e8b74;
    /* Medium green */
    --accent-color: #e8e8e8;
    /* Light gray accent */
    --light-bg: #f9f9f9;
    /* Very light background */
    --dark-text: #333;
    /* Dark text */
    --light-text: #fff;
    /* Light text */
    --menu-bg: rgba(255, 255, 255, 0.95);
    /* Semi-transparent menu background */
    --border-color: #d1d1d1;
    /* Light border color */
    --title-font: 'Playfair Display', serif;
    --body-font: 'Lato', 'Segoe UI', sans-serif;
    --arabic-font: 'Noto Kufi Arabic', 'Amiri', 'Tajawal', 'Almarai', 'Cairo', sans-serif;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--dark-text);
    line-height: 1.6;
    position: relative;

    /* Gradient Background */
    background: linear-gradient(135deg, rgb(22, 65, 43), rgb(41, 98, 66));
    min-height: 100vh;
}

.rtl {
    direction: rtl;
    font-family: var(--arabic-font);
}

.rtl .menu-title,
.rtl .category-title,
.rtl .menu-item-title,
.rtl .item-details-title,
.rtl .footer-section h3 {
    font-family: var(--arabic-font);
    letter-spacing: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--light-bg);
    color: var(--dark-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-family: var(--title-font);
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
    border-radius: 4px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.language-switch {
    cursor: pointer;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.language-switch:hover {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/leaf-decoration.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--title-font);
    color: var(--primary-color);
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--secondary-color);
}

/* Menu Section */
.menu-container {
    max-width: 850px;
    margin: 0 auto 3rem;
    background-color: var(--menu-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 20px;
}

.menu-container::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background-image: url('../images/leaves-corner.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

.menu-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 150px;
    height: 150px;
    background-image: url('../images/leaves-corner.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(180deg);
    opacity: 0.2;
    pointer-events: none;
}

.menu-header {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.menu-title {
    font-family: var(--title-font);
    color: var(--dark-text);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 5px;
}

.menu-subtitle {
    font-family: var(--body-font);
    color: var(--secondary-color);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.menu-watermark {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--title-font);
    color: var(--secondary-color);
    font-size: 5rem;
    opacity: 0.1;
    z-index: -1;
}

.menu-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.menu-categories {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.menu-category {
    padding: 10px 20px;
    text-align: center;
    position: relative;
}

.category-title {
    font-family: var(--title-font);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--dark-text);
    font-size: 1.5rem;
}

.menu-items-container {
    display: flex;
    flex-wrap: wrap;
}

.menu-column {
    flex: 1;
    min-width: 300px;
    padding: 0 10px;
}

.menu-item {
    margin-bottom: 30px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-3px);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.menu-item-title {
    font-family: var(--title-font);
    color: var(--dark-text);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-item-price {
    font-weight: bold;
    color: var(--primary-color);
}

.menu-item-description {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Item details modal */
.item-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--light-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 900px;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    padding: 0;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light-text);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Item Details - Side by Side Layout */
.item-details {
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

.item-details-image {
    width: 50%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
    flex-shrink: 0;
}

.item-details-content {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
}

.item-details-header {
    margin-bottom: 20px;
}

.item-details-title {
    font-family: var(--title-font);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.item-details-price {
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--light-text);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(69, 98, 74, 0.3);
}

.item-details-description {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.item-details-category {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.item-details-note {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* RTL Layout - Image on Right */
.rtl .item-details {
    flex-direction: row-reverse;
}

.rtl .item-details-image {
    border-radius: 0 12px 12px 0;
}

.rtl .item-details-content {
    text-align: center;
}

/* Responsive - Stack on mobile */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    .item-details {
        flex-direction: column;
    }

    .rtl .item-details {
        flex-direction: column;
    }

    .item-details-image {
        width: 100%;
        min-height: 250px;
        border-radius: 12px 12px 0 0;
    }

    .rtl .item-details-image {
        border-radius: 12px 12px 0 0;
    }

    .item-details-content {
        width: 100%;
        padding: 20px;
    }
}

.item-details-ingredients {
    margin-bottom: 20px;
}

.item-details-ingredients h3 {
    font-family: var(--title-font);
    color: var(--dark-text);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ingredient-tag {
    background-color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-text);
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgb(41, 98, 66), rgba(69, 98, 74, 0.9));
    color: var(--light-text);
    padding: 2rem 0;
    text-align: center;
}

.footer-compact {
    background: linear-gradient(135deg, rgb(41, 98, 66), rgba(69, 98, 74, 0.9));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-family: var(--title-font);
    letter-spacing: 2px;
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Admin Panel Styles */
.admin-panel {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-panel h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.admin-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-danger {
    background-color: #d62828;
}

.btn-danger:hover {
    background-color: #b52121;
}

/* RTL specific adjustments */
.rtl .logo img {
    margin-right: 0;
    margin-left: 10px;
}

.rtl nav ul li {
    margin-left: 0;
    margin-right: 20px;
}

.rtl .menu-container::before {
    right: auto;
    left: 20px;
    transform: scaleX(-1);
}

.rtl .menu-container::after {
    left: auto;
    right: 20px;
    transform: rotate(180deg) scaleX(-1);
}

.rtl .close-modal {
    right: auto;
    left: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-column {
        flex: 100%;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }

    .site-header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .admin-form {
        grid-template-columns: 1fr;
    }

    .menu-categories {
        flex-direction: column;
    }

    .menu-title {
        font-size: 2rem;
    }
}

/* Item detail page styles */
.item-detail-page {
    max-width: 800px;
    margin: 2rem auto;
    background-color: var(--menu-bg);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-gallery {
    margin-bottom: 2rem;
}

.item-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.item-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.item-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.item-thumbnail:hover,
.item-thumbnail.active {
    opacity: 1;
}

.back-to-menu {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-to-menu:hover {
    text-decoration: underline;
}

/* Animation for subtle breathing effect on menu items */
@keyframes subtle-breathe {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.menu-item:hover .menu-item-title {
    color: var(--primary-color);
}

/*
 * MODERN & ELEGANT REMARK BADGE STYLE
 * A cleaner, more refined look for remarks.
*/
.menu-remark {
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    text-shadow: none;
    animation: none;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    background-color: transparent !important;
}

.menu-remark:hover {
    transform: translateY(-2px);
    /* حركة بسيطة عند التمرير */
}

.menu-remark .fas {
    margin-right: 4px;
    vertical-align: baseline;
    /* محاذاة أفضل للأيقونة */
}

html[dir="rtl"] .menu-remark .fas {
    margin-right: 0;
    margin-left: 4px;
}



/* --- Creative Note Styles --- */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

.creative-note {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 20px auto;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    /* خلفية بلون داكن وأنيق */
    border-radius: 12px;
    /* حواف دائرية */
    border: 1px solid #4a627a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    /* تحديد عرض الشريط */
    overflow: hidden;
    /* لإخفاء أي شيء يخرج عن الحواف الدائرية */
}

.creative-note .note-icon {
    font-size: 22px;
    color: #f1c40f;
    /* لون ذهبي جذاب */
    margin-left: 12px;
    /* Default margin for LTR */
    margin-right: 0;
    animation: pulse-icon 2s infinite ease-in-out;
    /* تطبيق حركة النبض */
}

html[dir="rtl"] .creative-note .note-icon {
    margin-left: 0;
    margin-right: 12px;
    /* Margin for RTL */
}

.creative-note .shimmer-text {
    font-family: 'Tajawal', sans-serif;
    /* استخدام الخط العصري */
    font-size: 16px;
    font-weight: 500;
    color: #ecf0f1;
    /* لون النص الأساسي */

    /* هنا تبدأ خدعة اللمعان */
    background: linear-gradient(90deg,
            #ecf0f1,
            #fff,
            #ecf0f1);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer-effect 3s linear infinite;
    /* تطبيق حركة اللمعان */
}

/* --- Keyframes (الحركات) --- */

/* حركة اللمعان للنص */
@keyframes shimmer-effect {
    to {
        background-position: -200% center;
    }
}

/* حركة النبض للأيقونة */
@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Pulse animation for discount notes */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(238, 90, 36, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 20px rgba(238, 90, 36, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(238, 90, 36, 0.3);
    }
}

/* Styles for Particles.js Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    /* Place it behind all other content */
}