/**
 * Festival Management System - Custom CSS
 */

/* Festival Hero Section */
.festival-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.festival-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.festival-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.festival-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: #fff;
    z-index: 2;
}

/* Festival Cards */
.festival-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.festival-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.festival-card-image {
    height: 200px;
    object-fit: cover;
}

.festival-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Festival Timeline */
.festival-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.festival-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #dee2e6;
}

.festival-timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.festival-timeline-marker {
    position: absolute;
    left: -2.35rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 3px solid white;
}

.festival-timeline-content {
    padding-bottom: 1.5rem;
}

/* Festival Calendar */
.festival-calendar-day {
    margin-bottom: 2rem;
}

.festival-calendar-event {
    display: flex;
    margin-bottom: 1.5rem;
    border-left: 3px solid #dee2e6;
    padding-left: 1.5rem;
    position: relative;
}

.festival-calendar-event::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #6c757d;
}

.festival-calendar-event.featured {
    border-left: 3px solid #fd7e14;
}

.festival-calendar-event.featured::before {
    background-color: #fd7e14;
}

.festival-calendar-time {
    width: 120px;
    flex-shrink: 0;
    padding-right: 1rem;
    font-weight: 500;
}

.festival-calendar-content {
    flex-grow: 1;
}

/* Festival Gallery */
.festival-gallery {
    margin: 2rem 0;
}

.festival-gallery-item {
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
}

.festival-gallery-image {
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.festival-gallery-item:hover .festival-gallery-image {
    transform: scale(1.05);
}

.festival-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.festival-gallery-item:hover .festival-gallery-caption {
    opacity: 1;
}

/* Festival Highlight Sections */
.festival-highlight-section {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 0.5rem;
}

.festival-highlight-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Festival Content */
.festival-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

/* Festival Video Gallery */
.festival-video-item {
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.festival-video-item:hover {
    transform: translateY(-3px);
}

.festival-video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
}

.festival-video-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.festival-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 2rem;
    padding: 1rem;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.festival-video-item:hover .festival-video-play {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .festival-hero {
        height: 400px;
    }
    
    .festival-calendar-event {
        flex-direction: column;
    }
    
    .festival-calendar-time {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .festival-hero {
        height: 300px;
    }
}