/* Menu Page Specific Styles */

/* Breadcrumb */
.breadcrumb {
    padding: 6rem 0 1rem;
    background: var(--cream);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav i {
    width: 1rem;
    height: 1rem;
    color: var(--text-light);
}

.breadcrumb-nav span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Page Header */
.page-header {
    padding: 2rem 0 3rem;
    background: var(--cream);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;
    }
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Menu Categories */
.menu-categories {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 4rem;
    z-index: 100;
}

@media (min-width: 1024px) {
    .menu-categories {
        top: 5rem;
    }
}

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

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

.category-tab {
    background: var(--cream);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab:hover {
    background: var(--cream-dark);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

/* Menu Section */
.menu-section {
    padding: 3rem 0;
    background: white;
}

.menu-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

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

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

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

/* Menu Item Card */
.menu-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.menu-item-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.05);
}

.menu-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge-new {
    background: var(--primary-color);
}

.badge-favorite {
    background: var(--accent-color);
}

.badge-spicy {
    background: #ef4444;
}

.badge-vegetarian {
    background: #10b981;
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.menu-item-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.menu-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    margin-left: 1rem;
}

.menu-item-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.menu-item-category {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--cream);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: capitalize;
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.add-to-cart-btn i {
    width: 1rem;
    height: 1rem;
}

/* Loading State */
.menu-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.menu-item.loading {
    background: #f8f9fa;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 640px) {
    .page-title {
        font-size: 2rem;
    }
    
    .category-tabs {
        padding: 0 1rem;
        margin: 0 -1rem;
    }
    
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .menu-item-price {
        margin-left: 0;
    }
    
    .menu-item-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for menu items */
.menu-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }
.menu-item:nth-child(7) { animation-delay: 0.7s; }
.menu-item:nth-child(8) { animation-delay: 0.8s; }

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

/* Filter transition */
.menu-item.filtering {
    transition: all 0.3s ease;
}

.menu-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}