/* Custom Font */
* {
    font-family: 'Poppins', sans-serif;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, #10B981, #094A25, #065F46);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Button Effect */
.glow-button {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    }
}

/* Leaflet Light Mode */
.leaflet-container {
    background: #ffffff;
}

/* Custom Popup Styling */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #1f2937;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 14px;
}

/* Custom Marker Styling */
.custom-marker {
    background: linear-gradient(135deg, #10B981, #094A25);
    border-radius: 50%;
    border: 3px solid white;
}

/* Star Marker Styling */
.custom-star-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glowing Animation for On-going Events */
.star-glow {
    animation: star-pulse 1.5s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.8)) drop-shadow(0 0 32px rgba(16, 185, 129, 0.6));
        transform: scale(1.1);
    }
}

/* Stall Grid Styling */
.stall {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stall.available {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #22c55e;
    color: #22c55e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stall.available:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.stall.booked {
    background: #ef4444;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.stall.booked::after {
    content: '×';
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
}

/* Modal Animation */
#booking-modal.show {
    display: flex;
}

#booking-modal.show #modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Gallery Item Hover Effect */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

/* Logo Animation */
#logo-image.animate {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: all 0.8s ease-out;
}

#logo-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Toast Animation */
@keyframes slide-up {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#toast.show {
    animation: slide-up 0.3s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #10B981, #094A25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #34D399, #065F46);
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 105s linear infinite;
    animation-delay: 0s;
}

/* Logo Marquee Animation */
@keyframes marquee-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee-logos {
    animation: marquee-logos 30s linear infinite;
}
