/* Custom Styles for The Baccarat Hotel */

/* Glass Morphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .glass-card {
        min-height: 320px;
    }
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

.glass-btn {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.8), rgba(217, 119, 6, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.3);
}

.glass-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 1), rgba(217, 119, 6, 1));
    box-shadow: 0 15px 35px -5px rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

/* Header Styles */
#header {
    background: rgba(30, 42, 74, 0.5);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header.scrolled {
    background: rgba(30, 42, 74, 0.95);
    backdrop-filter: blur(30px);
}

/* Hero Section */
.hero-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Styles */
.dining-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: #fbbf24 !important;
    transform: scale(1.2);
}

/* WhatsApp Button */
.whatsapp-btn {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Masonry Grid */
.masonry-grid img {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.masonry-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Styles */
.dark .glass-card {
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-card:hover {
    background: rgba(31, 41, 55, 0.98);
}

/* Ensure proper spacing and layout */
.container {
    max-width: 1200px;
}

/* Fix potential grid issues */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Ensure images don't break layout */
.glass-card img,
.glass-card [style*="background-image"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .glass-card {
        border-radius: 16px;
    }
    
    .masonry-grid {
        columns: 1;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Luxury Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.025em;
}

/* Elegant Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus States */
button:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    ring: 2px;
    ring-color: #fbbf24;
    ring-opacity: 0.5;
}

/* Luxury Shadows */
.luxury-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.luxury-shadow-lg {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}