/* 
    Custom Styles for Radhe Radhe Restaurant
    Most styling is handled by TailwindCSS utilities. 
    This file is for custom overrides, animations, and root variables.
*/

:root {
    --color-green-primary: #629b39;
    --color-green-dark: #184a2e;
}

/* Smooth Scrolling Behavior handled by HTML class 'scroll-smooth' */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Hero Background Slideshow */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 0.45;
}

/* Utility Animations */
.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

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

/* Menu Card Hover Effects */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.dark .menu-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Image Hover Zoom */
.img-zoom-container {
    overflow: hidden;
}
.img-zoom-container img {
    transition: transform 0.5s ease;
}
.img-zoom-container:hover img {
    transform: scale(1.1);
}

/* Veg Badge */
.veg-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--color-green-primary);
    background-color: white;
}
.veg-badge::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-green-primary);
    border-radius: 50%;
}

/* Gallery Hover Overlay */
.gallery-item {
    overflow: hidden;
    position: relative;
}
.gallery-overlay {
    opacity: 0;
    transition: all 0.3s ease;
    background-color: rgba(24, 74, 46, 0.4); /* green-dark with opacity */
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Hide scrollbar structure on body when lightbox opens */
body.lightbox-open {
    overflow: hidden;
}

/* Header Transparent State Text Colors */
.is-transparent .container .nav-link,
.is-transparent .container .font-heading,
.is-transparent .container i:not(.text-yellow-400) {
    color: white !important;
}

.is-transparent #mobile-menu-btn {
    color: white !important;
}

/* Ensure the text segments in the logo/brand are also white when transparent */
.is-transparent .container .font-heading span {
    color: white !important;
}

/* Theme Toggle Premium Look */
#theme-toggle {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.is-transparent #theme-toggle {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.is-transparent #theme-toggle:hover {
    background-color: var(--color-green-primary) !important;
    border-color: var(--color-green-primary);
}
