/* 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) {
    /* 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;
    }
}
