/* event-details.css - Styles for the Festival Schedule & Lineup page */

/* Festival Tabs Navigation */
.festival-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-bg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: var(--primary);
    background-color: rgba(77, 140, 87, 0.05);
}

.tab-button.active {
    color: var(--primary);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent);
}

.tab-button i {
    font-size: 1.2rem;
}

/* Tab Content Container */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.tab-header h2 {
    margin: 0;
    color: var(--primary-dark);
}

/* Exhibitors Section */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-filter {
    padding: 8px 15px;
    border: 2px solid var(--light-bg);
    border-radius: 25px;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.category-filter:focus {
    outline: none;
    border-color: var(--primary);
}

.exhibitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.exhibitor-card {
    background-color: var(--white);
    border: 1px solid var(--light-bg);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.exhibitor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.exhibitor-card.coming-soon {
    background-color: rgba(77, 140, 87, 0.05);
    border: 2px dashed var(--primary);
    opacity: 0.7;
}

.booth-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.exhibitor-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.exhibitor-card p {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.5;
}

.exhibitor-website {
    margin-top: 10px;
}

.exhibitor-website a {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.exhibitor-website a:hover {
    color: var(--accent);
}

.category-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-education {
    background-color: #e3f2fd;
    color: #1565c0;
}

.category-art_sustainable {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.category-food {
    background-color: #fce4ec;
    color: #c2185b;
}

/* Performers Section */
.stage-info {
    color: var(--light-text);
    font-size: 1.1rem;
    margin: 0;
}

.performers-timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

.performers-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary);
}

.performer-slot {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.time {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.time-marker {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    text-align: right;
    padding-right: 15px;
}

.timeline-dot {
    position: absolute;
    right: -6px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-dot {
    display: none;
}

.performer-info {
    flex: 1;
    background-color: rgba(77, 140, 87, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.performer-info h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.performer-info p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.calendar-add {
    font-size: 0.9rem;
}

/* Schedule Section */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--light-bg);
    position: relative;
    overflow: hidden;
}

.schedule-time {
    font-weight: bold;
    color: var(--primary-dark);
    min-width: 90px;
    font-size: 1.1rem;
}

.schedule-details {
    flex: 1;
}

.schedule-details h4 {
    margin: 0 0 5px 0;
    color: var(--primary-dark);
}

.schedule-details p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

.activity-type-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}

.type-main .activity-type-indicator {
    background-color: var(--primary);
}

.type-performance .activity-type-indicator {
    background-color: var(--accent);
}

.type-workshop .activity-type-indicator {
    background-color: #4caf50;
}

.type-kids .activity-type-indicator {
    background-color: #ff9800;
}

.type-special .activity-type-indicator {
    background-color: #9c27b0;
}

.type-setup .activity-type-indicator {
    background-color: #607d8b;
}

/* Schedule Legend */
.schedule-legend {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.schedule-legend h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.type-main {
    background-color: var(--primary);
}

.legend-dot.type-performance {
    background-color: var(--accent);
}

.legend-dot.type-workshop {
    background-color: #4caf50;
}

.legend-dot.type-kids {
    background-color: #ff9800;
}

.legend-dot.type-special {
    background-color: #9c27b0;
}

/* Event Details Page Shuttle Card */
.shuttle-info-card {
    background-color: #fff8e1;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #ffc947;
}

.shuttle-card-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.shuttle-large-icon {
    font-size: 3rem;
    color: #ff8f00;
    margin-bottom: 15px;
}

.shuttle-card-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.shuttle-card-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.shuttle-sponsor-large {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Hoedown Info Styles */
.hoedown-info {
    margin: 25px auto;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hoedown-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    text-align: center;
}

.hoedown-link:hover {
    transform: translateY(-2px);
}

.hoedown-logo {
    width: auto;
    height: 120px;  /* Fixed height, width adjusts to aspect ratio */
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hoedown-details {
    text-align: center;
}

.hoedown-details h4 {
    color: var(--primary-dark);
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.hoedown-details p {
    margin: 0 0 12px 0;
    color: var(--text);
    font-size: 1.1rem;
}

.btn-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--primary);
}

.btn-link i {
    font-size: 0.9rem;
}

/* Call to Action Section */
.event-cta {
    background-color: var(--primary);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0;
}

.event-cta h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.event-cta p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.event-cta .btn {
    background-color: white;
    color: var(--primary);
}

.event-cta .btn:hover {
    background-color: var(--accent);
    color: white;
}

.event-cta .btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.event-cta .btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

/* Print Styles */
@media print {
    .festival-tabs,
    .filter-controls,
    .calendar-add,
    .event-cta,
    .header,
    .footer {
        display: none !important;
    }
    
    .tab-pane {
        display: block !important;
        page-break-after: always;
    }
    
    .schedule-item {
        break-inside: avoid;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .festival-tabs {
        justify-content: flex-start;
    }
    
    .tab-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .exhibitors-grid {
        grid-template-columns: 1fr;
    }
    
    .performer-slot {
        flex-direction: column;
        gap: 10px;
    }
    
    .time-marker {
        width: auto;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .timeline-dot {
        position: relative;
        left: 0;
        top: 0;
    }
    
    .performers-timeline {
        padding-left: 0;
    }
    
    .performers-timeline::before {
        display: none;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide non-active exhibitors when filtered */
.exhibitor-card.hidden {
    display: none;
}