/* Menu Page Styles */

/* Filters Section */
.filters-section {
    margin-bottom: 24px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    padding: 8px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--gradient);
    border-color: var(--accent-primary);
    color: white;
}

.filter-options {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Menu Categories */
.menu-categories {
    margin-bottom: 24px;
}

.category-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 10px 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--gradient);
    border-color: var(--accent-primary);
    color: white;
}

/* Menu Grid */
.menu-section {
    margin-bottom: 32px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.menu-item {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.menu-item-content {
    display: flex;
    gap: 12px;
    padding: 16px;
}

.menu-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.menu-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.veg-indicator {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 2px;
}

.veg-indicator.veg {
    background-color: var(--success);
}

.veg-indicator.non-veg {
    background-color: var(--error);
}

.menu-item-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.menu-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
}

.menu-item-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.rating-star {
    color: #ffc107;
    font-size: 12px;
}

.menu-add-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.menu-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.3);
}

.menu-add-btn:active {
    transform: translateY(0);
}

.menu-add-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    background: var(--gradient);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-display {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gradient);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Search Container Toggle */
.search-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
}

.search-container.show {
    max-height: 80px;
    margin-bottom: 20px;
}

/* Loading Skeleton for Menu */
.skeleton-menu-item {
    display: flex;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    gap: 12px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-menu-item .skeleton-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
}

.skeleton-menu-item .skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-results h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 18px;
}

.no-results p {
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-item-content {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-item-image {
        width: 100%;
        height: 120px;
        margin-bottom: 8px;
    }
    
    .menu-item-header {
        justify-content: center;
        text-align: center;
    }
    
    .menu-item-footer {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.menu-item:nth-child(even) {
    animation-delay: 0.1s;
}

.menu-item:nth-child(3n) {
    animation-delay: 0.2s;
}