/*
 * Artist tour page styles, linked in <head> via $GLOBALS['page_stylesheets'] (includes/header.php).
 *
 * Moved verbatim from an inline <style> block in includes/artist-tour-styles.php on 2026-10-24. Emitted
 * after the content it styles, it let the browser paint that content without
 * these rules and then reflow it whenever the HTML arrived in more than one
 * piece: the desktop CLS class fixed for gig pages in #1782 (see gig.css).
 */

/* Tour Hero */
.tour-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.tour-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: -2;
}

.tour-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tour-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,26,1) 0%, rgba(15,15,26,0.5) 100%);
}

.tour-hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--pink);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

.tour-hero-main {
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.tour-hero-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.18);
}

.tour-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-image-placeholder span {
    font-size: 4rem;
    font-family: 'Bangers', cursive;
    color: rgba(255,255,255,0.3);
}

.tour-hero-info {
    flex: 1;
}

.tour-label {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tour-hero h1 {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    margin: 0 0 15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.tour-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.tour-stat {
    text-align: center;
    padding: 10px 18px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.tour-stat .stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
}

.tour-stat .stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tour-dates {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 15px;
}

.year-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.year-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.year-btn:hover {
    background: rgba(255,255,255,0.2);
}

.year-btn.active {
    background: var(--pink);
}

/* Tour Layout */
.tour-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
}

/* City Tour Sections */
.city-tour-section {
    margin-bottom: 40px;
}

.city-tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pink);
    margin-bottom: 20px;
}

.city-name {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.city-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 5px 12px;
    background: var(--card-bg);
    border-radius: 15px;
}

/* Tour Gig Cards */
.tour-gigs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tour-gig-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.tour-gig-card:hover {
    transform: translateX(5px);
    border-color: var(--pink);
}

.tour-gig-card.has-tickets {
    border-color: var(--teal);
    background: linear-gradient(90deg, var(--card-bg) 0%, rgba(0, 206, 209, 0.05) 100%);
}

.tour-gig-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 10px;
    text-align: center;
}

.tour-gig-date .day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.tour-gig-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.tour-gig-date .weekday {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 4px;
}

.tour-gig-details {
    flex: 1;
}

.tour-gig-details h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.tour-gig-details h3 a {
    color: inherit;
    text-decoration: none;
}

.tour-gig-details h3 a:hover {
    color: var(--pink);
}

.tour-gig-details .venue {
    margin: 0 0 5px;
    color: var(--text-muted);
}

.tour-gig-details .venue a {
    color: var(--pink);
    text-decoration: none;
}

.tour-gig-details .venue a:hover {
    text-decoration: underline;
}

.tour-gig-details .capacity {
    font-size: 0.85rem;
    opacity: 0.7;
}

.tour-gig-details .time {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tour-gig-actions {
    display: flex;
    align-items: center;
}

.btn-tickets {
    background: var(--teal);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-tickets:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 206, 209, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--pink);
    color: var(--pink);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--pink);
    color: white;
}

/* Tour FAQ */
.tour-faq {
    margin-top: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
}

.tour-faq h2 {
    font-size: 1.5rem;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pink);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--pink);
}

.faq-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Sidebar */
.tour-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
}

.sidebar-card h3 {
    margin: 0 0 15px;
    font-size: 1.1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.15);
}

.sidebar-link.spotify:hover {
    background: rgba(29, 185, 84, 0.2);
}

.city-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.city-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
}

.city-link:hover {
    background: var(--pink);
    color: white;
}

.city-link .badge {
    padding: 2px 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 0.8rem;
}

.subscribe-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(131, 56, 236, 0.2));
    border: 1px solid var(--purple);
}

.subscribe-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 15px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(131, 56, 236, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .tour-layout {
        grid-template-columns: 1fr;
    }

    .tour-sidebar {
        order: -1;
    }

    .tour-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tour-hero-image {
        width: 140px;
        height: 140px;
    }

    .tour-hero h1 {
        font-size: 2.2rem;
    }

    .tour-stats {
        justify-content: center;
    }

    .year-filter {
        justify-content: center;
    }

    .tour-hero-content {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .tour-gig-card {
        flex-direction: column;
        gap: 15px;
    }

    .tour-gig-date {
        flex-direction: row;
        gap: 15px;
        padding: 10px 20px;
    }

    .tour-gig-date .day {
        font-size: 1.5rem;
    }

    .tour-gig-actions {
        width: 100%;
    }

    .btn-tickets, .btn-outline {
        width: 100%;
        text-align: center;
    }

    .city-tour-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== LIGHT MODE OVERRIDES ===== */
[data-theme="light"] .tour-hero-overlay { background: linear-gradient(135deg, rgba(131,56,236,0.08) 0%, rgba(58,12,163,0.06) 100%) !important; }
[data-theme="light"] .sidebar-card,
[data-theme="light"] .tour-gig-card,
[data-theme="light"] .subscribe-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .city-tour-section { background: #fff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important; }
[data-theme="light"] .tour-hero-info h1,
[data-theme="light"] .city-tour-header,
[data-theme="light"] .sidebar-card h3,
[data-theme="light"] .faq-item h3 { color: #1a1a2e !important; }
[data-theme="light"] .tour-gig-detail,
[data-theme="light"] .tour-gig-date,
[data-theme="light"] .tour-label,
[data-theme="light"] .city-name { color: #555 !important; }
[data-theme="light"] .stat-label,
[data-theme="light"] .info-list { color: #666 !important; }
[data-theme="light"] .sidebar-link,
[data-theme="light"] .city-link,
[data-theme="light"] .btn-ticket,
[data-theme="light"] a { color: #8338EC !important; }
[data-theme="light"] .tour-stat { color: #555 !important; }
[data-theme="light"] .tour-date { background: rgba(131,56,236,0.08) !important; color: #8338EC !important; }
[data-theme="light"] .year-btn { background: rgba(131,56,236,0.08) !important; color: #555 !important; border-color: rgba(0,0,0,0.1) !important; }
[data-theme="light"] .year-btn.active { background: #8338EC !important; color: #fff !important; }
[data-theme="light"] .breadcrumb, [data-theme="light"] .breadcrumb-sep { color: #666 !important; }
