/* Menu Page Styles */

/* Menu Header */
.menu-header {
    background: linear-gradient(135deg, #a6a26f 0%, #a6a26f 100%);
    padding: 2rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/zeytin-dali.png') repeat;
    opacity: 0.1;
    z-index: 0;
}

.menu-header .container {
    position: relative;
    z-index: 1;
}

.menu-logo img {
    height: 150px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.menu-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.menu-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    font-style: italic;
}

/* Menu Categories */
.menu-categories {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 3px solid #a6a26f;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.toggle-btn {
    background: #a6a26f;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-btn:hover {
    background: #a6a26f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.toggle-btn.active {
    background: #a6a26f;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
}

.category-buttons.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
}

.category-btn {
    background: white;
    border: 2px solid #a6a26f;
    color: #a6a26f;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-btn:hover,
.category-btn.active {
    background: #a6a26f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 53, 92, 0.3);
}

/* Menu Content */
.menu-content {
    background: #fff;
    padding: 3rem 0;
    min-height: 60vh;
}

/* Menu Info Note */
.menu-info-note {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-text {
    margin: 0;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-icon {
    color: #a6a26f;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.menu-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ffc107;
    color: #000;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: inherit;
    /* border-radius: 0 0.25rem 0 0.25rem; */
    z-index: 1;
}

.kuver-section {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.kuver-info {
    font-weight: 600;
    color: #a6a26f;
}

.tax-update-info {
    font-size: 0.9rem;
    color: #6c757d;
}

.tax-info {
    color: #6c757d;
    font-style: italic;
}

.update-info {
    color: #6c757d;
    font-size: 0.85rem;
}

.menu-section {
    margin-bottom: 3rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.menu-section.hidden {
    display: none;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #a6a26f;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-decoration {
    height: 30px;
    opacity: 0.7;
}

.menu-items {
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #a6a26f, #a6a26f);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 53, 92, 0.15);
}

.menu-item:hover::before {
    transform: scaleY(1);
}

.item-info {
    flex: 1;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
}

.item-info.no-description {
    justify-content: center;
    min-height: 60px;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #a6a26f;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.item-description {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #a6a26f;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #a6a26f;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Menu Footer */
.menu-footer {
    background: linear-gradient(135deg, #a6a26f 0%, #a6a26f 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.menu-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/zeytin-dali.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 80px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.contact-item i {
    color: #ffd700;
    font-size: 1.1rem;
    min-width: 16px;
}

.contact-item span {
    font-weight: 500;
}

/* WhatsApp Button */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.whatsapp-text {
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-title {
        font-size: 2rem;
    }
    
    .menu-subtitle {
        font-size: 1rem;
    }
    
    .category-buttons {
        padding: 0 1rem;
    }
    
    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title-decoration {
        height: 25px;
    }
    
    .menu-item {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        align-items: center;
    }
    
    .item-info {
        padding-right: 1rem;
        margin-bottom: 0;
        flex: 1;
    }
    
    .item-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .item-description {
        font-size: 0.75rem;
        margin: 0.3rem 0;
    }
    
    .item-price {
        font-size: 1rem;
        align-self: center;
        flex-shrink: 0;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .whatsapp-button i {
        margin: 0;
        font-size: 1.8rem;
    }
    
    /* Footer responsive */
     .footer-contact {
         flex-direction: column;
         gap: 1rem;
         align-items: center;
     }
     
     .contact-item {
         justify-content: center;
         white-space: normal;
         text-align: center;
     }
     
     .contact-item span {
         text-align: center;
     }
     
     /* Info note responsive */
      .info-text {
          flex-direction: row;
          flex-wrap: wrap;
          gap: 0.5rem;
          font-size: 0.8rem;
          line-height: 1.3;
      }
      
      .menu-info-note {
          padding: 0.8rem 1rem;
          margin-bottom: 1.5rem;
      }
      
      .kuver-section {
            flex-basis: 100%;
            justify-content: center;
        }
        
        .kuver-info {
            text-align: center;
        }
       
       .tax-info, .update-info {
           flex-basis: auto;
           text-align: center;
       }
       
       .update-info {
           font-size: 0.75rem;
       }
 }

@media (max-width: 480px) {
    .menu-header {
        padding: 1.5rem 0;
    }
    
    .menu-logo img {
        height: 60px;
    }
    
    .menu-title {
        font-size: 1.8rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .menu-content {
        padding: 2rem 0;
    }
    
    .menu-item {
        margin: 0 1rem 1rem 1rem;
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special Price Styling */
.item-price.special {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #a6a26f;
    border-color: #ffd700;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Category Icons */

/* Allergen Icons */
.allergen-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.allergen-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    cursor: help;
}

.allergen-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
    font-size: 0.7rem;
    color: #6c757d;
    cursor: help;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a6a26f, #a6a26f);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a6a26f, #a6a26f);
}

/* Print Styles */
@media print {
    .menu-categories,
    .whatsapp-chat,
    .menu-footer {
        display: none;
    }
    
    .menu-header {
        background: white;
        color: black;
    }
    
    .menu-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .item-price {
        background: white;
        border: 1px solid #ddd;
    }
}