/* =============================================
   BAND DETAIL PAGE
   Verwendet die gleiche Struktur wie Location-Detail
   ============================================= */

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

.band-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc0000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.back-link:hover {
    gap: 12px;
    color: #ff0000;
}

/* Header - Nur Titel und Stats */
.band-detail-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(220, 0, 0, 0.2);
}

.band-detail-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.band-detail-stats {
    display: flex;
    gap: 20px;
    font-size: 15px;
    color: #999;
    justify-content: flex-end;
}

.band-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
}

.band-stat svg {
    color: #dc0000;
    flex-shrink: 0;
}

/* Main Content Box */
.band-detail-main-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 35px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

/* Description Section (Left) */
.band-detail-description-section h2,
.band-detail-map-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(220, 0, 0, 0.3);
}

.band-detail-description {
    color: #dddddd;
    line-height: 1.8;
    font-size: 15px;
    white-space: pre-wrap;
}

.band-detail-meta h3 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.band-genre,
.band-origin,
.band-website {
    color: #ffffff;
    font-size: 15px;
}

.band-website a {
    color: #dc0000;
    text-decoration: none;
    transition: color 0.2s;
}

.band-website a:hover {
    color: #ff0000;
    text-decoration: underline;
}

/* Map Section (Right) */
.band-detail-map-section {
    display: flex;
    flex-direction: column;
}

.band-map-container {
    flex: 1;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.band-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #ccc;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-marker.upcoming {
    background: #dc0000;
    box-shadow: 0 0 10px rgba(220, 0, 0, 0.5);
}

.legend-marker.past {
    background: #999;
    width: 12px;
    height: 12px;
}

/* Events Section */
.band-detail-events-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.band-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.band-events-tabs {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
}

.events-tab {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.events-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.events-tab.active {
    background: linear-gradient(135deg, #dc0000 0%, #990000 100%);
    color: #fff;
}

/* Bandcamp Embeds Section */
.band-detail-bandcamp-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.band-detail-bandcamp-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(220, 0, 0, 0.3);
}

.bandcamp-embeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.bandcamp-embed-wrapper {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bandcamp-embed-wrapper:hover {
    transform: translateY(-2px);
}

.bandcamp-embed-wrapper iframe {
    display: block;
    border: 0;
    width: 100% !important;
    min-height: 120px;
    max-height: 600px;
}

@media (max-width: 768px) {
    .bandcamp-embeds-grid {
        grid-template-columns: 1fr;
    }
}

.band-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.band-events-list .events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Event Cards in List View */
.band-events-list .event-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 15px;
    align-items: center;
}

.band-events-list .event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(220, 0, 0, 0.3);
    border-color: rgba(220, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.band-events-list .event-flyer {
    width: 80px;
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.band-events-list .event-flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.band-events-list .event-details {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.band-events-list .event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc0000 0%, #990000 100%);
    border-radius: 8px;
    padding: 10px;
    min-width: 60px;
    flex-shrink: 0;
}

.band-events-list .event-date-day {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.band-events-list .event-date-month {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-top: 2px;
}

.band-events-list .event-content {
    flex: 1;
    min-width: 0;
}

.band-events-list .event-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.band-events-list .event-location {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.band-events-list .event-location svg {
    flex-shrink: 0;
    color: #dc0000;
}

/* Responsive */
@media (max-width: 768px) {
    .band-detail-container {
        padding: 100px 15px 40px 15px;
    }
    
    .band-detail-title {
        font-size: 28px;
    }
    
    .band-detail-header-content {
        text-align: left;
    }
    
    .band-detail-stats {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .band-map-container {
        height: 300px;
    }
    
    .band-events-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .band-events-list .event-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .band-events-list .event-flyer {
        width: 100%;
        aspect-ratio: 4 / 5;
    }
    
    .band-events-list .event-details {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .band-detail-header {
        padding: 20px;
    }
    
    .band-detail-map-section,
    .band-detail-events-section {
        padding: 20px;
    }
    
    .band-detail-title {
        font-size: 24px;
    }
    
    .band-map-legend {
        flex-direction: column;
        gap: 10px;
    }
    
    .band-events-list .event-title {
        font-size: 16px;
        white-space: normal;
    }
}

/* =============================================
   ADMIN MODE STYLES
   ============================================= */

/* Admin Mode Indicator */
body.admin-mode .band-detail-title::before,
body.admin-mode .band-detail-description::before,
body.admin-mode .band-genre::before,
body.admin-mode .band-origin::before,
body.admin-mode .band-website::before {
    content: '✎';
    color: #dc0000;
    margin-right: 8px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Editable Field Styling */
body.admin-mode .editable-field {
    border: 2px dashed rgba(220, 0, 0, 0.3);
    border-radius: 6px;
    padding: 8px;
    transition: all 0.2s;
    cursor: text;
}

body.admin-mode .editable-field:hover {
    border-color: rgba(220, 0, 0, 0.6);
    background: rgba(220, 0, 0, 0.05);
}

body.admin-mode .editable-field:focus {
    outline: none;
    border-color: #dc0000;
    background: rgba(220, 0, 0, 0.1);
    box-shadow: 0 0 0 3px rgba(220, 0, 0, 0.1);
}

/* Bandcamp Embed Styling */
.bandcamp-embed {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid #dc0000;
}

.bandcamp-embed iframe {
    border: 0;
    width: 100%;
    height: 470px;
    border-radius: 6px;
}

.bandcamp-embed p {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.bandcamp-embed a {
    color: #dc0000;
    text-decoration: none;
    transition: color 0.2s;
}

.bandcamp-embed a:hover {
    color: #ff0000;
    text-decoration: underline;
}

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

/* Stack layout on smaller tablets */
@media (max-width: 968px) {
    .band-detail-main-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .band-detail-description-section,
    .band-detail-map-section {
        width: 100%;
    }
    
    .band-map-container {
        min-height: 350px;
    }
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .band-detail-main-box {
        gap: 20px;
    }
    
    .band-map-container {
        min-height: 300px;
    }
    
    .bandcamp-embed {
        padding: 10px;
    }
    
    .bandcamp-embed iframe {
        height: 400px;
    }
}
