/* Minimal custom styles for Vapor CMS.
   Theme-driven styles (colors, fonts, line-height) are in theme.css
   generated by ThemeCSSController — this file is for structural rules only. */

/* Prevent images from overflowing their containers */
img {
    max-width: 100%;
    height: auto;
}

/* ---- Header Branding ---- */
.header-logo {
    max-height: 100px;
    max-width: 100%;
    display: block;
}
.header-quip {
    font-size: 0.85rem;
    text-align: right;
    padding-right: 0.5rem;
    white-space: normal;
}

/* ---- Nav Grid ---- */
/* Flexible button grid below the logo. Adapts to any number of items,
   roughly 3 across. Width is constrained to the logo by JS. */
.nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
}
.nav-grid-btn {
    flex: 1 1 calc(33.33% - 0.25rem);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 0.4rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
}
.nav-grid-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* On mobile, nav buttons stack and logo leaves room for hamburger */
@media (max-width: 991.98px) {
    .nav-grid-btn {
        flex: 1 1 100%;
    }
    #brandWrap {
        max-width: calc(100% - 60px);
        flex-shrink: 1;
        min-width: 0;
    }
}

/* ---- Events / Shows Page ---- */
/* Subtle separator between collapsed shows */
.show-row + .show-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Detail area — collapsed by default, animated open */
.show-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    opacity: 0;
}
.show-row.active .show-detail {
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.35s ease-in, opacity 0.3s ease-in;
}
/* Frame around the active/expanded show */
.show-row {
    transition: border-color 0.2s, padding 0.2s, margin 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0 0.75rem;
    margin: 0;
}
.show-row.active {
    border-color: #c9a84e;
    margin: 0.5rem 0;
    box-shadow:
        inset 1px 1px 0 0 #e0c870,
        inset -1px -1px 0 0 #8a6a20;
}
/* Hide the right-side venue name when expanded */
.show-row.active .show-venue-label {
    display: none;
}
/* Gold-bordered ticket button */
.event-ticket-btn {
    border-color: #c9a84e;
    color: #fff;
}
.event-ticket-btn:hover {
    border-color: #e0c870;
    background: rgba(201, 168, 78, 0.15);
    color: #fff;
}
/* Mobile: center-align show rows */
@media (max-width: 767.98px) {
    .show-summary {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }
    .show-venue-label {
        margin-top: 0.25rem;
    }
    .show-detail > div {
        align-items: center !important;
        text-align: center;
    }
}
/* Remove separator lines adjacent to the active show */
.show-row.active + .show-row {
    border-top: none;
}

/* ---- Homepage Shows ---- */
/* Base styling for the auto-generated show listing on the homepage.
   Sites can override colors via theme customCSS. */
.homepage-shows {
    margin-bottom: 1.5rem;
}
.homepage-show-entry {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}
.homepage-show-location {
    text-decoration: none;
}
.homepage-show-location:hover {
    text-decoration: underline;
}
.homepage-shows-link {
    text-decoration: none;
    font-size: 1.1rem;
}
.homepage-shows-link:hover {
    text-decoration: underline;
}

/* ---- Mobile Adjustments ---- */

@media (max-width: 767.98px) {
    /* Show venue name on its own line below city + date */
    .homepage-show-venue {
        display: block;
    }
    .homepage-show-sep {
        display: none;
    }

    /* Prevent GIF tables from overflowing on narrow screens.
       The table has inline width: 750px and images have width="150"
       attributes, so !important is needed to override them. */
    .page-content table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
    }
    .page-content table td {
        width: auto !important;
    }
    .page-content table img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Prevent long words and URLs from overflowing content area */
    .post-content,
    .page-content {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Allow inline code to break across lines on narrow screens */
    code {
        word-break: break-all;
    }
}

/* ---- Content Classes ---- */
/* These classes replace inline styles from the ExpressionEngine import.
   Editing a class here changes ALL instances site-wide — no need to
   update individual page content in the admin. */

/* Pull-quote text (large bold statement) */
.quote-text {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

/* Attribution line below a quote ("-- Patton Oswalt, Feb 1, 2022") */
.quote-attribution {
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem;
}

/* Centered section heading in Lucida Sans (voice credits, press photos, etc.) */
.section-header {
    text-align: center;
    font-family: 'lucida sans unicode', 'lucida grande', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* "LOOMING GIGS" style heading on the homepage */
.gigs-heading {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Flex row for centered inline content (image grids, credit groups) */
.content-flex {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    margin-top: 1em;
    align-items: flex-start;
}

/* Same as content-flex but vertically centered (e.g., voice acting logos) */
.content-flex-center {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    margin-top: 1em;
    align-items: center;
}

/* Flex row with wider gap (press photo pairs) */
.content-flex-2em {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    margin-top: 1em;
}

/* Body text at 18px with generous line-height (bio paragraphs) */
.body-text-lg {
    font-size: 18px;
    line-height: 1.8;
}

/* Italic lead-in paragraph */
.italic-intro {
    font-style: italic;
    margin-bottom: 1.5em;
}

/* ---- Content Cards ---- */
/* Bordered content blocks with optional 2-column grid layout.
   Usage in TinyMCE: apply "Card Grid" to a wrapper, then apply
   "Bordered Card" to each content block inside it. */

/* 2-column grid wrapper — align-items: start prevents short cards
   from stretching to match the tallest card in their row */
.content-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* Individual bordered card */
.content-card {
    border: 3px double #c9a84e;
    padding: 1.5rem;
    text-align: center;
}

/* Mobile: single column stack */
@media (max-width: 767.98px) {
    .content-card-grid {
        grid-template-columns: 1fr;
    }
}
