/* ===== UJJAIN SPIRITUAL JOURNEYS - MAIN STYLES ===== */

/* Base Resets & Utilities */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fdf8f3;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.text-gradient {
    background: linear-gradient(135deg, #c94b1c 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero & Parallax */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(30,58,95,0.9) 0%, rgba(201,75,28,0.8) 100%);
}

/* Cards & Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.3s; }

/* Gallery Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* Temple Info Cards */
.temple-info-card {
    border-left: 4px solid #c94b1c;
    background: linear-gradient(135deg, #fff 0%, #fdf8f3 100%);
}

/* Aarti Schedule Table */
.aarti-schedule {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.aarti-schedule th,
.aarti-schedule td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.aarti-schedule th {
    background: #1e3a5f;
    color: white;
    font-weight: 600;
}

.aarti-schedule tr:hover {
    background: #f3f4f6;
}

/* Image Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px 16px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(135deg, rgba(30,58,95,0.95) 0%, rgba(201,75,28,0.9) 100%);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .aarti-schedule {
        font-size: 0.9rem;
    }
    
    .aarti-schedule th,
    .aarti-schedule td {
        padding: 10px 12px;
    }
}

/* Print Styles for Darshan Tickets */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card-hover {
        box-shadow: none !important;
        transform: none !important;
    }
}