/* =============================================
   DETAIL PAGES - Unified Styles
   Einheitliches Design für Events, Bands, Locations
   ============================================= */

/* Container */
.detail-container,
.location-detail-container,
.band-detail-container,
.event-detail-container {
    min-height: 100vh;
    padding: 120px 20px 60px 20px;
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
}

.detail-content,
.location-detail-content,
.band-detail-content,
.event-detail-content {
    max-width: 1140px;
    margin: 0 auto;
}

/* Back Link */
.back-link {
    display: none !important;
}

/* =============================================
   HEADER - Unified
   ============================================= */

.detail-header,
.location-detail-header,
.band-detail-header,
.event-detail-header {
    margin-bottom: 30px;
    padding-top: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(220, 0, 0, 0.2);
}

.detail-header-row,
.location-detail-header-row,
.band-detail-header-row,
.event-detail-header-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: start;
}

/* Image Container */
.detail-image-container,
.location-detail-image-container,
.band-detail-image-container,
.event-detail-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(40, 40, 40, 0.4);
    border: 2px solid rgba(220, 0, 0, 0.2);
}

.detail-image,
.location-detail-image,
.band-detail-image,
.event-detail-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.detail-image[data-has-image="false"],
.location-detail-image[data-has-image="false"],
.band-detail-image[data-has-image="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 48px;
}

/* Event Image (mit echtem Bild) */
.event-detail-image[data-has-image="true"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-upload-image {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(220, 0, 0, 0.9);
    border: none;
    border-radius: 4px;
    padding: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-image:hover {
    background: #dc0000;
    transform: scale(1.05);
}

/* Header Content */
.detail-header-content,
.location-detail-header-content,
.band-detail-header-content,
.event-detail-header-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-title,
.location-detail-title,
.band-detail-title,
.event-detail-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-align: right;
}

.detail-title.editable-field,
.location-detail-title[contenteditable="true"],
.band-detail-title.editable-field {
    outline: 2px solid transparent;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.detail-title.editable-field:focus,
.location-detail-title[contenteditable="true"]:focus,
.band-detail-title.editable-field:focus {
    outline: 2px solid #dc0000;
    background: rgba(220, 0, 0, 0.1);
}

.detail-subtitle,
.location-detail-address,
.event-detail-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.location-detail-address[contenteditable="true"],
.event-detail-subtitle[contenteditable="true"] {
    outline: 2px solid transparent;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.location-detail-address[contenteditable="true"]:focus,
.event-detail-subtitle[contenteditable="true"]:focus {
    outline: 2px solid #dc0000;
    background: rgba(220, 0, 0, 0.1);
}

/* Event-spezifische Subtitle-Styles */
.event-detail-date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.event-detail-date-info svg {
    stroke: #dc0000;
    flex-shrink: 0;
}

/* Stats (für Band/Event) */
.detail-stats,
.band-detail-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.detail-stat,
.band-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.detail-stat svg,
.band-stat svg {
    stroke: #dc0000;
}

/* Event-spezifische Header-Elemente */
.event-detail-bands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.band-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(220, 0, 0, 0.15);
    border: 1px solid rgba(220, 0, 0, 0.3);
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.band-chip:hover {
    background: rgba(220, 0, 0, 0.25);
    border-color: rgba(220, 0, 0, 0.5);
    transform: translateY(-1px);
}

.event-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 8px 0;
}

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

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

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

/* =============================================
   BODY - Two Column Layout
   ============================================= */

.detail-body,
.location-detail-body,
.band-detail-body,
.event-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* =============================================
   MAP SECTION - Unified
   ============================================= */

.detail-map-section,
.location-detail-map-section,
.band-detail-map-section,
.event-detail-map-section,
.event-detail-info-section {
    background: rgba(40, 40, 40, 0.3);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-map-section h2,
.location-detail-map-section h2,
.band-detail-map-section h2,
.event-detail-map-section h2,
.event-detail-info-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.detail-map-container,
.location-map-container,
.band-map-container,
.event-map-container {
    width: 100%;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-coordinates,
.location-coordinates,
.event-coordinates {
    margin-top: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.coord-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.coord-value {
    color: #dc0000;
}

/* Map Legend */
.detail-map-legend,
.band-map-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-marker.upcoming {
    background: #dc0000;
}

.legend-marker.past {
    background: #666;
}

/* =============================================
   EVENTS SECTION - Unified
   ============================================= */

.detail-events-section,
.location-detail-events-section,
.band-detail-events-section {
    background: rgba(40, 40, 40, 0.3);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-events-header,
.location-events-header,
.band-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.detail-events-header h2,
.location-events-header h2,
.band-events-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.detail-events-tabs,
.location-events-tabs,
.band-events-tabs {
    display: flex;
    gap: 10px;
}

.events-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.events-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.events-tab.active {
    background: #dc0000;
    color: #ffffff;
    border-color: #dc0000;
}

.detail-events-list,
.location-events-list,
.band-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   DESCRIPTION SECTION
   ============================================= */

.detail-description-section,
.location-detail-description-section,
.band-detail-description-section {
    margin-top: 30px;
    background: rgba(40, 40, 40, 0.3);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-description-section h2,
.location-detail-description-section h2,
.band-detail-description-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.detail-description,
.location-detail-description,
.band-detail-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 15px;
}

.detail-description[contenteditable="true"],
.location-detail-description[contenteditable="true"],
.band-detail-description.editable-field {
    outline: 2px solid transparent;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.detail-description[contenteditable="true"]:focus,
.location-detail-description[contenteditable="true"]:focus,
.band-detail-description.editable-field:focus {
    outline: 2px solid #dc0000;
    background: rgba(220, 0, 0, 0.1);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .detail-header-row,
    .location-detail-header-row,
    .band-detail-header-row,
    .event-detail-header-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-image-container,
    .location-detail-image-container,
    .band-detail-image-container,
    .event-detail-image-container {
        width: 100%;
        height: 250px;
    }
    
    .detail-body,
    .location-detail-body,
    .band-detail-body {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .detail-title,
    .location-detail-title,
    .band-detail-title,
    .event-detail-title {
        font-size: 32px;
    }
}
