/* Global styles — PopiCon South Bend */

/* ── Base ─────────────────────────────────────────────── */
body {
    background-color: var(--popi-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    color: var(--popi-text);
    font-family: var(--popi-font-body);
    font-size: 1.0625rem;  /* 17px — slightly larger for editorial feel */
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--popi-font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--popi-text);
}

a {
    color: var(--popi-accent);
    text-decoration: none;
}

a:hover {
    color: var(--popi-accent-hover);
    text-decoration: underline;
}

/* ── Minimal Site Header ─────────────────────────────── */
/* Full redesign of NavMenu.razor happens in Plan 04-02.  */
/* These styles support the transitional state.           */
.navbar {
    background: var(--popi-bg);
    border-bottom: 1px solid var(--popi-border);
}

.navbar .navbar-brand {
    font-family: var(--popi-font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--popi-text);
}

.navbar .nav-link {
    font-family: var(--popi-font-body);
    font-size: 0.875rem;
    color: var(--popi-muted);
    letter-spacing: 0.03em;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--popi-accent);
    text-decoration: none;
}

.navbar-toggler {
    border-color: var(--popi-border);
}

.navbar-toggler-icon {
    filter: none;  /* remove the dark-mode invert from old theme */
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    background: var(--popi-surface);
    padding: 1.5rem 0;
    border-top: 1px solid var(--popi-border);
    color: var(--popi-muted);
    font-family: var(--popi-font-body);
    font-size: 0.8125rem;
}

.footer-link {
    color: var(--popi-muted);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--popi-accent);
    text-decoration: underline;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
    background: var(--popi-accent);
    border-color: var(--popi-accent);
    color: #fff;
    font-family: var(--popi-font-heading);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--popi-accent-hover);
    border-color: var(--popi-accent-hover);
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--popi-muted);
    color: var(--popi-muted);
    font-family: var(--popi-font-heading);
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btn-outline-secondary:hover {
    background: var(--popi-muted);
    color: var(--popi-bg);
    border-color: var(--popi-muted);
}

/* ── Section Utilities ───────────────────────────────── */
.section-heading {
    font-family: var(--popi-font-heading);
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--popi-text);
    margin-bottom: 0.5rem;
}

/* Accent rule: a thin horizontal line in brand gold */
.section-accent {
    width: 48px;
    height: 2px;
    background: var(--popi-gold);
}

/* ── Text Utilities ──────────────────────────────────── */
.text-accent {
    color: var(--popi-accent) !important;
}

.text-gold {
    color: var(--popi-gold) !important;
}

/* ── Layout ──────────────────────────────────────────── */
.bg-surface {
    background-color: var(--popi-surface) !important;
}

.container-narrow {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ── Accessibility ───────────────────────────────────── */
/* Ensure focus rings are visible on the light background */
:focus-visible {
    outline: 2px solid var(--popi-accent);
    outline-offset: 3px;
}
