
/*
 * SWOF / American Space Museum
 * Site-Wide Star Field Backgrounds & Related Theme Changes
 * PURPOSE: Apply a coordinated space-themed appearance to
 * selected areas of the custom SWOF WordPress theme.
 *
 * FEATURES:
 * - Continuous Milky Way image across all three desktop header areas.
 *   On mobile, the Milky Way appears behind the upper and lower
 *   navigation areas, with the original white middle section retained.
 * - CSS-generated starfields remain for navigation dropdowns
 *   and the bottom footer strip.
 * - Desktop middle header with a shared Milky Way background,
 *   white rounded ASM logo background, and outlined
 *   Hall of Honor and Donate buttons.
 * - Original white middle-header background on mobile.
 * - Milky Way image backgrounds for the left sidebar
 *   and main footer.
 * - Arial sidebar headings (22px) and navigation links (14px),
 *   compact outlined buttons, no bullets, and 1px black text outlines.
 * - Arial throughout the footer, with a 35% translucent
 *   black center-column overlay and 1px text outlines.
 * - Black footer link boxes with light-gray inset borders,
 *   centered text, compact vertical padding/spacing, and 2px
 *   text outlines outside the center column.
 * - Decorative footer images hidden while preserving
 *   Facebook, YouTube, and Instagram icons and links.
 * - Black outline around the footer ASM logo,
 *   without an outline around the American flag.
 *
 * IMPLEMENTATION:
 * - Managed as one separate Fluent Snippets CSS snippet.
 * - Loading method: Load as Stylesheet File.
 * - No SWOF theme files modified.
 * - Separately, the black separator in the Left Sidebar
 *   Custom HTML widget (custom_html-4) was removed by
 *   deleting its border-bottom declaration while
 *   retaining its 20px spacer. This is not CSS here.
 * - Disable the snippet to compare the original and
 *   customized appearances; re-enable to restore.
 * - Future migration to style.css is possible.
 *   Review !important declarations and CSS precedence
 *   individually before any such migration.
 *
 * RESPONSIVE DESIGN:
 * Desktop (641px and wider): one continuous Milky Way image
 * covers the header behind both navigation bars and the logo area.
 * Mobile (640px and narrower): Milky Way images appear behind
 * the upper and lower navigation areas; the middle logo area
 * remains white. Existing mobile navigation layout is preserved.
 *
 * BACKGROUND IMAGE FILES:
 * /wp-content/uploads/2026/10/site-sidemenu-stars.jpg
 * /wp-content/uploads/2026/10/site-footer-stars.jpg
 * - JPEG versions are used because WebP uploads were
 *   unsuccessful; retain the WebP originals for future use.
 *
 * Revision: 2026-10-22 (consolidated)
 */

/* ==========================================
   1. REUSABLE CSS STAR FIELD
   ========================================== */

:root {
    --asm-star-field:

    /* Bright stars */
    radial-gradient(1.5px 1.5px at 17px 29px, rgba(255,255,255,.98) 98%, transparent),
    radial-gradient(1.5px 1.5px at 151px 61px, rgba(255,255,255,.95) 98%, transparent),
    radial-gradient(1.5px 1.5px at 327px 143px, rgba(255,255,255,.98) 98%, transparent),
    radial-gradient(1.5px 1.5px at 377px 23px, rgba(255,255,255,.95) 98%, transparent),
    radial-gradient(1.5px 1.5px at 145px 225px, rgba(255,255,255,.95) 98%, transparent),
    radial-gradient(1.5px 1.5px at 345px 205px, rgba(255,255,255,.98) 98%, transparent),

    /* Medium stars */
    radial-gradient(1px 1px at 83px 117px, rgba(255,255,255,.85) 98%, transparent),
    radial-gradient(1px 1px at 209px 181px, rgba(255,255,255,.80) 98%, transparent),
    radial-gradient(1px 1px at 273px 43px, rgba(255,255,255,.90) 98%, transparent),
    radial-gradient(1px 1px at 49px 213px, rgba(255,255,255,.85) 98%, transparent),
    radial-gradient(1px 1px at 183px 247px, rgba(255,255,255,.90) 98%, transparent),
    radial-gradient(1px 1px at 301px 269px, rgba(255,255,255,.80) 98%, transparent),
    radial-gradient(1px 1px at 411px 211px, rgba(255,255,255,.85) 98%, transparent),
    radial-gradient(1px 1px at 121px 337px, rgba(255,255,255,.85) 98%, transparent),
    radial-gradient(1px 1px at 35px 75px, rgba(255,255,255,.90) 98%, transparent),
    radial-gradient(1px 1px at 255px 195px, rgba(255,255,255,.85) 98%, transparent),
    radial-gradient(1px 1px at 65px 165px, rgba(255,255,255,.90) 98%, transparent),
    radial-gradient(1px 1px at 285px 245px, rgba(255,255,255,.90) 98%, transparent),

    /* Faint stars */
    radial-gradient(.7px .7px at 22px 145px, rgba(255,255,255,.60) 98%, transparent),
    radial-gradient(.7px .7px at 58px 38px, rgba(255,255,255,.50) 98%, transparent),
    radial-gradient(.7px .7px at 96px 282px, rgba(255,255,255,.65) 98%, transparent),
    radial-gradient(.7px .7px at 137px 105px, rgba(255,255,255,.55) 98%, transparent),
    radial-gradient(.7px .7px at 174px 315px, rgba(255,255,255,.60) 98%, transparent),
    radial-gradient(.7px .7px at 215px 87px, rgba(255,255,255,.55) 98%, transparent),
    radial-gradient(.7px .7px at 249px 331px, rgba(255,255,255,.65) 98%, transparent),
    radial-gradient(.7px .7px at 291px 117px, rgba(255,255,255,.50) 98%, transparent),
    radial-gradient(.7px .7px at 339px 307px, rgba(255,255,255,.60) 98%, transparent),
    radial-gradient(.7px .7px at 394px 153px, rgba(255,255,255,.55) 98%, transparent),
    radial-gradient(.7px .7px at 427px 329px, rgba(255,255,255,.65) 98%, transparent),
    radial-gradient(.7px .7px at 12px 329px, rgba(255,255,255,.55) 98%, transparent),
    radial-gradient(.7px .7px at 77px 343px, rgba(255,255,255,.60) 98%, transparent),
    radial-gradient(.7px .7px at 196px 19px, rgba(255,255,255,.50) 98%, transparent),
    radial-gradient(.7px .7px at 362px 79px, rgba(255,255,255,.65) 98%, transparent),
    radial-gradient(.7px .7px at 420px 58px, rgba(255,255,255,.55) 98%, transparent),
    radial-gradient(.6px .6px at 41px 91px, rgba(255,255,255,.55) 98%, transparent),
    radial-gradient(.6px .6px at 109px 198px, rgba(255,255,255,.45) 98%, transparent),
    radial-gradient(.6px .6px at 167px 171px, rgba(255,255,255,.60) 98%, transparent),
    radial-gradient(.6px .6px at 231px 281px, rgba(255,255,255,.50) 98%, transparent),
    radial-gradient(.6px .6px at 319px 19px, rgba(255,255,255,.55) 98%, transparent),
    radial-gradient(.6px .6px at 388px 287px, rgba(255,255,255,.50) 98%, transparent);

    --asm-star-size: 443px 359px;
}


/* ==========================================
   2. HEADER - DESKTOP CONTINUOUS MILKY WAY
   ========================================== */

@media screen and (min-width: 641px) {
    /* One image shared by all three header sections */
    #banner {
        background-color: #000 !important;
        background-image: url("/wp-content/uploads/2026/10/site-footer-stars.jpg") !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* Reveal the shared image through the sections and navigation wrappers */
    #banner-top,
    #banner-middle,
    #banner-bottom,
    #banner-top > .container,
    #banner-top-navigation,
    #banner-bottom > .container,
    #banner-bottom-navigation,
    #banner-bottom-navigation > .container > ul,
    #banner-top-navigation #menu-top-navigation {
        background-color: transparent !important;
        background-image: none !important;
    }

    /* The theme may supply backgrounds to navigation pseudo-elements */
    #banner-top-navigation::before,
    #banner-top-navigation::after,
    #banner-bottom-navigation::before,
    #banner-bottom-navigation::after {
        background: transparent !important;
    }

    /* Solid black upper and lower navigation buttons */
    #menu-top-navigation > li > a,
    #banner-bottom-navigation > .container > ul > li > a {
        background-color: #000 !important;
        background-image: none !important;
        color: #fff !important;
    }

    /* Existing ASM logo and Hall/Donate outlines */
    #banner-middle-logo {
        background-color: #fff !important;
        padding: 5px !important;
        border-radius: 8px !important;
        box-sizing: content-box !important;
    }
    #banner-middle-hall,
    #banner-middle-donate {
        outline: 2px solid #BFBFBF !important;
        outline-offset: 0;
    }
}

/* Remove legacy red header trim; preserve rounded corners */
#banner-top {
    border-top: none !important;
}

#banner-bottom {
    border-bottom: none !important;
}

/* ==========================================
   3. MOBILE HEADER - MILKY WAY NAVIGATION AREAS
   ========================================== */

@media screen and (max-width: 640px) {
    /* Milky Way above and below the original white mobile logo area */
    #banner-top,
    #banner-bottom {
        background-color: #000 !important;
        background-image: url("/wp-content/uploads/2026/10/site-footer-stars.jpg") !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* Remove CSS starfields from wrappers that cover the photograph */
    #banner-top-navigation,
    #banner-top-navigation ul,
    #banner-bottom-navigation,
    #banner-bottom-navigation > .container > ul,
    #banner-bottom-navigation-mobile {
        background-color: transparent !important;
        background-image: none !important;
    }

    /* Preserve solid black upper navigation buttons */
    #menu-top-navigation > li > a {
        background-color: #000 !important;
        background-image: none !important;
        color: #fff !important;
    }
}

/* ==========================================
   4. NAVIGATION DROPDOWNS - STARFIELD
   ========================================== */

#banner-bottom-navigation .dropdown {
    background-color: #000 !important;
    background-image: var(--asm-star-field) !important;
    background-size: var(--asm-star-size) !important;
    background-repeat: repeat !important;
    border-color: #000 !important;
}

/* ==========================================
   5. BOTTOM FOOTER STRIP - STARFIELD
   ========================================== */

#sitefooter-bottom {
    background-color: #000 !important;
    background-image: var(--asm-star-field) !important;
    background-size: var(--asm-star-size) !important;
    background-repeat: repeat !important;
}

/* ==========================================
   7. LEFT SIDEBAR - MILKY WAY AND READABILITY
   ========================================== */

#page-leftsidebar {
    font-family: Arial, sans-serif !important;
    background-color: #000 !important;
    background-image: url("/wp-content/uploads/2026/10/site-sidemenu-stars.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* White, compact sidebar group headings */
#page-leftsidebar h2,
#page-leftsidebar h3 {
    font-family: Arial, sans-serif !important;
    color: #fff !important;
    font-size: 22px !important;
}

/* Compact outlined buttons; wrapped links stay inside one border */
#page-leftsidebar li a {
    background-color: rgba(0, 0, 0, 0.80) !important;
    border: 1px solid #BFBFBF !important;
    border-radius: 5px !important;
    padding: 2px 6px !important;
    font-size: 14px !important;
    display: inline-block !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Remove bullets while keeping the main list compact */
#page-leftsidebar li {
    list-style: none !important;
}

#page-leftsidebar li::marker {
    content: "" !important;
}

#page-leftsidebar ul {
    padding-left: 6px !important;
    margin-left: 0 !important;
}

/* Distinguish child links without excessive indentation */
#page-leftsidebar ul ul ul {
    padding-left: 12px !important;
}

/* Black outlines around sidebar text */
#page-leftsidebar a,
#page-leftsidebar li,
#page-leftsidebar h1,
#page-leftsidebar h2,
#page-leftsidebar h3,
#page-leftsidebar h4 {
    text-shadow:
        -1px -1px 0 #000,
         0   -1px 0 #000,
         1px -1px 0 #000,
        -1px  0   0 #000,
         1px  0   0 #000,
        -1px  1px 0 #000,
         0    1px 0 #000,
         1px  1px 0 #000 !important;
}


/* ==========================================
   8. FOOTER - MILKY WAY BACKGROUND
   ========================================== */

#sitefooter {
    background-color: #000 !important;
    background-image: url("/wp-content/uploads/2026/10/site-footer-stars.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}


/* Arial throughout footer columns */
#sitefooter-left,
#sitefooter-right {
    font-family: Arial, sans-serif !important;
}

/* Center footer: subtle 35% black overlay across the column */
#sitefooter-middle {
    font-family: Arial, sans-serif !important;
    background-color: rgba(0, 0, 0, 0.35) !important;
    border-radius: 8px !important;
    padding: 5px !important;
    box-sizing: border-box !important;
}


/* ==========================================
   9. FOOTER TEXT OUTLINES
   ========================================== */

#sitefooter p,
#sitefooter a,
#sitefooter span,
#sitefooter h1,
#sitefooter h2,
#sitefooter h3,
#sitefooter h4,
#sitefooter li {
    text-shadow:
        -2px -2px 0 #000,
         0   -2px 0 #000,
         2px -2px 0 #000,
        -2px  0   0 #000,
         2px  0   0 #000,
        -2px  2px 0 #000,
         0    2px 0 #000,
         2px  2px 0 #000 !important;
}


/* Center footer text: reduce outline from 2px to 1px */
#sitefooter-middle p,
#sitefooter-middle a,
#sitefooter-middle span {
    text-shadow:
        -1px -1px 0 #000,
         0   -1px 0 #000,
         1px -1px 0 #000,
        -1px  0   0 #000,
         1px  0   0 #000,
        -1px  1px 0 #000,
         0    1px 0 #000,
         1px  1px 0 #000 !important;
}


/* ==========================================
   10. FOOTER LINK BOXES
   ========================================== */

/* Black boxes with light-gray inset borders */
#sitefooter .sitefooter-bar,
#sitefooter .sitefooter-bar.red {
    background: #000 !important;
    box-shadow: inset 0 0 0 2px #BFBFBF !important;
}

/* Consistent compact button height and spacing, including stacked mobile columns */
#sitefooter .sitefooter-bar {
    margin-bottom: 12px !important;
}

/* Center footer link text with reduced vertical padding */
#sitefooter .sitefooter-bar p {
    text-align: center !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Remove special left padding from Next Launch */
#sitefooter #sitefooter-bluebar-rocket {
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
}


/* ==========================================
   11. FOOTER IMAGES AND SOCIAL MEDIA
   ========================================== */

/* Hide decorative images in footer link boxes */
#sitefooter .sitefooter-bar img {
    display: none !important;
}

/* Restore Facebook, YouTube, Instagram icons */
#sitefooter .sitefooter-bar img.sitefooter-left-socialbutton {
    display: inline !important;
}


/* ==========================================
   12. FOOTER ASM LOGO AND FLAG
   ========================================== */

/* Black outline around central ASM logo */
#sitefooter-middle-logo {
    outline: 2px solid #000 !important;
}

/* American flag remains without outline */
#sitefooter-bottom-flag {
    outline: none !important;
}

/* Footer - Controlled spacing above copyright */
#sitefooter-middle-hours {
    margin-bottom: 0 !important;
}

#sitefooter-middle-copyright {
    margin-top: 6px !important;
}

/* Hide redundant social media heading above the icon links */
#sitefooter-left-follow {
    display: none !important;
}

/* Center the social icons within their existing footer button */
#sitefooter-left .sitefooter-bar:has(.sitefooter-left-socialbutton) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
}
