/* ==========================================================================
   1. የገጽታ ቀለማት እና መሠረታዊ ውቅረት (Burgundy Theme)
   ========================================================================== */
:root {
    --primary-color: #e74c3c;   
    --secondary-color: #4a0011; 
    --light-bg: #610416;        /* ዋናው የቡርጉንዲ ቀለም */
    --dark-text: #ffffff;       
    --white: #ffffff;
    --card-bg: #4a0011;
}

/* ☀️ Light Theme አሁንም ከቡርጉንዲ ጋር እንዲቀናጅ ተደርጓል */
body.light-theme {
    --light-bg: #f5f6fa;
    --secondary-color: #4a0011;
    --dark-text: #2f3640;
    --card-bg: #ffffff;
}
body.light-theme .menu-card {
    background: var(--card-bg);
    color: #2f3640;
}
body.light-theme .admin-card {
    background: #ffffff;
    color: #2f3640;
}
body.light-theme .admin-label {
    color: #4a0011;
}
body.light-theme .feedback-modal-content h3 {
    color: #4a0011 !important;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Poppins', 'Power Geez', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

/* 🌟 የላንዲንግ ገጽ ስታይሎች (Burgundy) */
.landing-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}
.landing-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.landing-container p {
    opacity: 0.8;
    margin-bottom: 30px;
}
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.landing-card {
    background: #4a0011;
    color: white;
    border: 2px solid #610416;
    padding: 40px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
body.light-theme .landing-card {
    background: #ffffff;
    color: #2f3640;
    border: 1px solid #ddd;
}
.landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.landing-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* 💳 የባንክ መረጃዎች ዲዛይን */
.bank-card { 
    max-width: 600px; 
    margin: 20px auto; 
    background: #4a0011; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
    text-align: center; 
    color: white;
    border: 1px solid #610416;
}
body.light-theme .bank-card {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}
.account-box { 
    margin-top: 20px; 
    text-align: left; 
    background: rgba(255, 255, 255, 0.08); 
    padding: 15px; 
    border-radius: 8px; 
    border-left: 5px solid var(--primary-color); 
}
body.light-theme .account-box {
    background: #f8f9fa;
}
.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.copy-btn:hover { background: #219653; }

/* 🍽️ የምግብ ካርድ ምስል ላይ ተንሳፋፊ ፌቮሬት አዝራር */
.menu-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    cursor: pointer;
}
.image-container {
    position: relative;
    width: 100%;
}
.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.fav-img-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 5;
    transition: transform 0.1s;
}
.fav-img-btn:active { transform: scale(0.9); }

.menu-card-info { padding: 15px; }
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.price {
    font-weight: bold;
    color: #27ae60;
    font-size: 1.2rem;
}

/* 🔔 የራስጌ (Header) አደረጃጀት */
.header-with-bg {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: relative;
    color: white;
    border-bottom: 2px solid #610416;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.header-controls-wrapper { display: flex; align-items: center; gap: 15px; position: relative; }
.top-buttons-wrapper { display: flex; gap: 10px; }
.icon-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: white; }

/* 📱 Hamburger Menu */
.hamburger-menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger-menu-icon span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}
.hamburger-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: #4a0011;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
    border: 1px solid #610416;
}
body.light-theme .hamburger-dropdown {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}
.hamburger-dropdown.show { display: flex; }
.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
}
body.light-theme .dropdown-item {
    border-bottom: 1px solid #eee;
}
.dropdown-item:hover { background: rgba(255,255,255,0.1); }
body.light-theme .dropdown-item:hover { background: #f5f5f5; }
.select-lang-container select {
    margin-left: 5px;
    padding: 3px;
    border-radius: 4px;
    background: #610416;
    color: white;
    border: 1px solid #4a0011;
}
body.light-theme .select-lang-container select {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

/* 🗂️ ካቴጎሪዎች */
.categories {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
    padding: 0 10px;
}
.cat-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    color: var(--dark-text);
    font-weight: bold;
}
.cat-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 🍽️ የሜኑ ግሪድ */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 📋 Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }
.food-details-modal, .feedback-modal-content {
    background: #4a0011;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    width: 90%;
    max-width: 450px;
    border: 1px solid #610416;
}
body.light-theme .food-details-modal, body.light-theme .feedback-modal-content {
    background: white;
    color: #333;
}
.close-modal-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: none; border: none; font-size: 1.8rem; cursor: pointer; z-index: 10; color: white;
}
body.light-theme .close-modal-btn { color: #333; }
.food-details-modal img {
    width: 100%;
    border-radius: 8px;
    height: 250px;
    object-fit: cover;
}

/* 🛠️ Admin Panel */
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px; margin-top: 5px; margin-bottom: 12px;
    border: 1px solid #610416; border-radius: 6px; background: rgba(255,255,255,0.1); color: white;
}
body.light-theme .form-group input, body.light-theme .form-group select, body.light-theme .form-group textarea {
    background: #fff; color: #333; border: 1px solid #ddd;
}
.admin-label {
    display: block; margin-top: 8px; font-weight: bold; color: #ffbe76; font-size: 0.9rem;
}
.form-group button {
    width: 100%; padding: 12px; background: #27ae60; color: white;
    border: none; border-radius: 6px; margin-top: 15px; cursor: pointer; font-weight: bold;
}
.admin-card { background: #4a0011; padding: 20px; border-radius: 12px; margin-bottom: 25px; border: 1px solid #610416; }
.admin-item-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

.hidden { display: none !important; }
footer { text-align: center; padding: 20px; margin-top: auto; opacity: 0.7; }
.back-to-home, .back-btn { background: #4a0011; color: white; border: 1px solid #610416; padding: 8px 16px; border-radius: 6px; cursor: pointer; }

/* 📱 ሪስፖንሲቭ ዲዛይን (ለሞባይል ስልኮች ምስልና መግለጫ ጎን ለጎን ለማሳየት) */
@media (max-width: 600px) {
    .menu-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 120px;
    }
    .image-container {
        width: 40%;
        height: 100%;
    }
    .menu-card img {
        height: 100%;
        width: 100%;
    }
    .menu-card-info {
        width: 60%;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
    .menu-card-info h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    .card-meta {
        margin-top: 0;
    }
    .fav-img-btn {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}
/* የባክ በተን ስታይል */
.back-btn-container {
    width: 100%;
    padding: 10px 15px;
    display: flex;
    justify-content: flex-start;
}

.back-to-landing-btn {
    background-color: #e74c3c; /* ቀይ ከለር */
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.back-to-landing-btn:hover {
    background-color: #c0392b; /* ሲነካ ትንሽ ጠቆር እንዲል */
}