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

.venue-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-dark);
}
.venue-hero.no-image {
    min-height: auto;
    padding-top: 30px;
    background: linear-gradient(135deg, #8338EC 0%, #FF006E 50%, #FF6B35 100%);
}
.venue-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,26,1) 0%, rgba(15,15,26,0.7) 50%, rgba(15,15,26,0.3) 100%);
}
.venue-hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.venue-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
}
.venue-location-hero {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 20px;
}
.venue-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.venue-badge {
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 0.85rem;
}
.venue-badge.type {
    background: var(--pink);
    color: white;
}
.venue-badge.aa {
    background: var(--teal);
    color: white;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--pink);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

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

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

.venue-description {
    line-height: 1.8;
    color: var(--text-muted);
}

.venue-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.detail-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
}
.detail-icon {
    font-size: 1.5rem;
}
.detail-content h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.detail-content p {
    margin: 0;
}
.detail-content a {
    color: var(--pink);
    text-decoration: none;
}
.detail-content a:hover {
    text-decoration: underline;
}
.map-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
}

.gigs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gig-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.gig-card:hover {
    transform: translateX(5px);
}
.gig-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 10px;
    background: var(--pink);
    border-radius: 10px;
}
.gig-day {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}
.gig-month {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}
.gig-info {
    flex: 1;
}
.gig-info h4 {
    margin: 0 0 5px;
}
.gig-time, .gig-price {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.gig-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Ticket-enabled gig cards */
.gig-card.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-card.has-tickets:hover {
    border-color: var(--teal);
}
.gig-ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    background: var(--teal);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gig-ticket-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 206, 209, 0.4);
    color: white;
}

.no-gigs {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    text-align: center;
}
.no-gigs a {
    color: var(--pink);
}

.top-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 4px;
}

.top-artist-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--card-bg);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.top-artist-card:hover { background: rgba(255,0,204,0.1); }

/* Thumb container: shows the artist initial as a fallback, with the
   actual image overlaid on top when it loads. If the img 404s, the
   onerror handler hides it and the initial shows through. */
.top-artist-thumb {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(131,56,236,0.35), rgba(255,0,110,0.25));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-artist-initial {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    line-height: 1;
    user-select: none;
}
.top-artist-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
/* Legacy placeholder div kept for any other callers using it. */
.top-artist-card img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.top-artist-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
}

.top-artist-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.top-artist-info strong {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-artist-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.artists-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.artist-tag {
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.artist-tag:hover {
    background: var(--pink);
    color: white;
}

.venue-map {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

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

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

.venue-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.venue-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;
}
.venue-link:hover {
    background: rgba(255,255,255,0.15);
}
.link-icon {
    font-size: 1.2rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.info-list li:last-child {
    border-bottom: none;
}

.sidebar-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-links a {
    color: var(--pink);
    text-decoration: none;
}
.sidebar-links a:hover {
    text-decoration: underline;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--pink);
    color: var(--pink);
}
.btn-outline:hover {
    background: var(--pink);
    color: white;
}

/* Venue FAQ */
.venue-faq-item {
    margin-bottom: 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
}
.venue-faq-item summary {
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    list-style: none;
}
.venue-faq-item summary::-webkit-details-marker { display: none; }
.venue-faq-item summary::before {
    content: '+';
    margin-right: 8px;
    font-weight: bold;
    color: var(--pink);
}
.venue-faq-item[open] summary::before { content: '−'; }
.venue-faq-item p {
    padding: 0 14px 12px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}
[data-theme="light"] .venue-faq-item {
    background: #f5f5f5;
}

@media (max-width: 900px) {
    .venue-layout {
        grid-template-columns: 1fr;
    }
    .venue-hero-content {
        padding: 30px 20px;
    }
    .venue-hero h1 {
        font-size: 2rem;
    }
}

/* ===== LIGHT MODE OVERRIDES ===== */
[data-theme="light"] .venue-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"] .gig-card,
[data-theme="light"] .detail-item,
[data-theme="light"] .venue-faq-item,
[data-theme="light"] .venue-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"] .venue-hero-content h1,
[data-theme="light"] .venue-section h2,
[data-theme="light"] .sidebar-card h3 { color: #1a1a2e !important; }
[data-theme="light"] .venue-desc,
[data-theme="light"] .venue-location-hero,
[data-theme="light"] .gig-info,
[data-theme="light"] .gig-time,
[data-theme="light"] .detail-content { color: #555 !important; }
[data-theme="light"] .info-list,
[data-theme="light"] .sidebar-note { color: #666 !important; }
[data-theme="light"] .sidebar-link,
[data-theme="light"] .map-link,
[data-theme="light"] .gig-ticket-btn,
[data-theme="light"] .venue-link,
[data-theme="light"] a { color: #8338EC !important; }
[data-theme="light"] .venue-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"] .artist-tag { background: rgba(131,56,236,0.06) !important; color: #555 !important; }
[data-theme="light"] .breadcrumb, [data-theme="light"] .breadcrumb-sep { color: #666 !important; }
