/* 
 * Festival Detail Page - Custom Styling
 * Enhances the UI/UX of festival detail pages with improved visual styling,
 * color variations, and responsive design elements.
 */

:root {
    /* Primary color palette */
    --festival-primary: #3b5998;
    --festival-secondary: #8b9dc3;
    --festival-accent: #ff6b6b;
    --festival-dark: #2c3e50;
    --festival-light: #f8f9fa;
    
    /* Color variations for different sections */
    --timeline-color: #4e54c8;
    --timeline-accent: #8f94fb;
    --calendar-color: #11998e;
    --calendar-accent: #38ef7d;
    --highlights-color: #6a3093;
    --highlights-accent: #a044ff;
    
    /* Neutral colors */
    --festival-gray-100: #f8f9fa;
    --festival-gray-200: #e9ecef;
    --festival-gray-300: #dee2e6;
    --festival-gray-400: #ced4da;
    --festival-gray-500: #adb5bd;
    --festival-gray-600: #6c757d;
    --festival-gray-700: #495057;
    --festival-gray-800: #343a40;
    --festival-gray-900: #212529;
}

/* ======= General Page Styling ======= */
.festival-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--festival-gray-800);
}

.festival-content p {
    margin-bottom: 1.2rem;
}

.festival-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.festival-content li {
    margin-bottom: 0.5rem;
}

/* Section titles */
.festival-section-title {
    position: relative;
    color: var(--festival-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    display: inline-block;
}

.festival-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--festival-accent);
    border-radius: 2px;
}

/* Back to festivals button */
.back-to-festivals {
    display: inline-flex;
    align-items: center;
    color: var(--festival-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--festival-primary);
}

.back-to-festivals:hover {
    background-color: var(--festival-primary);
    color: white;
}

.back-to-festivals i {
    margin-right: 0.5rem;
}

/* Festival status badges */
.festival-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.badge-upcoming {
    background-color: var(--festival-primary);
    color: white;
}

.badge-current {
    background-color: var(--festival-accent);
    color: white;
}

.badge-past {
    background-color: var(--festival-gray-600);
    color: white;
}

/* ======= Video Section ======= */
.festival-video-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background-color: white;
}

.festival-video-card:hover {
    transform: translateY(-5px);
}

.festival-video-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--festival-gray-200);
}

.festival-video-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--festival-dark);
}

.festival-video-description {
    font-size: 0.95rem;
    color: var(--festival-gray-600);
    margin-bottom: 0;
}

.festival-video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.festival-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ======= Timeline Section ======= */
.festival-timeline {
    position: relative;
    padding: 2rem 0;
}

.festival-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--timeline-color), var(--timeline-accent));
    border-radius: 2px;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--timeline-accent);
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(143, 148, 251, 0.3);
    z-index: 10;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: white;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-title {
    color: var(--timeline-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-date {
    color: var(--festival-gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.timeline-description {
    margin-bottom: 1rem;
}

.timeline-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background-color: var(--timeline-accent);
    color: white;
}

.timeline-cta {
    margin-top: 1rem;
}

.timeline-cta .btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 600;
    background-color: var(--timeline-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.timeline-cta .btn:hover {
    background-color: var(--timeline-accent);
    transform: translateY(-2px);
}

/* ======= Calendar Section ======= */
.festival-calendar {
    padding: 1rem 0;
}

.calendar-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--festival-gray-200);
}

.calendar-tab {
    flex: 1;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--festival-gray-700);
    border: none;
    background: none;
}

.calendar-tab.active {
    background-color: var(--calendar-color);
    color: white;
}

.calendar-day-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--calendar-color);
    font-weight: 700;
}

.calendar-event {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.calendar-event::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100px;
    width: 3px;
    background-color: var(--calendar-accent);
    opacity: 0.5;
}

.calendar-event-time {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 1.5rem;
    font-weight: 600;
    color: var(--calendar-color);
    position: relative;
}

.calendar-event-time::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -6.5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--calendar-accent);
    z-index: 1;
}

.calendar-event-content {
    flex-grow: 1;
    background-color: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-left: 1rem;
}

.calendar-event.featured .calendar-event-content {
    border-left: 4px solid var(--festival-accent);
}

.calendar-event-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--calendar-color);
}

.calendar-event-location {
    display: flex;
    align-items: center;
    color: var(--festival-gray-600);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.calendar-event-location i {
    margin-right: 0.5rem;
    color: var(--calendar-accent);
}

.calendar-event-description {
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: var(--festival-gray-700);
}

.calendar-event-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background-color: var(--calendar-accent);
    color: white;
}

.calendar-event-tag.featured {
    background-color: var(--festival-accent);
}

/* ======= Highlights Section ======= */
.festival-highlight-card {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.festival-highlight-card:hover {
    transform: translateY(-5px);
}

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

.festival-highlight-card:hover .festival-highlight-image {
    transform: scale(1.05);
}

.festival-highlight-content {
    padding: 1.5rem;
}

.festival-highlight-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--highlights-color);
}

.festival-highlight-title i {
    margin-right: 0.75rem;
    color: var(--highlights-accent);
}

.festival-highlight-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.festival-highlight-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.festival-highlight-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--highlights-accent);
    font-size: 0.75rem;
}

/* ======= Responsive Styles ======= */
@media (max-width: 991.98px) {
    .festival-timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-marker {
        left: 40px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
    }
}

@media (max-width: 767.98px) {
    .calendar-event::before {
        display: none;
    }
    
    .calendar-event {
        flex-direction: column;
    }
    
    .calendar-event-time {
        width: 100%;
        text-align: left;
        padding-right: 0;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--festival-gray-300);
    }
    
    .calendar-event-time::after {
        display: none;
    }
    
    .calendar-event-content {
        margin-left: 0;
    }
    
    .festival-highlight-card .row {
        flex-direction: column;
    }
    
    .festival-highlight-image-container {
        height: 200px;
        overflow: hidden;
    }
} 