/**
 * Single Platform Menu Plugin - Frontend Styles
 * Matches the reference HTML exactly
 */

:root {
    --primary-gold: #d4a574;
    --text-primary: #3a3a3a;
    --text-secondary: #6b6b6b;
    --bg-cream: #f8f6f3;
    --bg-white: #ffffff;
    --border-light: #e8e4df;
    --accent-orange: #d87f4a;
    --vegan-green: #4caf50;
    --gluten-gold: #d4a574;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sp-menu-wrapper {
    font-family: 'Lato', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-cream);
    line-height: 1.7;
}

.sp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 1200px) {
    .sp-container {
        max-width: 960px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .sp-container {
        padding: 0 20px;
    }
}

.sp-menu-wrapper header {
    background: var(--bg-white);
    padding: 60px 30px 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.sp-menu-wrapper header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.sp-divider-line {
    width: 100px;
    height: 1px;
    background: var(--primary-gold);
    margin: 0 auto 25px;
}

.sp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.sp-download-btn:hover {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sp-download-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.sp-download-btn:hover i {
    transform: translateY(2px);
}

.sp-menu-navigation {
    background: var(--bg-white);
    padding: 35px 30px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sp-menu-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.sp-menu-button {
    background: transparent;
    border: none;
    padding: 8px 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sp-menu-button::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: all 0.3s ease;
}

.sp-menu-button:hover {
    color: var(--text-primary);
}

.sp-menu-button.active {
    color: var(--text-primary);
    font-weight: 700;
}

.sp-menu-button.active::after {
    width: 100%;
}

.sp-menu-content {
    background: var(--bg-cream);
    padding: 80px 30px 100px;
}

.sp-menu-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.sp-menu-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sp-menu-description-top {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-style: italic;
}

.sp-section {
    margin-bottom: 80px;
}

.sp-section-header {
    text-align: center;
    margin: 0 auto 50px;
    max-width: 800px;
}

.sp-section-icon {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin: 0 auto 20px;
    opacity: 0.8;
    display: block;
}

.sp-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 auto 15px;
    letter-spacing: 1px;
    text-align: center;
}

.sp-section-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-orange);
    margin: 0 auto;
    display: block;
}

.sp-section-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 15px;
    font-style: italic;
    line-height: 1.6;
}

.sp-menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 45px 50px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .sp-menu-items {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 35px 40px;
    }
}

@media (max-width: 900px) {
    .sp-menu-items {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.sp-menu-item {
    padding-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: default;
}

.sp-menu-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-orange);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sp-menu-item:hover {
    transform: translateX(8px);
}

.sp-menu-item:hover::before {
    opacity: 1;
}

.sp-menu-item:hover .sp-item-name {
    color: var(--accent-orange);
}

.sp-menu-item:hover .sp-item-price {
    transform: scale(1.05);
}

.sp-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.sp-item-name {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1 1 auto;
    line-height: 1.4;
    transition: color 0.3s ease;
    min-width: 0;
    word-wrap: break-word;
}

.sp-item-price {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-orange);
    white-space: nowrap;
    flex-shrink: 0;
    flex-basis: auto;
    min-width: fit-content;
    transition: transform 0.3s ease;
    text-align: right;
}

.sp-item-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
    padding-right: 10px;
}

.sp-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.sp-dietary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

.sp-dietary-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.sp-dietary-badge i {
    font-size: 0.8rem;
}

.sp-dietary-badge.gluten-free {
    background: rgba(212, 165, 116, 0.15);
    border-color: rgba(212, 165, 116, 0.4);
    color: #8b6f47;
}

.sp-dietary-badge.gluten-free i {
    color: var(--gluten-gold);
}

.sp-dietary-badge.vegan {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.35);
    color: #2e7d32;
}

.sp-dietary-badge.vegan i {
    color: var(--vegan-green);
}

.sp-dietary-badge.vegetarian {
    background: rgba(139, 195, 74, 0.12);
    border-color: rgba(139, 195, 74, 0.35);
    color: #558b2f;
}

.sp-choice-options {
    margin-top: 12px;
    padding-left: 15px;
    border-left: 2px solid var(--border-light);
}

.sp-choice-item {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.sp-choice-item:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.sp-choice-name {
    font-weight: 600;
    color: var(--text-primary);
}

.sp-choice-price {
    color: var(--accent-orange);
    font-weight: 600;
    white-space: nowrap;
}

.sp-unit-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-left: 4px;
    font-weight: 400;
}

.sp-menu-wrapper footer {
    background: var(--bg-white);
    color: var(--text-secondary);
    padding: 50px 30px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.sp-footnote {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.7;
}

.sp-footer-icon {
    color: var(--primary-gold);
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.sp-empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
}

.sp-empty-state i {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.sp-empty-state p {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .sp-menu-wrapper header h1 {
        font-size: 2.5rem;
    }

    .sp-menu-buttons {
        gap: 20px 15px;
    }

    .sp-menu-button {
        font-size: 0.7rem;
        padding: 6px 0;
    }

    .sp-section-title {
        font-size: 1.8rem;
    }

    .sp-menu-content {
        padding: 50px 20px 70px;
    }
    
    .sp-item-header {
        gap: 15px;
    }
    
    .sp-item-name {
        font-size: 0.95rem;
    }
    
    .sp-item-price {
        font-size: 0.95rem;
    }
    
    /* Mobile readability improvements */
    .sp-item-description {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #4a4a4a;
    }
    
    .sp-item-name {
        font-weight: 600;
        color: #2a2a2a;
    }
    
    .sp-item-price {
        font-weight: 700;
        color: var(--accent-orange);
    }
    
    .sp-section-title {
        color: #2a2a2a;
        font-weight: 500;
    }
    
    .sp-menu-wrapper {
        background: var(--bg-cream);
    }
    
    /* Better contrast for dietary badges */
    .sp-dietary-badge {
        background: var(--accent-orange);
        color: #ffffff;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 3px;
        font-size: 0.75rem;
    }
}

@media print {
    .sp-menu-navigation,
    .sp-download-btn {
        display: none !important;
    }

    .sp-menu-wrapper {
        background: white;
    }

    .sp-menu-section {
        page-break-after: always;
    }
}
