/*
 * Artist page styles, linked in <head> via $GLOBALS['page_stylesheets'] (includes/header.php).
 *
 * Moved verbatim from an inline <style> block in artist.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).
 */

/* Artist Hero with Prominent Image */
.artist-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.artist-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: -2;
}

.artist-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.08'%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");
}

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

.artist-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);
}

/* Hero Main Layout - Image + Info side by side */
.artist-hero-main {
    display: flex;
    gap: 40px;
    align-items: flex-end;
}

.artist-hero-image {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 4px solid rgba(255,255,255,0.18);
}

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

.artist-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.artist-hero-info {
    flex: 1;
    padding-bottom: 10px;
}

.artist-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.artist-location {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.artist-location svg {
    opacity: 0.7;
}

.artist-genre-badge {
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.artist-hero-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

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

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

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

.hero-stat.highlight {
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.hero-stat.highlight .stat-value {
    color: white;
}

/* Hero Social Links */
.artist-hero-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.hero-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hero-link.spotify:hover { background: #1DB954; }
.hero-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.hero-link.bandcamp:hover { background: #629aa9; }
.hero-link.youtube:hover { background: #FF0000; }

.artist-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
}

.artist-section {
    margin-bottom: 40px;
}
.artist-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pink);
}

.artist-bio {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}
.for-fans-of {
    margin-top: 20px;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: 10px;
    font-size: 0.95rem;
}

/* Discography */
.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.release-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}
.release-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.release-placeholder {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
}
.release-placeholder span {
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
    font-weight: bold;
}
.release-info {
    padding: 15px;
}
.release-info h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}
.release-meta {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.release-type {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--pink);
}
.release-year {
    margin-left: 10px;
}
.release-links {
    display: flex;
    gap: 8px;
}
.release-link {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-decoration: none;
    color: white;
}
.release-link.spotify { background: #1DB954; }
.release-link.bandcamp { background: #629aa9; }
.release-link.apple { background: #fc3c44; }

/* Songs */
.year-group {
    margin-bottom: 30px;
}
.year-header {
    color: var(--yellow);
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    margin: 0 0 15px;
}

/* Gigs */
.gigs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gig-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.gig-item:hover {
    transform: translateX(5px);
}
.gig-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 8px;
    background: var(--pink);
    border-radius: 8px;
}
.gig-day {
    font-size: 1.3rem;
    font-weight: bold;
}
.gig-month {
    font-size: 0.7rem;
    text-transform: uppercase;
}
.gig-info h4 {
    margin: 0 0 5px;
}
.gig-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.gig-info {
    flex: 1;
}

/* Ticket-enabled gig items */
.gig-item.has-tickets {
    border: 2px solid var(--teal);
    background: linear-gradient(90deg, var(--card-bg) 0%, rgba(0, 206, 209, 0.1) 100%);
    cursor: pointer;
}
.gig-item.has-tickets:hover {
    border-color: var(--teal);
}
/* Past shows — dimmed, muted date box to distinguish from upcoming */
.gig-item.is-past {
    opacity: 0.72;
    cursor: pointer;
}
.gig-item.is-past .gig-date-box {
    background: var(--text-muted);
}
.gig-ticket-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--teal);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    align-self: center;
}
.gig-ticket-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 206, 209, 0.4);
    color: white;
}

/* Sidebar */
.artist-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;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.social-link:hover {
    background: rgba(255,255,255,0.15);
}
.social-link.spotify:hover { background: rgba(29, 185, 84, 0.2); }
.social-link.instagram:hover { background: rgba(225, 48, 108, 0.2); }
.social-link.facebook:hover { background: rgba(66, 103, 178, 0.2); }

.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;
}

.related-artists {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.related-artist {
    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;
}
.related-artist:hover {
    background: var(--pink);
    color: white;
}
.connection-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.artist-news-list { display: flex; flex-direction: column; gap: 10px; }
.artist-news-item {
    display: flex; gap: 10px; align-items: flex-start;
    text-decoration: none; color: inherit;
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.artist-news-item:last-child { border-bottom: none; }
.artist-news-item:hover .artist-news-title { color: var(--pink); }
.artist-news-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.artist-news-meta { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.artist-news-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink); font-weight: 600; }
.artist-news-title { font-size: 0.85rem; line-height: 1.35; font-weight: 500; }
.artist-news-date { font-size: 0.75rem; color: var(--text-muted); }
.artist-news-more { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--pink); text-decoration: none; text-align: right; }
.artist-news-more:hover { text-decoration: underline; }

.trivia {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}

.awards {
    font-size: 0.95rem;
    line-height: 1.6;
}

.artist-awards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artist-award-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.artist-award-item:last-child {
    border-bottom: none;
}

.artist-award-item .award-icon {
    color: #daa520;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.artist-award-item.nom .award-icon {
    color: var(--text-muted);
    font-size: 0.6rem;
    margin-top: 6px;
}

.award-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.award-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.award-link:hover {
    color: #daa520;
}

.award-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.award-work {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.award-noms-toggle {
    margin-top: 8px;
}

.award-noms-toggle summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 6px 0;
}

.award-noms-toggle summary:hover {
    color: var(--text-primary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--pink);
    color: var(--pink);
}

/* Merch card */
.btn-merch {
    background: linear-gradient(135deg, #FF9900, #e67e00);
    color: #111;
    font-weight: 700;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-merch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    color: #111;
}
.merch-secondary-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.8;
}
.merch-secondary-link:hover { opacity: 1; }

.no-songs {
    color: var(--text-muted);
    font-style: italic;
}

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

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

    .artist-hero-image {
        width: 200px;
        height: 200px;
    }

    .artist-hero-info {
        padding-bottom: 0;
    }

    .artist-hero h1 {
        font-size: 2.5rem;
    }

    .artist-location {
        justify-content: center;
    }

    .artist-hero-stats {
        justify-content: center;
    }

    .artist-hero-links {
        justify-content: center;
    }

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

@media (max-width: 600px) {
    .artist-hero-image {
        width: 160px;
        height: 160px;
    }

    .artist-image-placeholder span {
        font-size: 4rem;
    }

    .artist-hero h1 {
        font-size: 2rem;
    }

    .artist-hero-stats {
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-stat {
        padding: 10px 15px;
    }

    .hero-stat .stat-value {
        font-size: 1.4rem;
    }

    .hero-link {
        width: 42px;
        height: 42px;
    }
}

/* Follow Button */
.artist-follow-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.follow-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(131, 56, 236, 0.3);
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 56, 236, 0.4);
}

.follow-btn.following {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: none;
}

.follow-btn.following:hover {
    background: rgba(255,0,110,0.2);
    border-color: var(--pink);
}

.follow-btn.following:hover .follow-text::after {
    content: ' - Unfollow?';
    font-size: 0.8em;
    opacity: 0.8;
}

.follow-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.follow-icon {
    font-size: 1.1rem;
}

.follower-count {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .artist-follow-section {
        justify-content: center;
    }
}

/* Artist Videos Section */
.artist-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.artist-video-card {
    cursor: pointer;
}
.artist-video-card .video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.artist-video-card .video-thumbnail img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.artist-video-card:hover .video-thumbnail img { transform: scale(1.05); }
.artist-video-card .play-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.2s;
}
.artist-video-card:hover .play-overlay { opacity: 1; }
.artist-video-card .play-icon {
    width: 52px; height: 52px; background: rgba(255,0,0,0.9); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: white; padding-left: 4px;
}
.artist-video-title {
    font-size: 0.9rem; margin: 8px 0 0; color: var(--text-muted, #888);
}
.artist-video-vimeo .featured-video-wrap {
    border-radius: 10px; overflow: hidden;
}

/* Similar Artists Discovery Section */
.similar-artists-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.similar-artists-section h2 {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--pink), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.similar-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.similar-artist-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.similar-artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    border-color: var(--pink);
}

.similar-artist-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
}

.similar-artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-artist-card:hover .similar-artist-image img {
    transform: scale(1.05);
}

.similar-artist-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    color: rgba(255,255,255,0.25);
}

.similar-artist-info {
    padding: 15px;
}

.similar-artist-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-artist-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.similar-peak {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .similar-artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .similar-artist-placeholder {
        font-size: 3rem;
    }

    .similar-artist-info {
        padding: 12px;
    }

    .similar-artist-info h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .similar-artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ===== LIGHT MODE OVERRIDES ===== */
[data-theme="light"] .artist-hero-overlay { background: linear-gradient(135deg, rgba(131,56,236,0.08) 0%, rgba(58,12,163,0.06) 100%) !important; }
[data-theme="light"] .artist-section { background: transparent !important; }
[data-theme="light"] .sidebar-card,
[data-theme="light"] .release-card,
[data-theme="light"] .similar-artist-card,
[data-theme="light"] .gig-item,
[data-theme="light"] .artist-award-item,
[data-theme="light"] .year-group { 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"] .artist-hero-info h1,
[data-theme="light"] .artist-section h2,
[data-theme="light"] .year-header,
[data-theme="light"] .sidebar-card h3 { color: #1a1a2e !important; }
[data-theme="light"] .artist-bio,
[data-theme="light"] .artist-location,
[data-theme="light"] .gig-info,
[data-theme="light"] .release-meta,
[data-theme="light"] .release-info,
[data-theme="light"] .award-detail,
[data-theme="light"] .similar-artist-info { color: #555 !important; }
[data-theme="light"] .stat-label,
[data-theme="light"] .info-list { color: #666 !important; }
[data-theme="light"] .hero-link,
[data-theme="light"] .award-link,
[data-theme="light"] .release-link,
[data-theme="light"] .gig-ticket-link,
[data-theme="light"] .social-link,
[data-theme="light"] a { color: #8338EC !important; }
[data-theme="light"] .hero-stat .stat-label { color: #666 !important; }
[data-theme="light"] .artist-genre-badge { background: rgba(131,56,236,0.1) !important; color: #8338EC !important; }
[data-theme="light"] .gig-date-box { background: rgba(131,56,236,0.08) !important; color: #8338EC !important; }
[data-theme="light"] .follow-btn { border-color: rgba(0,0,0,0.15) !important; }
[data-theme="light"] .breadcrumb, [data-theme="light"] .breadcrumb-sep { color: #666 !important; }
