/* Chicago Art House Cinema - Styles */

:root {
    --bg: #f9f9f9;
    --bg-alt: #f0f0f0;
    --text: #1a1a1a;
    --text-muted: #555;
    --text-light: #777;
    --accent: #8B4513;
    --border: #ddd;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--sans);
    background: #111;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Rotating Background Images */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: url('https://images.squarespace-cdn.com/content/v1/5403d729e4b0903f2ff85444/1618950305546-QR2QO40JXWD3VTVYJPLI/image.jpeg?format=2500w');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: crossfade 32s ease-in-out infinite;
}

@keyframes crossfade {
    0%, 22% {
        background-image: url('https://images.squarespace-cdn.com/content/v1/5403d729e4b0903f2ff85444/1618950305546-QR2QO40JXWD3VTVYJPLI/image.jpeg?format=2500w');
    }
    25%, 47% {
        background-image: url('https://static.life.com/wp-content/uploads/migrated/2014/06/140606-chicago-01-1024x801.jpg');
    }
    50%, 72% {
        background-image: url('https://static.life.com/wp-content/uploads/migrated/2014/06/140606-chicago-05-1024x819.jpg');
    }
    75%, 97% {
        background-image: url('https://static.life.com/wp-content/uploads/migrated/2014/06/140606-chicago-091.jpg');
    }
    100% {
        background-image: url('https://images.squarespace-cdn.com/content/v1/5403d729e4b0903f2ff85444/1618950305546-QR2QO40JXWD3VTVYJPLI/image.jpeg?format=2500w');
    }
}

/* Header */
header {
    position: relative;
    z-index: 1;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

header .subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
}

.header-nav {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.header-nav a {
    font-size: 0.8125rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.header-nav a:hover {
    color: var(--accent);
}

/* Main */
main {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    min-height: 60vh;
}

/* Week Info */
.week-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.week-label {
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--text);
}

.updated {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Theater Filter */
.theater-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.filter-btn {
    font-family: var(--sans);
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--text);
    color: var(--text);
}

.filter-btn.active {
    background: var(--text);
    border-color: var(--text);
    color: white;
}

/* Tonight Section */
.tonight-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(139, 69, 19, 0.08);
    border-radius: 4px;
}

.tonight-header {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

/* Day Sections */
.day-section {
    margin-bottom: 1.5rem;
}

.day-header {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 400;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--text);
    margin-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.day-header:hover {
    color: var(--accent);
}

/* Collapsed state */
.day-section.collapsed .screenings {
    display: none;
}

/* Screenings - Compact List */
.screenings {
    display: flex;
    flex-direction: column;
}

.screening {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-alt);
    align-items: baseline;
}

.screening:last-child {
    border-bottom: none;
}

.film-title {
    font-family: var(--serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.film-title .film-link-invisible {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.film-title .format {
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: 0.5rem;
}


.film-venue {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    text-decoration: none;
}

.film-venue:hover {
    color: var(--accent);
}

.film-times {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
    text-decoration: none;
}

.film-times:hover {
    color: var(--accent);
}

/* No Screenings */
.no-screenings {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* About Page */
.about-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content a {
    color: var(--accent);
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
}

.theaters-list h4 {
    font-family: var(--serif);
    font-size: 0.8125rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.theaters-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.theaters-list a {
    font-size: 0.75rem;
    color: var(--text);
    text-decoration: none;
}

.theaters-list a:hover {
    color: var(--accent);
}

.footer-note {
    font-size: 0.625rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

.footer-note a {
    color: var(--text-light);
}

.footer-note a:hover {
    color: var(--accent);
}

/* Mobile */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    .screening {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .film-venue,
    .film-times {
        text-align: left;
    }
}
