/* ========================================
   MENU PAGE CUSTOM STYLES
   ======================================== */

/* Menu Hero Section - Enhanced text styling */
.menu-hero-section .wp-block-cover__inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.menu-hero-title {
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(196, 30, 58, 0.5);
    animation: fadeInDown 1s ease-out;
}

.menu-hero-subtitle {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Menu Item Cards - Stunning design */
.menu-item-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(196,30,58,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: 100% 100%, 100px 100px;
    cursor: pointer;
}

.menu-item-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(196, 30, 58, 0.25),
                0 0 0 1px rgba(196, 30, 58, 0.1);
    border-color: rgba(196, 30, 58, 0.3) !important;
}

/* Hide hover text by default */
.menu-hover-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.95), rgba(140, 20, 40, 0.95));
    color: white !important;
    padding: 30px;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 11px;
    margin: 0 !important;
}

.menu-item-card:hover .menu-hover-text {
    opacity: 1;
}

/* Hide regular content on hover */
.menu-item-card:hover h3,
.menu-item-card:hover p:not(.menu-hover-text) {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Menu items grid animation */
.menu-items-grid .wp-block-column {
    animation: fadeInUp 0.6s ease-out both;
}

.menu-items-grid .wp-block-column:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-items-grid .wp-block-column:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-items-grid .wp-block-column:nth-child(3) {
    animation-delay: 0.3s;
}

/* ========================================
   GALLERY PAGE CUSTOM STYLES
   ======================================== */

/* Gallery Hero Section */
.gallery-hero-section {
    position: relative;
}

.gallery-hero-title {
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.9), 
                 0 0 30px rgba(196, 30, 58, 0.6);
    animation: zoomIn 1s ease-out;
}

.gallery-hero-subtitle {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Stunning Gallery Grid */
.stunning-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
    padding: 0 !important;
}

.stunning-gallery-grid .wp-block-image {
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stunning-gallery-grid .wp-block-image:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(196, 30, 58, 0.3);
    z-index: 10;
}

/* Gallery Image Effects */
.stunning-gallery-grid .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
    max-height: 400px;
    transition: transform 0.6s ease, filter 0.4s ease;
    display: block;
}

.stunning-gallery-grid .wp-block-image:hover img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Gallery Caption Overlay */
.gallery-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
    color: white !important;
    padding: 25px 20px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    margin: 0 !important;
}

.stunning-gallery-grid .wp-block-image:hover .gallery-caption-overlay {
    transform: translateY(0);
}

/* Staggered Animation for Gallery Items */
.gallery-item-animated {
    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
}

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

/* Gallery Section Headings */
.gallery-section-food h2,
.gallery-section-restaurant h2,
.gallery-section-moments h2,
.gallery-section-behind h2 {
    position: relative;
    padding-bottom: 15px;
}

.gallery-section-food h2:after,
.gallery-section-restaurant h2:after,
.gallery-section-moments h2:after,
.gallery-section-behind h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #C41E3A, transparent);
    border-radius: 2px;
}

/* Masonry-style layout for larger screens */
@media (min-width: 768px) {
    .stunning-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    }
    
    /* Create masonry effect with varying heights */
    .stunning-gallery-grid .wp-block-image:nth-child(3n+1) img {
        min-height: 320px;
    }
    
    .stunning-gallery-grid .wp-block-image:nth-child(3n+2) img {
        min-height: 380px;
    }
    
    .stunning-gallery-grid .wp-block-image:nth-child(3n+3) img {
        min-height: 280px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .menu-hero-title {
        font-size: 2.5rem !important;
    }
    
    .gallery-hero-title {
        font-size: 3rem !important;
    }
    
    .stunning-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .menu-item-card {
        margin-bottom: 15px;
    }
}

/* ========================================
   LIGHTBOX ENHANCEMENT
   ======================================== */

.gallery-with-lightbox .wp-block-image a {
    position: relative;
    display: block;
}

.gallery-with-lightbox .wp-block-image a:before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: white;
    z-index: 5;
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.gallery-with-lightbox .wp-block-image:hover a:before {
    transform: translate(-50%, -50%) scale(1);
}

/* ========================================
   ACCESSIBILITY & POLISH
   ======================================== */

.menu-item-card:focus,
.stunning-gallery-grid .wp-block-image:focus {
    outline: 3px solid #C41E3A;
    outline-offset: 3px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .menu-hover-text,
    .gallery-caption-overlay {
        display: none !important;
    }
    
    .menu-item-card,
    .stunning-gallery-grid .wp-block-image {
        box-shadow: none !important;
        break-inside: avoid;
    }
}
