/* 
 * Spice Village Menu Plugin Styles
 * Authentic Indian Restaurant Menu Design
 */

/* Reset and base styles */
.spice-village-menu {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.spice-village-menu * {
    box-sizing: border-box;
}

/* Menu Container */
.svm-menu-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 20px;
    background: linear-gradient(145deg, #faf8f1 0%, #f5f2e8 100%);
    border: 12px solid #d4b896;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

.svm-menu-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px dotted #8b4513;
    border-radius: 15px;
    pointer-events: none;
}

/* Menu Header */
.svm-menu-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.svm-menu-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.svm-menu-title {
    font-family: 'Crimson Text', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #8b4513;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

/* Section Styles */
.svm-section-title {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #8b4513;
    text-align: center;
    margin: 40px 0 15px 0;
    position: relative;
}

.svm-section-title::before,
.svm-section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 2px;
    background: #8b4513;
}

.svm-section-title::before {
    left: -100px;
}

.svm-section-title::after {
    right: -100px;
}

.svm-section-subtitle {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Menu Items Grid */
.svm-menu-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.svm-menu-item {
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

.svm-menu-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.svm-menu-item.featured {
    border: 2px solid #8b4513;
    background: rgba(255, 248, 220, 0.8);
}

.svm-item-name {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #8b4513;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    text-align: left;
    justify-content: flex-start;
    width: 100%;
}

.svm-spice-indicator {
    font-size: 1rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
    order: -1;
}

.svm-item-description {
    color: #444;
    line-height: 1.4;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Dietary Icons */
.svm-dietary-icons {
    display: flex;
    gap: 4px;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.svm-dietary-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.svm-icon-vegetarian {
    background: #4CAF50;
}

.svm-icon-vegan {
    background: #2E7D32;
}

.svm-icon-gluten-free {
    background: #FF9800;
}

.svm-icon-kids {
    background: #E91E63;
}

.svm-spice-indicator {
    color: #FF5722;
    font-size: 14px;
    margin-left: auto;
}

/* Add-on and protein options */
.svm-add-on-note {
    font-style: italic;
    color: #8b4513;
    font-size: 0.85rem;
    margin-top: 3px;
}

.svm-protein-options {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Single column sections */
.svm-single-column .svm-menu-items-grid {
    grid-template-columns: 1fr;
}

.svm-two-column-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.svm-side-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.svm-side-item {
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.svm-side-item-name {
    font-weight: 600;
    color: #8b4513;
    margin-bottom: 5px;
}

/* Menu Legend */
.svm-menu-legend {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.svm-legend-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8b4513;
    text-align: center;
    margin-bottom: 15px;
}

.svm-legend-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.svm-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

/* Service Note */
.svm-service-note {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin: 20px 0;
    line-height: 1.4;
    font-weight: 500;
}

.svm-page-number {
    text-align: center;
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b4513;
    margin-top: 30px;
}

/* WordPress specific adjustments */
.spice-village-menu h1,
.spice-village-menu h2,
.spice-village-menu h3,
.spice-village-menu h4,
.spice-village-menu h5,
.spice-village-menu h6 {
    margin-top: 0;
}

.spice-village-menu p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .svm-menu-container {
        margin: 20px;
        padding: 20px;
        border-width: 6px;
    }
    
    .svm-menu-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .svm-section-title {
        font-size: 1.5rem;
    }
    
    .svm-section-title::before,
    .svm-section-title::after {
        display: none;
    }
    
    .svm-menu-items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .svm-two-column-items {
        grid-template-columns: 1fr;
    }
    
    .svm-side-items {
        grid-template-columns: 1fr 1fr;
    }
    
    .svm-legend-items {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .svm-menu-container {
        margin: 10px;
        padding: 15px;
        border-width: 4px;
    }
    
    .svm-menu-title {
        font-size: 2rem;
    }
    
    .svm-section-title {
        font-size: 1.3rem;
    }
    
    .svm-side-items {
        grid-template-columns: 1fr;
    }
}

/* Menu Filters */
.svm-menu-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.svm-filter-btn {
    background: white;
    border: 2px solid #8b4513;
    color: #8b4513;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.svm-filter-btn:hover,
.svm-filter-btn.active {
    background: #8b4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.svm-menu-section {
    display: block;
}

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

/* Theme compatibility */
.spice-village-menu .entry-content {
    max-width: none;
}

.spice-village-menu .wp-block-group__inner-container {
    max-width: none;
}

/* Print styles */
@media print {
    .svm-menu-container {
        border: 2px solid #8b4513;
        box-shadow: none;
        background: white;
    }
    
    .svm-menu-container::before {
        border: 1px dotted #8b4513;
    }
    
    .svm-menu-item:hover {
        transform: none;
        box-shadow: none;
    }
}

