/* ==========================================================
   Site Theme — Auto-generated from database settings.
   Do not edit this file directly; use the admin theme editor.
   ========================================================== */

:root {
    /* Colors */
    --theme-primary: #0077AA;
    --theme-secondary: #004477;
    --theme-accent: #fbc729;
    --theme-bg: #005588;
    --theme-text: #f5f5f5;
    --theme-link: #fbc729;

    /* Typography */
    --theme-heading-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --theme-body-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --theme-base-font-size: 1.000rem;
    --theme-line-height: 1.600;

    /* Heading sizes (computed from base × scale ratio) */
    --theme-h1-size: 3.052rem;
    --theme-h2-size: 2.441rem;
    --theme-h3-size: 1.953rem;
    --theme-h4-size: 1.562rem;
    --theme-h5-size: 1.250rem;
    --theme-h6-size: 1.000rem;

    /* Layout */
    --theme-content-max-width: 1140px;
    --theme-site-margin: 1rem;
    --theme-block-gap: 2rem;

    /* Buttons */
    --theme-btn-radius: 0.25rem;
    --theme-btn-padding-x: 1.5rem;
    --theme-btn-padding-y: 0.5rem;

    /* Header */
    --theme-header-bg: #0077AA;
    --theme-header-link: #fbc729;

    /* Footer */
    --theme-footer-bg: #006699;
    --theme-footer-text: #f5f5f5;

    /* Bootstrap variable overrides — these make Bootstrap's own
       utility classes (bg-dark, text-muted, btn-primary, etc.)
       pick up the theme colors automatically. */
    --bs-primary: #0077AA;
    --bs-secondary: #004477;
    --bs-body-bg: #005588;
    --bs-body-color: #f5f5f5;
    --bs-link-color: #fbc729;
    --bs-link-hover-color: #fbc729;
    --bs-body-font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-size: 1.000rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.600;
}

/* ---- Base Typography ---- */

body {
    font-family: var(--theme-body-font);
    font-size: var(--theme-base-font-size);
    font-weight: 400;
    line-height: var(--theme-line-height);
    color: var(--theme-text);
    background-color: var(--theme-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--theme-heading-font);
    color: var(--theme-text);
    margin-bottom: 0.5em;
}

h1 { font-size: var(--theme-h1-size); }
h2 { font-size: var(--theme-h2-size); }
h3 { font-size: var(--theme-h3-size); }
h4 { font-size: var(--theme-h4-size); }
h5 { font-size: var(--theme-h5-size); }
h6 { font-size: var(--theme-h6-size); }

/* ---- Links ---- */

a {
    color: var(--theme-link);
}

a:hover {
    color: var(--theme-link);
    filter: brightness(1.2);
}

/* Don't apply brightness to links that wrap images */
a:has(img):hover {
    filter: none;
}

/* ---- Muted Text ---- */
/* Override Bootstrap's .text-muted to use theme text color at reduced opacity,
   so it remains visible on both light and dark backgrounds. */

.text-muted {
    color: var(--theme-text) !important;
    opacity: 0.55;
}

/* ---- Layout ---- */

.container {
    max-width: var(--theme-content-max-width);
    padding-left: var(--theme-site-margin);
    padding-right: var(--theme-site-margin);
}

.container.my-4 {
    margin-top: var(--theme-block-gap) !important;
    margin-bottom: var(--theme-block-gap) !important;
}

/* ---- Blog Cards ---- */

.blog-card {
    background-color: color-mix(in srgb, var(--theme-text) 8%, var(--theme-bg));
    border-radius: 12px;
    color: var(--theme-text);
    transition: transform 0.15s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
}

.blog-card h4 {
    color: var(--theme-text);
}

.blog-card p, .blog-card div {
    color: var(--theme-text);
}

.blog-card-thumb {
    float: right;
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 12px;
    margin-bottom: 8px;
}

.blog-card-category {
    margin-bottom: 0;
}

.blog-card-date {
    clear: both;
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 8px;
}

/* ---- Buttons ---- */

.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    border-radius: var(--theme-btn-radius);
    padding: var(--theme-btn-padding-y) var(--theme-btn-padding-x);
}

.btn-primary:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    border-radius: var(--theme-btn-radius);
    padding: var(--theme-btn-padding-y) var(--theme-btn-padding-x);
}

.btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
    border-radius: var(--theme-btn-radius);
    padding: var(--theme-btn-padding-y) var(--theme-btn-padding-x);
}

.btn-outline-primary:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

/* ---- Header / Navbar ---- */

.site-header {
    background-color: var(--theme-header-bg) !important;

}

.site-header a,
.site-header .nav-grid-btn {
    color: var(--theme-header-link) !important;
}

.site-header a:hover,
.site-header .nav-grid-btn:hover {
    color: var(--theme-header-link) !important;
    filter: brightness(1.2);
}

/* ---- Social Media Icons ---- */

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-header-link);
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.social-icon:hover {
    color: var(--theme-header-link);
    opacity: 1;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Side nav layout — nav items sit to the right of the logo
   on desktop, forming a horizontal row. Mobile still collapses. */
@media (min-width: 992px) {
    .site-header .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Let the nav area fill the remaining space to the right */
    .site-header #navGrid {
        flex: 1;
        min-width: 0;
    }

    /* Override the JS max-width constraint and lay out buttons
       flush-right in a single row */
    .site-header .nav-grid {
        max-width: none !important;
        justify-content: flex-end;
        padding-bottom: 0;
    }

    /* Don't stretch buttons — let them size to their content */
    .site-header .nav-grid-btn {
        flex: 0 0 auto;
    }

    /* Social icons sit after the nav, no left auto-margin */
    .site-header .social-icons {
        margin-left: 0.75rem !important;
    }
}

/* ---- Footer ---- */

footer {
    background-color: var(--theme-footer-bg) !important;
    color: var(--theme-footer-text);
}

footer .text-muted {
    color: var(--theme-footer-text) !important;
}



/* ---- Content ---- */

.post-content img, .page-content img {
    max-width: 100%;
    height: auto;
}

.post-content, .page-content {
    line-height: var(--theme-line-height);
}

/* ---- Responsive Video Embeds ---- */

/* Wrapper produced by TinyMCE's media plugin for embedded videos.
   Uses intrinsic aspect-ratio so the iframe scales responsively. */
.post-content iframe,
.page-content iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 1em auto;
}

/* ---- Responsive Overrides ---- */

/* Tablet: slightly reduce large headings for medium screens */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --theme-h1-size: 2.747rem;
        --theme-h2-size: 2.197rem;
    }
}

/* Phone: scale down headings, tighten spacing for small screens */
@media (max-width: 767.98px) {
    :root {
        --theme-h1-size: 2.289rem;
        --theme-h2-size: 1.953rem;
        --theme-h3-size: 1.660rem;
        --theme-h4-size: 1.406rem;
        --theme-site-margin: 0.75rem;
        --theme-block-gap: 1.5rem;
    }

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



/* ---- Custom CSS ---- */

/* Emo Philips — custom overrides */

/* Links: gold turns white on hover (original site behavior) */
a:hover {
    color: #ffffff !important;
    text-decoration: none;
}

/* Navbar border accent */
.navbar {
    border-bottom: 1px solid #004477;
}

/* Footer styling */
footer {
    border-top: 1px solid #004477;
}

/* Cards on dark background */
.card {
    background-color: #006699;
    border: 1px solid #004477;
    color: #f5f5f5;
}

.card a {
    color: #fbc729;
}

/* Muted text visibility on dark bg */
.text-muted {
    color: #aaccdd !important;
}

/* Tables on dark background */
.table {
    color: #f5f5f5;
}

.table td, .table th {
    border-color: #004477;
}

/* ---- Content Frame ---- */
/* 3D beveled picture-frame border around main content area */
.content-frame {
    border: 2px solid #c9a84e;
    border-radius: 2px;
    box-shadow:
        inset 1px 1px 0 0 #e0c870,
        inset -1px -1px 0 0 #8a6a20,
        0 0 0 2px var(--theme-content-bg, #1a5070),
        0 0 0 4px #c9a84e,
        1px 1px 0 4px #e0c870,
        -1px -1px 0 4px #8a6a20,
        2px 3px 6px rgba(0,0,0,0.25);
    padding: 1.5rem;
}

/* ---- Homepage Shows (Looming Gigs) ---- */
.homepage-shows-heading {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.homepage-show-entry {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}
.homepage-show-location {
    color: #d4a843;
    text-decoration: none;
}
.homepage-show-location:hover {
    color: #e8c060;
    text-decoration: underline;
}
.homepage-show-details {
    color: #fff;
}
.homepage-shows-link {
    color: #d4a843;
    text-decoration: none;
    font-size: 1.1rem;
}
.homepage-shows-link:hover {
    color: #e8c060;
    text-decoration: underline;
}
