/**
 * Restaurant Menu Manager - Frontend Styles
 * Version: 1.0.0
 */

/* ========================================
   GENERAL MENU STYLES
   ======================================== */

.rmm-menu-section {
    margin: 40px 0;
    padding: 20px;
    font-family: 'Lora', serif;
    color: #ffffff;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.menu-section-title {
    color: #FFD700;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}

.menu-subsection-title {
    color: #FFD700;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.5em;
    margin: 30px 0 20px 0;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

/* ========================================
   MENU ITEMS
   ======================================== */

.menu-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(255, 215, 0, 0.05);
    padding-left: 10px;
}

.menu-item:last-child {
    border-bottom: none;
}

/* ========================================
   MENU ITEM HEADER
   ======================================== */

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 20px;
}

.menu-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
}

.menu-item-price {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.2em;
    white-space: nowrap;
    font-family: 'Lora', serif;
}

/* ========================================
   MENU ITEM DETAILS
   ======================================== */

.menu-item-subtitle {
    color: #FFD700;
    font-size: 0.9em;
    font-style: italic;
    margin: 5px 0;
    font-family: 'Lora', serif;
}

.menu-item-description {
    color: #FFD700;
    font-size: 0.9em;
    font-style: italic;
    margin: 5px 0;
    line-height: 1.5;
    font-family: 'Lora', serif;
}

.menu-item-year {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    margin-top: 5px;
    font-style: italic;
}

/* ========================================
   DESSERTS SECTION
   ======================================== */

.rmm-menu-desserts {
    text-align: left;
}

.menu-desserts-content {
    padding: 40px 20px;
}

.menu-desserts-main {
    font-size: 1.5em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-desserts-subtitle {
    color: #FFD700;
    font-size: 1.1em;
    font-style: italic;
    font-family: 'Lora', serif;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .rmm-menu-section {
        padding: 15px;
        margin: 20px 0;
    }

    .menu-section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .menu-subsection-title {
        font-size: 1.2em;
        margin: 20px 0 15px 0;
    }

    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .menu-item-title {
        font-size: 1.1em;
    }

    .menu-item-price {
        font-size: 1em;
        margin-top: 5px;
    }

    .menu-desserts-main {
        font-size: 1.2em;
    }

    .menu-desserts-subtitle {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .menu-section-title {
        font-size: 1.3em;
        letter-spacing: 1px;
    }

    .menu-item-title {
        font-size: 1em;
    }

    .menu-item-subtitle,
    .menu-item-description {
        font-size: 0.85em;
    }
}

/* ========================================
   DARK BACKGROUND SUPPORT
   ======================================== */

.rmm-menu-section.light-background {
    color: #333333;
}

.rmm-menu-section.light-background .menu-item-title,
.rmm-menu-section.light-background .menu-item-price,
.rmm-menu-section.light-background .menu-desserts-main {
    color: #333333;
}

.rmm-menu-section.light-background .menu-item {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.rmm-menu-section.light-background .menu-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .rmm-menu-section {
        page-break-inside: avoid;
    }

    .menu-item {
        page-break-inside: avoid;
    }

    .menu-item-price {
        float: right;
    }
}

/* ========================================
   ANIMATION
   ======================================== */

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

.menu-item {
    animation: fadeIn 0.4s ease-out;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.menu-item:focus-within {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.menu-item-title:focus,
.menu-item-price:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
