/* ==========================================================================
   Menu Page Styles - Chai & Chutney Street Food
   Vibrant and colorful styling for Indian street food theme
   ========================================================================== */

/* Page Header Styles */
.page-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--charcoal) 100%);
}

.page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, 
        var(--rich-black) 0%, 
        var(--soft-black) 30%,
        var(--charcoal) 60%, 
        var(--rich-black) 100%);
    background-image: 
        radial-gradient(circle at 20% 30%, #ff6b35 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, #f7931e 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, var(--gold-primary) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, #e74c3c 0%, transparent 50%);
    opacity: 0.15;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white-pure);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white-pure) 0%, var(--gold-light) 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), #ff6b35, var(--gold-primary));
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gold-light);
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ==========================================================================
   Menu Categories Filter
   ========================================================================== */

.menu-categories {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--rich-black) 100%);
    position: relative;
}

.menu-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.category-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left var(--transition-slow);
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--gold-primary), #ff6b35);
    border-color: var(--gold-primary);
    color: var(--primary-black);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.category-btn.active::before {
    display: none;
}

/* ==========================================================================
   Menu Section
   ========================================================================== */

.menu-section {
    padding: 100px 0;
    background: var(--primary-black);
    position: relative;
}

.menu-category {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.menu-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.category-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.category-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), #ff6b35, var(--gold-primary));
    margin: 1rem auto 2rem auto;
    border-radius: 2px;
    position: relative;
}

.category-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.menu-item-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(35, 35, 35, 0.95));
    border-radius: var(--border-radius-large);
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.menu-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), #ff6b35, var(--gold-primary));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.menu-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.menu-item-card:hover::before {
    opacity: 1;
}

.menu-item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--charcoal), var(--dark-gray));
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    filter: saturate(1.1) contrast(1.05);
}

.menu-item-card:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.menu-item-card:hover .menu-item-overlay {
    opacity: 1;
}

.view-details-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-primary), #ff6b35);
    color: var(--primary-black);
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #ff6b35, var(--gold-accent));
}

.menu-item-info {
    padding: 1.5rem;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.menu-item-header h3 {
    color: var(--white-pure);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

.price {
    color: var(--gold-primary);
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-primary);
    white-space: nowrap;
    text-shadow: 
        0 0 15px rgba(212, 175, 55, 0.6),
        0 0 25px rgba(212, 175, 55, 0.3);
    filter: brightness(1.2);
}

.menu-item-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 1;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.menu-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.15);
    color: rgba(255, 215, 120, 1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.tag:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

/* ==========================================================================
   Combo Meals Section
   ========================================================================== */

.combo-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.combo-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.9));
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.combo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), #ff6b35, #e74c3c, var(--gold-primary));
    transform: scaleX(0);
    transition: transform var(--transition-medium);
    transform-origin: left;
}

.combo-card:hover::before {
    transform: scaleX(1);
}

.combo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.combo-header h3 {
    color: var(--white-pure);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.combo-price {
    color: var(--gold-primary);
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-primary);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.combo-items ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.combo-items li {
    color: var(--white-soft);
    font-size: 1rem;
    line-height: 1.8;
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.combo-items li:last-child {
    border-bottom: none;
}

.combo-items li::before {
    content: '🍽️';
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 1rem;
}

.combo-savings {
    text-align: center;
    margin-top: 1rem;
}

.combo-savings span {
    background: linear-gradient(135deg, #e74c3c, #ff6b35);
    color: var(--white-pure);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==========================================================================
   Menu CTA Section
   ========================================================================== */

.menu-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--charcoal) 50%, var(--rich-black) 100%);
    position: relative;
    text-align: center;
}

.menu-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white-pure);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white-pure) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--white-soft);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==========================================================================
   Menu Page Background Animations
   ========================================================================== */

/* Menu Grid Subtle Mesh Animation */
.menu-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(212, 175, 55, 0.015) 1px, transparent 1px),
        linear-gradient(rgba(255, 107, 53, 0.01) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: meshFlow 45s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes meshFlow {
    0% {
        background-position: 0px 0px;
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        background-position: 100px 100px;
        opacity: 0.3;
    }
}

/* Menu Categories Ambient Glow */
.menu-categories::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(212, 175, 55, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 107, 53, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 20%, rgba(231, 76, 60, 0.025) 0%, transparent 65%);
    animation: categoryGlow 28s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes categoryGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.9;
    }
    66% {
        transform: scale(0.95) rotate(-1deg);
        opacity: 0.8;
    }
}

/* Menu Items Floating Elements */
.menu-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.06) 1px, transparent 2px),
        radial-gradient(circle at 85% 75%, rgba(255, 107, 53, 0.04) 1.5px, transparent 2.5px),
        radial-gradient(circle at 50% 10%, rgba(231, 76, 60, 0.03) 1px, transparent 2px),
        radial-gradient(circle at 25% 90%, rgba(212, 175, 55, 0.05) 2px, transparent 3px);
    background-size: 150px 150px, 200px 200px, 180px 180px, 160px 160px;
    animation: menuItemsFloat 32s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes menuItemsFloat {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 0%, 0% 100%;
        transform: translateY(0px);
    }
    25% {
        background-position: 25% 25%, 75% 75%, 75% 25%, 25% 75%;
        transform: translateY(-10px);
    }
    50% {
        background-position: 50% 50%, 50% 50%, 100% 50%, 50% 50%;
        transform: translateY(5px);
    }
    75% {
        background-position: 75% 75%, 25% 25%, 25% 75%, 75% 25%;
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .combo-menu {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        gap: 0.75rem;
    }
    
    .category-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 50vh;
        min-height: 300px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .menu-categories {
        padding: 40px 0;
    }
    
    .menu-section {
        padding: 60px 0;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-btn {
        width: 200px;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .price {
        align-self: flex-end;
    }
    
    .combo-card {
        padding: 1.5rem;
    }
    
    .combo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .combo-price {
        font-size: 1.5rem;
    }
    
    .menu-cta {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .menu-item-card {
        margin: 0 10px;
    }
    
    .menu-item-info {
        padding: 1rem;
    }
    
    .combo-card {
        padding: 1rem;
    }
    
    .combo-items li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
    
    .category-btn {
        width: 180px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation {
    transition-delay: var(--stagger-delay, 0s);
}

/* Loading shimmer effect for images */
.menu-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 1s ease-in-out;
    z-index: 1;
}

.menu-item-image.loading::before {
    left: 100%;
}

/* Special effects for spicy items */
.tag.spicy {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    border-color: rgba(231, 76, 60, 0.5);
    animation: spicyGlow 2s ease-in-out infinite alternate;
}

@keyframes spicyGlow {
    from { box-shadow: 0 0 5px rgba(231, 76, 60, 0.3); }
    to { box-shadow: 0 0 15px rgba(231, 76, 60, 0.6); }
}
