/* ==========================================================================
   Site footer (Views/Partials/siteFooter.cshtml)

   One slim row, wrapping only on narrow screens:
     brand   - the WyGISC roundel and name, linking to WyGISC
     meta    - data sources, copyright and version, separated by dots
     button  - Contact Us (landing page only)

   Two variants:
     --dark  over the landing hero video and the login pages' theme
             gradient: a translucent, blurred bar.
     --light the help and developer pages, on a plain light background.
   ========================================================================== */

.wf-footer {
    font-size: 0.75rem;
    line-height: 1.45;
}

.wf-footer__inner {
    display: flex;
    align-items: center;
    gap: 0.4rem 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
}

/* ---- Brand --------------------------------------------------------------- */

.wf-footer__brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.wf-footer__logo {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.wf-footer__brand-name {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.wf-footer__brand:hover .wf-footer__brand-name,
.wf-footer__brand:focus-visible .wf-footer__brand-name {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* ---- Sources, copyright, version ---------------------------------------- */

/* A wrapping flex row rather than inline text, so the source whitespace
   between parts doesn't add to the dots' spacing. Each part stays whole;
   when the line must wrap it breaks between parts, never inside
   "© 2026 University of Wyoming" or the version. */
.wf-footer__meta {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.wf-footer__part + .wf-footer__part::before {
    content: "\00B7";
    margin: 0 0.5em;
    opacity: 0.6;
}

.wf-footer__meta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* ---- Contact ------------------------------------------------------------- */

.wf-footer__btn {
    flex: 0 0 auto;
    background: transparent;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ---- Dark: landing and login pages ---------------------------------------- */

.wf-footer--dark {
    /* Both the landing hero and the login pages' bodies are flex columns;
       the footer keeps its own height rather than stretch or shrink. */
    flex: 0 0 auto;
    position: relative;
    z-index: 10;
    padding: 0.5rem clamp(1rem, 3vw, 2.5rem);
    background: rgba(12, 20, 28, 0.72);
    backdrop-filter: blur(10px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
}

.wf-footer--dark .wf-footer__brand-name {
    color: rgba(255, 255, 255, 0.92);
}

/* The roundel's outer ring is dark brown, which disappears against this bar.
   A light plate behind it keeps the mark whole without recolouring it. */
.wf-footer--dark .wf-footer__logo {
    background: rgba(255, 255, 255, 0.94);
    padding: 1px;
}

.wf-footer--dark .wf-footer__meta a:hover,
.wf-footer--dark .wf-footer__meta a:focus-visible {
    color: #ffe082;
}

.wf-footer--dark .wf-footer__btn {
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.55);
}

.wf-footer--dark .wf-footer__btn:hover,
.wf-footer--dark .wf-footer__btn:focus-visible {
    background: rgba(255, 193, 7, 0.15);
    border-color: #ffc107;
    color: #ffe082;
    outline: none;
}

/* ---- Light: help and developer pages ------------------------------------- */

.wf-footer--light {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    color: #64748b;
}

.wf-footer--light .wf-footer__brand-name {
    color: #1a202c;
}

.wf-footer--light .wf-footer__meta a:hover,
.wf-footer--light .wf-footer__meta a:focus-visible {
    color: #0d5c6b;
}

.wf-footer--light .wf-footer__btn {
    color: #0d5c6b;
    border: 1px solid rgba(13, 92, 107, 0.5);
}

/* ---- Narrow screens: stack and centre ------------------------------------ */

@media (max-width: 768px) {
    .wf-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .wf-footer__meta {
        justify-content: center;
    }

    /* The sources always wrap here, so give them their own line and drop
       the dot that would otherwise start the next one. */
    .wf-footer__part:first-child {
        flex-basis: 100%;
    }

    .wf-footer__part:nth-child(2)::before {
        content: none;
    }
}
