/* Event Detail View Styles */

.event-detail-container {
    width: 100%;
    padding: 180px 0 calc(var(--plyr-height, 64px) + 60px) 0; /* Extra padding-bottom für Player */
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    /* KEIN position: relative und KEIN transform, damit kein neuer stacking context erstellt wird */
    /* Der Player mit position: fixed muss darüber schweben können */
}

.event-detail-container.active {
    opacity: 1;
}

.event-detail-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 auto;
    position: relative;
}

/* Schließen-Button */
.event-detail-close {
    position: absolute;
    top: -40px;
    right: 100px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(220, 0, 0, 0.9);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.event-detail-close:hover {
    background: rgb(220, 0, 0);
    transform: rotate(90deg);
}

/* Header mit Flyer und Info */
.event-detail-header {
    display: grid;
    grid-template-columns: auto 1fr 400px;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* Datum-Sektion mit Zurück-Pfeil */
.event-detail-date-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Zurück-Button */
.event-detail-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(220, 0, 0, 0.1);
    color: #dc0000;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.event-detail-back:hover {
    background: rgba(220, 0, 0, 0.2);
    transform: translateX(-3px);
}

.event-detail-back svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .event-detail-content {
        padding: 0 20px;
    }
    
    .event-detail-close {
        right: 20px;
    }

    .event-detail-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .event-detail-date-section {
        flex-direction: row;
        gap: 20px;
    }
}

.event-detail-flyer {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

/* Blurred background layer - full image */
.event-detail-flyer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--flyer-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(40px) brightness(0.7);
    transform: scale(1.2);
    z-index: 1;
}

/* Sharp flyer image on top */
.event-detail-flyer img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.event-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Datum */
.event-detail-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc0000 0%, #990000 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(220, 0, 0, 0.3);
    min-width: 80px;
}

.event-detail-date-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.event-detail-date-month {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-detail-time-text {
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
    opacity: 0.9;
    color: white;
}

/* Titel */
.event-detail-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .event-detail-title {
        font-size: 32px;
    }
}

/* Meta Information (Date, Time, Location) */
.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.event-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

.event-detail-meta-item svg {
    color: #dc0000;
    flex-shrink: 0;
}

.event-detail-meta-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-detail-meta-item a:hover {
    color: #dc0000;
    text-decoration: underline;
}

/* Kompakte Band-Liste unter Titel */
.event-detail-lineup-compact {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(220, 0, 0, 0.1);
    flex-wrap: wrap;
}

.event-detail-lineup-compact svg {
    color: #dc0000;
    flex-shrink: 0;
    margin-top: 2px;
}

.event-detail-lineup-compact a {
    white-space: nowrap;
}

.event-detail-lineup-compact a:hover {
    color: #dc0000 !important;
    text-decoration: underline !important;
}

/* Beschreibung */
.event-detail-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Location & Time */
.event-detail-location,
.event-detail-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #333;
}

.event-detail-location svg,
.event-detail-time svg {
    color: #dc0000;
    flex-shrink: 0;
}

/* Line-Up Section */
.event-detail-lineup {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(220, 0, 0, 0.2);
}

.event-detail-lineup h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 25px 0;
}

.event-detail-bands {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.event-detail-band {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #dc0000;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.event-detail-band:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(220, 0, 0, 0.2);
}

/* Ticket Button */
.event-detail-tickets {
    margin-top: 30px;
}

.event-detail-ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dc0000 0%, #990000 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.event-detail-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 0, 0, 0.4);
}

.event-detail-ticket-btn svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .event-detail-container {
        padding: 120px 15px 40px 15px; /* Mehr padding-top für fixierte Navigation auf Mobile */
    }

    .event-detail-close {
        top: -35px;
        right: 5px;
    }

    .event-detail-bands {
        flex-direction: row;
    }
}

/* OSM Karte */
.event-detail-map {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(220, 0, 0, 0.1);
}

.event-detail-map h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.event-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .event-map {
        height: 300px;
    }
}
