﻿/* ============================================================
   SURVEYOURS — HEADER + FOOTER CSS  (separate, shared file)
   ============================================================
   WHAT THIS IS
   A standalone stylesheet for ONLY the header and footer.
   The header/footer HTML lives in your layout files — this
   file does not add, move, or change any HTML.

   WHY IT IS SEPARATE
   The header and footer appear on every page, not just the
   homepage. Their styles therefore must NOT live in
   homepages_styling.css (homepage only). They live here, so
   one file can be loaded by every layout.

   HOW TO USE
   1. Save this file in wwwroot as:
        new-css/surveyours-header-footer.css
   2. Link it in BOTH layouts, in <head>, AFTER Bootstrap:
        <!-- in _StartupNewLayout.cshtml AND LoginLayout.cshtml -->
        <link rel="stylesheet"
              href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
        <link rel="stylesheet"
              href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
        <link href="~/new-css/surveyours-header-footer.css"
              rel="stylesheet" asp-append-version="true" />
   3. Keep in both layouts: remixicon.css, the favicon,
      bootstrap.min.css, and the bootstrap-icons CDN.
   4. Do NOT also keep the header/footer rules in
      homepages_styling.css. When you use this file, remove
      Sections 15-16 (Header / Footer) from the homepage
      clean CSS, or the same rules will load twice.
   5. Hard-refresh (Ctrl+F5) after linking it.

   WHAT IT REPLACES / DOES NOT REPLACE
   - Replaces: the header/footer parts of the old
     startupnewlayout.css, and the footer Letter Getters
     logo rules from letter-getters-logo.css.
   - Does NOT replace: homepages_styling.css, us-voting-map
     CSS, or letter-getter-hud.css / the HUD script. Those
     are page/game specific and stay separate.
   - No Razor, controller, or JavaScript changes needed.

   DESIGN RULES — matched to the Opinion Poll mockup
   (Surveyours_Opinion_Poll_Mockup.html, .site-head / footer)
   - Cards: white. Background around them: #EDF0F3 is set
     by the page, not by this file — this file sets NO
     body or .container rules, so it cannot break Login
     or other pages it is loaded on.
   - Header card: white, 14px radius on ALL corners, the
     mockup shadow, 12px 20px padding — a floating card,
     not a bar squared off / rounded only at the bottom.
   - Header WIDTH + TOP MARGIN (fixed in this revision):
     in the mockup the header is NOT a full-width bar.
     It sits INSIDE .wrap { max-width:1180px;
     padding:18px 18px 40px }, so the header box itself
     is 1180 - 18 - 18 = 1144px wide at most, centred,
     with 18px of page background ABOVE it and 18px at
     each side. The live header was wider (a 1180px
     Bootstrap .container, margin:0, stretching to
     width:100%) and flush with the top of the page.
     This file now gives .topbar that same geometry:
     max-width:1144px, width:calc(100% - 36px),
     margin:18px auto 0. The footer card is set to the
     same 1144px / calc(100% - 36px) width so header,
     page content, and footer all line up. On small
     screens the mockup wrap padding drops to 12px, so
     below 620px the gutter drops to 12px a side and
     the top margin to 12px.
   - Navy #16365C (mockup navy): active nav link, hover
     text, headings, footer text. Deep navy #0F2A47 is
     kept as a variable for footer emphasis if needed.
   - Nav links are MUTED grey at rest (mockup), not navy.
     The active page underline is NAVY (mockup uses
     inset 0 -2px 0 navy) — NOT red.
   - Red #D01C03: ACTIONS ONLY — Log In and Logout.
   - Buttons are RECTANGLES, radius 8px, in the mockup —
     Log In / Logout / Sign Up are NOT pills in this file.
   - Footer note: the mockup's own footer is a simple
     centred line, but the real layout footer
     (.footer-redesign) carries the brand row, Follow us,
     Letter Getters, and legal links, so this file keeps
     styling that richer footer as a white card in the
     same mockup radius / shadow / navy system.
   ============================================================ */

/* ---------- 1. VARIABLES (self-contained) ---------- */
/* Prefixed --svhf- so this file works on its own in
   LoginLayout.cshtml, and cannot clash with the homepage
   file's --sv- variables when both are loaded. */
:root {
    --svhf-card: #FFFFFF;
    --svhf-navy: #16365C;
    --svhf-navy-deep: #0F2A47;
    --svhf-navy-soft: #E7EDF3;
    --svhf-red: #D01C03;
    --svhf-red-dark: #A81502;
    --svhf-text: #1C2B3A;
    --svhf-muted: #5D6D7E;
    --svhf-border: #D9E0E7;
    --svhf-radius: 14px;
    --svhf-shadow: 0 1px 3px rgba(22,54,92,.08),0 8px 24px rgba(22,54,92,.06);
    --svhf-font: "Poppins","Segoe UI",Arial,sans-serif;
}

/* ---------- 2. HEADER — shared top bar ---------- */
/* Markup in _StartupNewLayout.cshtml (and the equivalent
   header in LoginLayout.cshtml):
   <nav class="navbar navbar-expand-xl bg-light container
               topbar topbar-fit"> ... </nav>
   Bootstrap still supplies navbar / collapse / btn. */
/* Width + top margin match the mockup .wrap (see the
   notes at the top of this file): the header is the
   wrap's INNER box — 1144px max, 18px gutters, and
   18px down from the top of the page. The stronger
   selector and !important on the geometry are needed
   because this element is also a Bootstrap .container
   (1320px at xxl, width:100%, margin auto), which is
   what was making the live header wider than the
   mockup's and flush with the top. */
nav.topbar.topbar-fit, .topbar.topbar-fit {
    background: var(--svhf-card) !important;
    border: 0;
    border-radius: var(--svhf-radius);
    box-shadow: var(--svhf-shadow);
    padding: 12px 20px !important;
    margin: 18px auto 0 !important;
    max-width: 1168px !important;
    width: calc(100% - 68px) !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-family: var(--svhf-font);
}

.topbar .logo {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
}

.topbar .navbar-brand {
    padding: 0;
    margin: 0;
    line-height: 0
}

    .topbar .navbar-brand img {
        height: 34px;
        width: auto;
        display: block
    }

/* Pink ribbon: hidden by default. The layout's October
   script adds .breast-cancer-awareness to <html> from
   1 Oct to 1 Nov, and only then is it shown. */
.breast-cancer-ribbon {
    height: 22px;
    width: auto;
    display: none
}

html.breast-cancer-awareness .breast-cancer-ribbon {
    display: block
}

/* Mobile toggler (Bootstrap Icons .bi-list inside) */
.navbar-toggler {
    border: 1px solid var(--svhf-border) !important;
    border-radius: 8px;
    padding: 6px 10px;
    background: var(--svhf-card);
    margin-left: auto;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px var(--svhf-navy-soft)
    }

.topbar .navbar-toggler-icon {
    background-image: none !important;
    color: var(--svhf-navy);
    font-size: 1.4rem;
    width: auto;
    height: auto;
    line-height: 1;
}

#navbarBtns {
    flex-grow: 1
}

.topbar :focus-visible,
.footer-redesign :focus-visible {
    outline: 3px solid var(--svhf-navy);
    outline-offset: 2px;
}

/* ---------- 3. HEADER — logged-in nav ---------- */
/* <nav class="nav-auth"><ul class="nav-list"> ... */
.nav-auth {
    width: 100%
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}

    .nav-list li {
        margin: 0;
        padding: 0
    }

    .nav-list a {
        color: var(--svhf-muted);
        font-weight: 500;
        font-size: 13.5px;
        text-decoration: none;
        padding: 9px 10px;
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        border-radius: 8px;
        border-bottom: 0;
    }

        .nav-list a:hover {
            color: var(--svhf-navy);
            background: var(--svhf-navy-soft);
            text-decoration: none;
        }

        .nav-list a.active {
            color: var(--svhf-navy);
            font-weight: 600;
            box-shadow: inset 0 -2px 0 var(--svhf-navy);
        }

/* Logout — an action, so red. Mockup .btn-logout:
   rectangle, radius 8px (not a pill). */
.nav-cta {
    display: flex;
    align-items: center
}

.chip-logout, .btn.chip-logout {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: var(--svhf-red) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    font-weight: 600;
    font-size: 13.5px;
    min-height: 38px;
    text-decoration: none;
}

    .chip-logout:hover, .btn.chip-logout:hover {
        background: var(--svhf-red-dark) !important;
        border-color: var(--svhf-red-dark) !important;
    }

    .chip-logout svg {
        width: 18px;
        height: 18px;
        stroke: #fff;
        flex-shrink: 0;
    }

/* ---------- 4. HEADER — logged-out actions ---------- */
/* Scoped to .topbar on purpose: these rules must NOT
   restyle every .btn-primary on Login / other pages. */
.topbar .actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

    .topbar .actions a {
        text-decoration: none
    }

.topbar .btn-primary {
    background: var(--svhf-red) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 13.5px;
    min-height: 38px;
}

    .topbar .btn-primary:hover {
        background: var(--svhf-red-dark) !important;
        border-color: var(--svhf-red-dark) !important;
    }

.topbar .btn-signup {
    background: transparent;
    color: var(--svhf-navy);
    border: 2px solid var(--svhf-navy);
    border-radius: 8px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 13.5px;
    min-height: 38px;
    cursor: pointer;
}

    .topbar .btn-signup:hover {
        background: var(--svhf-navy);
        color: #fff
    }

/* ---------- 5. FOOTER — shared footer card ---------- */
/* Markup in the layout, after @RenderBody():
   <div class="container footer-redesign"> ... </div> */
.footer-redesign {
    background: var(--svhf-card);
    border: 0;
    border-radius: var(--svhf-radius);
    box-shadow: var(--svhf-shadow);
    padding: 26px 28px 22px !important;
    /* Same width as the header above (mockup wrap inner
     box), so the footer lines up with the header and
     the page content instead of running 36px wider. */
    margin: 40px auto 8px;
    max-width: 1168px !important;
    width: calc(100% - 68px) !important;
    box-sizing: border-box;
    font-family: var(--svhf-font);
    color: var(--svhf-text);
}

/* Brand row: "Real Votes. Real Results. Real-Time." */
.cast-your-vote-and-wrapper {
    margin: 0
}

.cast-your-vote-and {
    color: var(--svhf-navy) !important;
    margin: 0;
    font-size: clamp(1.4rem,3vw,2rem);
    font-weight: 800;
    line-height: 1.2;
}

.justify-end-img {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.grey-blue-minimalist-2 {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

.footer-divider {
    height: 1px;
    background: var(--svhf-border);
    margin: 20px 0;
}

/* ---------- 6. FOOTER — follow + Letter Getters row ---------- */
.footer-action-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.follow-link, .frame-18.follow-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-wrapper-17 {
    color: var(--svhf-navy);
    font-weight: 700;
    font-size: .95rem;
}

.follow-link a {
    line-height: 0
}

.image-3 {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block
}

.footer-action-divider {
    width: 1px;
    align-self: stretch;
    background: var(--svhf-border);
}

/* Letter Getters footer link — this is the part that used
   to live in letter-getters-logo.css. The HUD styles are
   NOT here; they are game-specific, not footer styles. */
.letter-getters-link {
    text-decoration: none !important;
    margin-left: auto;
}

    .letter-getters-link:hover {
        text-decoration: none
    }

.letter-getters-logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.letter-getters-logo--small .letter-getters-medallion {
    width: 44px;
    height: 44px;
}

.letter-getters-medallion-wrap {
    display: inline-flex;
    line-height: 0
}

.letter-getters-medallion {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.letter-getters-label {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    color: var(--svhf-navy);
}

    .letter-getters-label > span {
        font-weight: 800;
        font-size: 1rem
    }

    .letter-getters-label small {
        color: var(--svhf-muted);
        font-size: .8rem;
    }

/* ---------- 7. FOOTER — legal row ---------- */
.footer-legal-row {
    margin: 0
}

.footer-link, .frame-38.footer-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.text-wrapper-18 {
    color: var(--svhf-muted);
    font-size: .88rem;
    margin: 0;
}

    .text-wrapper-18 a {
        color: var(--svhf-navy);
        font-weight: 600;
        text-decoration: none;
    }

        .text-wrapper-18 a:hover {
            color: var(--svhf-navy);
            text-decoration: underline;
        }

.frame-39 {
    display: flex;
    gap: 18px;
    flex-wrap: wrap
}

/* ---------- 8. RESPONSIVE ---------- */
@media (max-width:1199px) {
    /* Bootstrap expands this nav at xl; below that it
     collapses behind the toggler — stack the list. */
    .nav-list {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        padding: 12px 0 6px;
    }

    .nav-cta {
        margin-top: 6px
    }
}

@media (max-width:991px) {
    .justify-end-img {
        justify-content: flex-start;
        margin-top: 12px
    }
}

@media (max-width:767px) {
    .topbar {
        padding: 12px !important;
        border-radius: var(--svhf-radius);
    }

        .topbar .navbar-brand img {
            height: 30px
        }

        .topbar .actions {
            margin-left: 0
        }

    .footer-redesign {
        padding: 20px 16px !important
    }

    .footer-action-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-action-divider {
        display: none
    }

    .letter-getters-link {
        margin-left: 0
    }

    .footer-link, .frame-38.footer-link {
        flex-direction: column
    }
        /* Legal row on mobile — "© 2026 Surveyours.
     All rights reserved." was first, above the
     links. It should be below everything else,
     so put the copyright last in the stack. */
        .footer-link .text-wrapper-18 {
            order: 2 !important;
            margin-top: 10px !important
        }

        .footer-link .frame-39 {
            order: 1 !important
        }

    .frame-39 {
        gap: 10px 16px
    }
}

@media (max-width:620px) {
    /* Mockup .wrap padding drops to 12px at this size,
     so the header/footer gutters and the header's
     top margin drop to 12px with it. */
    nav.topbar.topbar-fit, .topbar.topbar-fit {
        margin-top: 12px !important;
        width: calc(100% - 24px) !important;
    }

    .footer-redesign {
        width: calc(100% - 24px) !important;
    }
}
/* ---------- 9. PAGE SCALE — desktop only ---------- */
/* The site reads slightly bigger than Yahoo.com.
   At 80% browser zoom it looks right, so this
   makes 80% the new 100% on desktop and tablet
   screens. `zoom` scales the whole page — text,
   images, cards, header and footer — and it
   scales the layout too, so nothing overflows
   or leaves a gap at the bottom. It is only
   applied at 768px and up, so phones are
   untouched — the site already looks fine there.
   This file is loaded by both layouts, so the
   rule applies to every page, not just the
   homepage. */
@media (min-width:768px) {
    html {
        zoom: 0.8;
    }
}

@media (prefers-reduced-motion:reduce) {
    .nav-list a, .chip-logout,
    .topbar .btn-primary, .topbar .btn-signup {
        transition: none
    }
}
/* End of Surveyours Header + Footer CSS */
