/**
 * DasHouse Dynamic Menu Styles
 * Modern, responsive styling for the interactive menu system
 */

/* Menu Controls Section */
.menu-controls {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 3rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.menu-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('demos/burger/images/others/section-2.jpg') center center no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.menu-controls .container {
    position: relative;
    z-index: 2;
}

.menu-controls h2 {
    color: #FBAF32;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.menu-controls .subtitle {
    color: #ffffff;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search and Filter Controls */
.menu-filters {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-container input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 175, 50, 0.3);
    transform: translateY(-2px);
}

.search-container::before {
    content: '🔍';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 2;
}

/* Category Filter Buttons */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.category-filter {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(251, 175, 50, 0.3);
    background: rgba(251, 175, 50, 0.1);
    color: #FBAF32;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.category-filter:hover,
.category-filter.active {
    background: #FBAF32;
    color: #1a1a1a;
    border-color: #FBAF32;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 175, 50, 0.3);
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sort-controls label {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.sort-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-controls select:focus {
    outline: none;
    border-color: #FBAF32;
    box-shadow: 0 0 0 2px rgba(251, 175, 50, 0.2);
}

.sort-controls option {
    background: #2d2d2d;
    color: #ffffff;
}

/* Menu Results Info */
.menu-results {
    text-align: center;
    color: #ffffff;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.menu-results .count {
    color: #FBAF32;
    font-weight: 700;
}

/* Loading and Error States */
#menu-loading,
#menu-error {
    text-align: center;
    padding: 3rem;
    color: #ffffff;
}

#menu-loading {
    display: none;
}

#menu-loading::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(251, 175, 50, 0.3);
    border-top: 4px solid #FBAF32;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#menu-error {
    display: none;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Enhanced Menu Items */
.price-menu-warp {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.price-menu-warp:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 175, 50, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FBAF32;
    flex: 1;
}

.price-dots {
    flex: 1;
    margin: 0 1rem;
}

.separator-dots {
    display: block;
    height: 2px;
    background: linear-gradient(to right, transparent, #FBAF32, transparent);
    border-radius: 1px;
}

.price-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #FBAF32, #ff9500);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    min-width: 80px;
    text-align: center;
}

.price-desc {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* Dietary Badges */
.dietary-badges {
    margin-top: 0.5rem;
}

.dietary-badges .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #007bff, #6610f2) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #1a1a1a !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-controls h2 {
        font-size: 2rem;
    }
    
    .menu-filters {
        padding: 1.5rem;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .category-filter {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .sort-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .price-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .price-dots {
        display: none;
    }
    
    .price-price {
        align-self: flex-end;
    }
}

/* Animation Enhancements */
.price-menu-warp {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Hover effects for better UX */
.category-filter:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 175, 50, 0.4);
}

.search-container input:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
