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

/* What's On Page Styles */
.whats-on-page {
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Hero */
.whats-on-hero {
    background: linear-gradient(135deg, #FF006E 0%, #8338EC 50%, #3A86FF 100%);
    padding: 30px 0 40px;
    color: white;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

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

.breadcrumb span {
    margin: 0 8px;
}

.whats-on-hero h1 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-date-range {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 25px;
}

.hero-subtitle strong {
    font-weight: 700;
}

/* Date Filters */
.date-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.date-pill {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.date-pill:hover {
    background: rgba(255,255,255,0.3);
}

.date-pill.active {
    background: white;
    color: #8338EC;
}

/* Content Layout */
.whats-on-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .whats-on-content {
        grid-template-columns: 1fr;
    }

    .whats-on-sidebar {
        order: -1;
    }
}

/* Date Sections */
.date-section {
    margin-bottom: 40px;
}

.date-heading {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(131, 56, 236, 0.3);
}

.date-day {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: var(--pink, #FF006E);
}

.date-full {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: normal;
}

.date-count {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.6;
    font-weight: normal;
}

/* Gig Cards */
.gig-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gig-card {
    background: var(--card-bg, rgba(255,255,255,0.05));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.gig-card:hover {
    transform: translateY(-2px);
    border-color: var(--purple, #8338EC);
}

.gig-card-link {
    display: grid;
    grid-template-columns: 120px 1fr;
    text-decoration: none;
    color: inherit;
}

.gig-card-image {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: rgba(131, 56, 236, 0.2);
}

.gig-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.gig-card-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gig-card-title {
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: var(--text-color, white);
}

.gig-card-artists {
    font-size: 0.9rem;
    color: var(--purple, #8338EC);
    margin: 0 0 8px;
}

.gig-card-venue {
    font-size: 0.85rem;
    color: var(--text-muted, rgba(255,255,255,0.7));
    margin-bottom: 8px;
}

.venue-icon {
    margin-right: 5px;
}

.venue-suburb {
    opacity: 0.7;
}

.venue-suburb::before {
    content: '• ';
    margin-left: 5px;
}

.gig-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-free {
    color: #4CAF50;
    font-weight: 600;
}

.gig-card-ticket-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF006E, #8338EC);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.gig-card-ticket-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF006E, #8338EC);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gig-card-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

/* No Gigs State */
.no-gigs-card {
    text-align: center;
    padding: 60px 30px;
    background: var(--card-bg, rgba(255,255,255,0.05));
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.no-gigs-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-gigs-card h2 {
    margin-bottom: 10px;
}

.no-gigs-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.no-gigs-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.sidebar-card {
    background: var(--card-bg, rgba(255,255,255,0.05));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin: 0 0 15px;
    color: var(--text-color, white);
}

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

.city-link {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(131, 56, 236, 0.2);
    border-radius: 20px;
    color: var(--text-color, white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.city-link:hover {
    background: rgba(131, 56, 236, 0.4);
}

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

.venue-list li {
    margin-bottom: 10px;
}

.venue-list a {
    color: var(--text-color, white);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s;
}

.venue-list a:hover {
    color: var(--purple, #8338EC);
}

.venue-gig-count {
    background: var(--pink, #FF006E);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-link {
    display: block;
    margin-top: 15px;
    color: var(--purple, #8338EC);
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-link:hover {
    text-decoration: underline;
}

.sidebar-cta {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.3), rgba(255, 0, 110, 0.2));
    border-color: rgba(131, 56, 236, 0.4);
}

/* Newsletter */
.sidebar-newsletter {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), rgba(131, 56, 236, 0.2));
    border-color: rgba(58, 134, 255, 0.3);
}

.sidebar-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: var(--text-color, white);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.newsletter-input:focus {
    border-color: var(--purple, #8338EC);
}

.newsletter-input::placeholder {
    color: var(--text-muted, rgba(255,255,255,0.5));
}

[data-theme="light"] .newsletter-input {
    background: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

[data-theme="light"] .newsletter-input::placeholder {
    color: #999;
}

.sidebar-cta p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* FAQ in Sidebar */
.sidebar-faq {
    background: transparent;
    border: none;
    padding: 0;
}

.faq-item {
    margin-bottom: 10px;
    background: var(--card-bg, rgba(255,255,255,0.05));
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '+';
    margin-right: 10px;
    font-weight: bold;
    color: var(--purple);
}

.faq-item[open] summary::before {
    content: '−';
}

.faq-item p {
    padding: 0 15px 15px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #8338EC, #FF006E);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(131, 56, 236, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-color, white);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-color, white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
}

/* Light theme */
[data-theme="light"] .whats-on-hero {
    color: white;
}

[data-theme="light"] .gig-card,
[data-theme="light"] .sidebar-card,
[data-theme="light"] .no-gigs-card {
    background: white;
    border-color: #e0e0e0;
}

[data-theme="light"] .date-heading {
    border-color: #e0e0e0;
}

[data-theme="light"] .gig-card-title {
    color: #1a1a2e;
}

[data-theme="light"] .btn-secondary {
    background: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

/* Mobile */
@media (max-width: 600px) {
    .whats-on-hero h1 {
        font-size: 1.8rem;
    }

    .date-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .date-pill {
        flex-shrink: 0;
    }

    .gig-card-link {
        grid-template-columns: 80px 1fr;
    }

    .gig-card-image {
        width: 80px;
        height: 80px;
    }

    .gig-card-content {
        padding: 10px 15px;
    }

    .gig-card-title {
        font-size: 1rem;
    }

    .gig-card-ticket-btn {
        position: static;
        display: block;
        text-align: center;
        margin: 10px 15px 15px;
        border-radius: 10px;
    }

    .date-heading {
        flex-wrap: wrap;
        gap: 5px;
    }

    .date-count {
        width: 100%;
        margin-left: 0;
    }
}
