/* =============================================
   Houston Club Shows — Vintage Calendar Styles
   Inspired by the Zelda's October flyer
   ============================================= */

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

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #f5f0e8;
    color: #1a1a1a;
    line-height: 1.4;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration-color: #999;
}

a:hover {
    text-decoration-color: #1a1a1a;
}

/* Site header */
.site-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    border-bottom: 4px double #1a1a1a;
    margin-bottom: 0;
}

.site-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.site-header .subtitle {
    font-size: 1rem;
    font-style: italic;
    margin-top: 0.25rem;
    color: #555;
}

/* Calendar nav */
.calendar-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem;
}

.nav-arrows {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.nav-arrows a,
.nav-arrows span {
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.3em 0.6em;
    border: 2px solid #1a1a1a;
    background: #fff;
    min-width: 5em;
    text-align: center;
}

.nav-arrows a:hover {
    background: #1a1a1a;
    color: #f5f0e8;
}

.nav-arrows .disabled {
    opacity: 0.3;
    border-color: #999;
}

.month-title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.nav-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.club-filter {
    display: flex;
    gap: 0;
}

.club-filter a {
    display: block;
    padding: 0.3em 0.8em;
    border: 2px solid #1a1a1a;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fff;
}

.club-filter a + a {
    border-left: none;
}

.club-filter a.active {
    background: #1a1a1a;
    color: #f5f0e8;
}

.club-filter a:hover:not(.active) {
    background: #e8e3db;
}

.month-jump {
    display: flex;
    gap: 0.25rem;
}

.month-jump select {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85rem;
    padding: 0.3em 0.5em;
    border: 2px solid #1a1a1a;
    background: #fff;
    cursor: pointer;
}

/* Calendar grid */
.calendar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 3px solid #1a1a1a;
    border-top: 3px solid #1a1a1a;
}

.dow {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 0.5em;
    border-right: 3px solid #1a1a1a;
    border-bottom: 3px solid #1a1a1a;
    background: #1a1a1a;
    color: #f5f0e8;
}

.day {
    min-height: 120px;
    border-right: 3px solid #1a1a1a;
    border-bottom: 3px solid #1a1a1a;
    padding: 0.35rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.day.empty {
    background: #ece7df;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    display: block;
}

.day-shows {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Fitzgerald's shows — primary, bold, bigger */
.show-fitz {
    margin-bottom: auto;
}

.show-fitz .band-link {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-decoration: none;
}

.show-fitz .band-link:hover {
    text-decoration: underline;
}

/* Zelda's shows — smaller, secondary, bottom of cell */
.show-zelda {
    margin-top: auto;
    padding-top: 0.3rem;
    border-top: 1px solid #ccc;
}

.show-zelda .venue-label {
    display: block;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    line-height: 1;
}

.show-zelda .band-link {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
    color: #555;
}

.show-zelda .band-link:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* Show metadata (time, price) */
.show-meta {
    display: block;
    font-size: 0.55rem;
    color: #888;
    font-style: italic;
    margin-top: 0.1em;
}

/* History page */
.history {
    max-width: 750px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.history h2 {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid #1a1a1a;
    line-height: 1.2;
}

.history h2:first-child {
    margin-top: 0;
}

.history p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    text-align: justify;
    hyphens: auto;
}

.history img {
    max-width: 100%;
    min-width: 100%;
    height: auto;
}

.history .img-float-left {
    float: left;
    max-width: 300px;
    min-width: 0;
    margin: 0.25rem 1.25rem 0.75rem 0;
}

.history .img-float-right {
    float: right;
    max-width: 300px;
    min-width: 0;
    margin: 0.25rem 0 0.75rem 1.25rem;
}

.history a {
    text-decoration-color: #999;
    text-underline-offset: 2px;
}

.history a:hover {
    text-decoration-color: #1a1a1a;
}

/* Site footer */
.site-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 4px double #1a1a1a;
    font-size: 0.8rem;
    color: #888;
    max-width: 1200px;
    margin: 0 auto;
}

/* Band detail page */
.band-header {
    text-align: center;
    padding: 1.5rem 1rem;
}

.band-header h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.band-header .show-count {
    font-style: italic;
    color: #555;
    margin-top: 0.25rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.shows-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    border-collapse: collapse;
}

.shows-table th,
.shows-table td {
    padding: 0.5em 0.75em;
    border: 2px solid #1a1a1a;
    text-align: left;
    font-size: 0.85rem;
    vertical-align: top;
}

.shows-table th {
    background: #1a1a1a;
    color: #f5f0e8;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.shows-table tr:nth-child(even) {
    background: #f5f0e8;
}

.shows-table .date-cell {
    white-space: nowrap;
    font-weight: 700;
}

.shows-table .bands-cell a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* Day detail page */
.day-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.day-detail-date {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #1a1a1a;
}

.day-detail-show {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
}

.day-detail-show:last-child {
    border-bottom: none;
}

.show-venue {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    margin-bottom: 0.5rem;
}

.day-detail-show .show-bands-list {
    margin-bottom: 0.75rem;
}

.day-detail-show .band-link {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-decoration: none;
    margin-right: 0.5rem;
}

.day-detail-show .band-link:hover {
    text-decoration: underline;
}

.day-detail-show .show-meta {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

.day-detail-show .show-extra {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.25rem;
}

.show-images {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.show-image {
    max-width: 400px;
    margin: 0;
}

.show-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #1a1a1a;
}

.show-image figcaption {
    font-size: 0.8rem;
    color: #555;
    font-style: italic;
    margin-top: 0.25rem;
}

/* Clickable day numbers in calendar */
a.day-number {
    text-decoration: none;
    color: inherit;
}

a.day-number:hover {
    color: #555;
    text-decoration: underline;
}

/* Responsive — stack on narrow screens */
@media (max-width: 768px) {
    .dow {
        display: none;
    }

    .calendar-grid {
        display: flex;
        flex-direction: column;
        border-left: none;
    }

    .day {
        min-height: auto;
        border-left: 3px solid #1a1a1a;
        padding: 0.5rem;
    }

    .day.empty {
        display: none;
    }

    .day-number {
        font-size: 1.3rem;
    }

    .day-shows {
        gap: 0.25rem;
    }

    .show-zelda {
        margin-top: 0.25rem;
    }

    .month-title {
        font-size: 1.4rem;
    }

    .site-header h1 {
        font-size: 1.6rem;
    }

    .nav-controls {
        flex-direction: column;
        align-items: stretch;
    }

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

    .month-jump {
        text-align: center;
    }

    .shows-table th,
    .shows-table td {
        font-size: 0.75rem;
        padding: 0.35em 0.5em;
    }
}
