/**
 * Public Band Profile Styles
 */

/* Header Styles */
.band-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    padding-bottom: 4rem;
    color: white;
    position: relative;
}

.band-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
    overflow: hidden;
}

.band-header > .container {
    position: relative;
    z-index: 1;
}

.band-logo {
    transition: transform 0.3s ease;
}

.band-logo:hover {
    transform: scale(1.05);
}

/* Share Buttons */
.share-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.share-buttons .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Social Media Buttons */
.card-body .btn-outline-primary,
.card-body .btn-outline-success,
.card-body .btn-outline-danger,
.card-body .btn-outline-warning,
.card-body .btn-outline-secondary,
.card-body .btn-outline-dark {
    transition: all 0.2s ease;
}

.card-body .btn:hover {
    transform: translateX(3px);
}

/* Photo Gallery */
.card-body img {
    transition: transform 0.3s ease;
}

.card-body img:hover {
    transform: scale(1.02);
}

/* List Group Items */
.list-group-item {
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Tour Cards */
.card .card.border:hover {
    border-color: #667eea !important;
}

/* Badge Styles */
.badge {
    font-weight: 500;
}

/* QR Code Container */
.bg-white.p-3.rounded.shadow {
    transition: transform 0.3s ease;
}

.bg-white.p-3.rounded.shadow:hover {
    transform: scale(1.02);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .band-header {
        padding: 2rem 0;
        text-align: center;
    }

    .band-header .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .band-header .me-4 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .band-header h1 {
        font-size: 1.75rem;
    }

    .share-buttons {
        top: 10px;
        right: 10px;
    }

    .share-buttons .btn {
        width: 35px;
        height: 35px;
    }

    .col-md-4.text-md-end {
        margin-top: 1.5rem;
        text-align: center !important;
    }
}

/* Print Styles */
@media print {
    .share-buttons {
        display: none;
    }

    .band-header {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .card {
        break-inside: avoid;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease forwards;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }

/* Toast notification */
.toast {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.band-index-backlink {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.band-index-backlink:hover {
    color: #fff;
    text-decoration: underline;
}

/* Übersicht öffentlicher Bands (/band/) */
.band-index-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.band-index-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.band-index-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    flex-shrink: 0;
}

.band-index-logo--placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1.75rem;
}

.band-index-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Bandfotos: Vorschau im Raster, Großansicht mit Download */
.band-photo-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.band-photo-link {
    cursor: zoom-in;
}

.band-photo-zoom {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.band-photo-link:hover .band-photo-zoom,
.band-photo-link:focus-visible .band-photo-zoom {
    opacity: 1;
}

.band-photo-stage {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.band-photo-full {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.band-photo-full.is-loading {
    opacity: 0.3;
}

.band-photo-spinner {
    position: absolute;
}

.band-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    opacity: 0.8;
}

.band-photo-nav--prev {
    left: 0.75rem;
}

.band-photo-nav--next {
    right: 0.75rem;
}

@media (hover: none) {
    .band-photo-zoom {
        opacity: 1;
    }
}

/* ------------------------------------------------------------------
 * Konzerte als Zeitstrahl (views/bands/partials/public-concert-timeline.php)
 * Desktop: Datum | Linie | Inhalt. Handy: Linie links, Datum über dem Titel.
 * ------------------------------------------------------------------ */
.concert-timeline {
    --tl-accent: #4c51bf;
    --tl-accent-soft: #e3e5fb;
    --tl-line-upcoming: #c3c6f0;
    --tl-line-past: #dee2e6;
    --tl-muted: #5c636a;
}

.concert-timeline-filter {
    border: 1px solid #ced4da;
    background: #fff;
    color: #343a40;
    padding-inline: 0.9rem;
}

.concert-timeline-filter:hover {
    border-color: var(--tl-accent);
    color: var(--tl-accent);
}

.concert-timeline-filter.active {
    background: var(--tl-accent);
    border-color: var(--tl-accent);
    color: #fff;
}

.concert-timeline-item,
.concert-timeline-today,
.concert-timeline-year {
    display: grid;
    grid-template-columns: 104px 28px minmax(0, 1fr);
    grid-template-areas: "date marker content";
}

.concert-timeline-date {
    grid-area: date;
    text-align: right;
    padding: 0.85rem 0.85rem 0 0;
    line-height: 1.2;
}

.concert-timeline-marker {
    grid-area: marker;
    position: relative;
}

.concert-timeline-content {
    grid-area: content;
    padding: 0.4rem 0 0.6rem 0.5rem;
    min-width: 0;
}

/* Linie */
.concert-timeline-marker::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: var(--tl-line-past);
}

.concert-timeline-item--upcoming .concert-timeline-marker::before {
    background: var(--tl-line-upcoming);
}

/* Punkt */
.concert-timeline-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 1.05rem;
    width: 12px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #fff;
    border: 2px solid #adb5bd;
    box-sizing: border-box;
}

.concert-timeline-item--upcoming .concert-timeline-marker::after {
    top: 1.35rem;
    width: 16px;
    height: 16px;
    border: 0;
    background: var(--tl-accent);
    box-shadow: 0 0 0 5px var(--tl-accent-soft);
}

.concert-timeline-weekday {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tl-muted);
}

.concert-timeline-day {
    display: block;
    font-weight: 600;
    color: #495057;
}

.concert-timeline-item--upcoming .concert-timeline-weekday {
    color: var(--tl-accent);
    font-weight: 600;
}

.concert-timeline-item--upcoming .concert-timeline-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.concert-timeline-countdown {
    display: block;
    font-size: 0.75rem;
    color: var(--tl-muted);
}

.concert-timeline-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}

.concert-timeline-item--upcoming .concert-timeline-card {
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f4f5fe;
    border: 1px solid #d9dcf7;
    border-radius: 10px;
}

.concert-timeline-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.concert-timeline-title {
    font-weight: 600;
    color: #343a40;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.concert-timeline-title:hover {
    color: var(--tl-accent);
    text-decoration: underline;
}

.concert-timeline-item--upcoming .concert-timeline-title {
    font-size: 1.05rem;
    color: var(--tl-accent);
}

.concert-timeline-venue {
    font-size: 0.875rem;
    color: var(--tl-muted);
}

.concert-timeline-item--upcoming .concert-timeline-venue {
    color: #495057;
}

.concert-timeline-meta {
    font-size: 0.8rem;
    color: var(--tl-muted);
}

.concert-timeline-meta:empty {
    display: none;
}

.concert-timeline-role {
    flex-shrink: 0;
    margin-top: 0.15rem;
    padding: 0.35em 0.55em;
    font-size: 0.7rem;
    line-height: 1.2; /* custom.css setzt .badge global auf 28px */
    background: #e9ecef;
    color: #495057;
    font-weight: 600;
}

.concert-timeline-tickets {
    flex-shrink: 0;
}

.concert-timeline .badge {
    line-height: 1.2;
}

.is-cancelled .concert-timeline-title {
    text-decoration: line-through;
    color: #868e96;
}

.concert-timeline-item--upcoming.is-cancelled .concert-timeline-card {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.concert-timeline-item--upcoming.is-cancelled .concert-timeline-marker::after {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #adb5bd;
    box-shadow: none;
}

.concert-timeline-item--upcoming.is-cancelled .concert-timeline-weekday,
.concert-timeline-item--upcoming.is-cancelled .concert-timeline-day {
    color: #868e96;
}

/* Heute-Markierung */
.concert-timeline-today .concert-timeline-marker::before {
    background: linear-gradient(var(--tl-line-upcoming) 50%, var(--tl-line-past) 50%);
}

.concert-timeline-today .concert-timeline-marker::after {
    top: 50%;
    width: 10px;
    height: 10px;
    border: 0;
    background: #dc3545;
    transform: translate(-50%, -50%);
}

.concert-timeline-today .concert-timeline-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding-block: 0.75rem;
}

.concert-timeline-today-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b02a37;
}

.concert-timeline-today-note {
    font-size: 0.875rem;
    color: var(--tl-muted);
}

/* Jahres-Überschriften */
.concert-timeline-year .concert-timeline-date {
    padding-top: 0.6rem;
}

.concert-timeline-year-label {
    font-size: 1.35rem;
    font-weight: 700;
    color: #868e96;
}

.concert-timeline-year-label--inline {
    display: none;
}

.concert-timeline-year .concert-timeline-marker::after {
    top: 50%;
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 3px;
    background: #adb5bd;
    transform: translate(-50%, -50%);
}

.concert-timeline-year .concert-timeline-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-block: 0.75rem;
}

.concert-timeline-toggle .bi-chevron-down {
    display: inline-block;
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.concert-timeline-toggle.collapsed .bi-chevron-down {
    transform: none;
}

.concert-timeline-toggle.collapsed .concert-timeline-toggle-hide,
.concert-timeline-toggle:not(.collapsed) .concert-timeline-toggle-show {
    display: none;
}

/* Filter */
.concert-timeline [data-concert-hidden] {
    display: none !important;
}

/* Handy: Linie links, Datum über dem Titel */
@media (max-width: 575.98px) {
    .concert-timeline-body {
        padding-inline: 0.75rem;
    }

    .concert-timeline-item,
    .concert-timeline-today,
    .concert-timeline-year {
        grid-template-columns: 24px minmax(0, 1fr);
        grid-template-areas:
            "marker date"
            "marker content";
        column-gap: 0.5rem;
    }

    .concert-timeline-date {
        text-align: left;
        padding: 0.6rem 0 0;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 0.35rem;
    }

    .concert-timeline-weekday,
    .concert-timeline-day,
    .concert-timeline-countdown {
        display: inline;
    }

    .concert-timeline-item--upcoming .concert-timeline-day {
        font-size: 1rem;
    }

    .concert-timeline-countdown::before {
        content: '· ';
    }

    .concert-timeline-content {
        padding: 0.15rem 0 0.6rem;
    }

    .concert-timeline-card {
        padding: 0.2rem 0;
    }

    .concert-timeline-item--upcoming .concert-timeline-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
    }

    .concert-timeline-marker::after {
        top: 0.8rem;
    }

    .concert-timeline-item--upcoming .concert-timeline-marker::after {
        top: 0.75rem;
    }

    .concert-timeline-today .concert-timeline-date,
    .concert-timeline-year .concert-timeline-date {
        display: none;
    }

    .concert-timeline-today .concert-timeline-content,
    .concert-timeline-year .concert-timeline-content {
        grid-row: 1 / span 2;
    }

    .concert-timeline-year-label--inline {
        display: inline;
        font-size: 1.2rem;
    }

    .concert-timeline-year .concert-timeline-content {
        flex-wrap: wrap;
    }

    .concert-timeline-toggle {
        margin-left: auto;
        min-height: 44px;
    }
}
