/*
    Abilities in Motion — Custom Styles + Theme System
    Two themes: Teal/Gold (default) and Neon
    Toggle via body.theme-neon class
*/

/* =============================================
   SITE LOGO (header h1 image swap)
   ============================================= */

#header h1 a {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo {
    height: 42px;
    width: auto;
    display: none;
    vertical-align: middle;
}

/* Classic theme: show cat logo, hide neon logo */
.logo-classic { display: block; mix-blend-mode: screen; }
.logo-neon    { display: none; }

/* Neon theme: swap */
body.theme-neon .logo-classic { display: none; }
body.theme-neon .logo-neon    { display: block; }

/* =============================================
   HERO BACKGROUND IMAGES (theme-specific)
   ============================================= */

/* Classic / Teal hero */
body.landing #page-wrapper {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)),
        url("../../images/hero-classic.jpg");
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Classic mobile fallback */
body.is-mobile.landing #banner,
body.is-mobile.landing .wrapper.style4 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)),
        url("../../images/hero-classic.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =============================================
   HEADER AUTH LINKS (Log In / Sign Up)
   ============================================= */

.header-auth-link {
    border: 0 !important;
    color: #fff !important;
    display: inline-block;
    font-size: 0.75em;
    letter-spacing: 0.18em;
    padding: 0 1em;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.header-auth-link:hover { opacity: 1; }

.header-signup {
    font-size: 0.65em !important;
    height: 2.2em !important;
    line-height: 2.2em !important;
    padding: 0 1.2em !important;
    margin: 0 0.5em;
    vertical-align: middle;
    border: 0 !important;
}

/* Hide auth links inside the hamburger menu duplicates on desktop */
@media screen and (min-width: 737px) {
    #header nav > ul > li > a.header-auth-link,
    #header nav > ul > li > a.header-signup {
        display: inline-block;
    }
}

/* =============================================
   POWERED BY FOOTER BLOCK
   ============================================= */

.powered-by {
    margin-top: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}
.powered-by:hover { opacity: 1; }

.powered-by span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.jam-logo {
    height: 32px;
    width: auto;
    display: block;
    filter: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.powered-by a:hover .jam-logo { opacity: 1; }

/* Neon version — slight brightness boost, no colour shift */
body.theme-neon .jam-logo {
    filter: none;
    opacity: 0.8;
}
body.theme-neon .powered-by span { color: rgba(0, 255, 204, 0.55); }
body.theme-neon .powered-by:hover { opacity: 1; }

/* =============================================
   THEME TOGGLE BUTTON
   ============================================= */

#theme-toggle {
    position: fixed;
    bottom: 2em;
    right: 2em;
    z-index: 20000;
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 2em;
    color: #fff;
    cursor: pointer;
    font-family: "Open Sans", Helvetica, sans-serif;
    font-size: 0.6em;
    font-weight: 600;
    letter-spacing: 0.18em;
    padding: 0.7em 1.5em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
}

/* =============================================
   TEAL / GOLD THEME  (default — no extra class)
   ============================================= */

/* Body */
body {
    background: #1b2f32;
}

/* Page-wrapper background overlay colour (banner preload fade) */
#banner:after {
    background: #1b2f32;
}

/* Header (solid when scrolled) */
#header {
    background: #1b2f32;
}

/* Off-canvas menu panel */
#menu {
    background: #125c56;
}

/* Section: About / Mission  (style1 = teal brand colour) */
.wrapper.style1 {
    background-color: #1e9e93;
}
.wrapper.style1 select option {
    background: #1e9e93;
}
.wrapper.style1 input[type="checkbox"]:checked + label:before {
    background: #fff;
    color: #1e9e93;
}

/* Section: Spotlights container (style2 = dark base) */
.wrapper.style2 {
    background-color: #1b2f32;
}

/* Section: Features / Membership (style3 — replace purple with deep teal-navy) */
.wrapper.style3 {
    background-color: #17414c;
    color: #c4dde3;
}
.wrapper.style3 strong,
.wrapper.style3 b,
.wrapper.style3 h2,
.wrapper.style3 h3,
.wrapper.style3 h4,
.wrapper.style3 h5,
.wrapper.style3 h6 {
    color: #ffffff;
}
.wrapper.style3 header p        { color: #9dc8d4; }
.wrapper.style3 header.major p  { color: #c4dde3; }
.wrapper.style3 select option   { background: #17414c; }
.wrapper.style3 input[type="checkbox"]:checked + label:before {
    background: #fff;
    color: #17414c;
}
.wrapper.style3 .icon.major { border-color: rgba(0, 0, 0, 0.125); }
.wrapper.style3 ul.alt li   { border-color: rgba(0, 0, 0, 0.125); }
.wrapper.style3 table tbody tr { border-color: rgba(0, 0, 0, 0.125); }
.wrapper.style3 table thead     { border-color: rgba(0, 0, 0, 0.125); }
.wrapper.style3 table tfoot     { border-color: rgba(0, 0, 0, 0.125); }
.wrapper.style3 input[type="submit"],
.wrapper.style3 input[type="reset"],
.wrapper.style3 input[type="button"],
.wrapper.style3 button,
.wrapper.style3 .button {
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.125);
    color: #fff;
}

/* Footer */
#footer {
    background-color: #0f1e20;
}
body.landing #footer {
    background-color: rgba(15, 30, 32, 0.9);
}

/* Primary button → Gold */
.button.primary,
input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary {
    background-color: #c49a16 !important;
}
.button.primary:hover,
input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover {
    background-color: #d4a820 !important;
}
.button.primary:active,
input[type="submit"].primary:active,
input[type="reset"].primary:active,
input[type="button"].primary:active,
button.primary:active {
    background-color: #b08910 !important;
}

/* Diamond icon accent colours */
.icon.style1 { color: #1e9e93; }
.icon.style2 { color: #c49a16; }
.icon.style3 { color: #8dd5cd; }

/* Features grid icon colour */
.features li:before { color: #c49a16; }

/* Input focus ring */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px #1e9e93;
}

/* =============================================
   NEON THEME  (body.theme-neon)
   ============================================= */

/* Body */
body.theme-neon {
    background: #050510;
}

/* Banner preload fade */
body.theme-neon #banner:after {
    background: #050510;
}

/* Banner headline accent lines */
body.theme-neon #banner h2:before,
body.theme-neon #banner h2:after {
    background: #00ffcc;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.7);
}

/* Banner headline glow */
body.theme-neon #banner h2 {
    text-shadow: 0 0 40px rgba(0, 255, 204, 0.25), 0 0 80px rgba(0, 255, 204, 0.1);
}

/* Full-page background — neon image with colour tint layers */
body.theme-neon.landing #page-wrapper {
    background-image:
        linear-gradient(135deg, rgba(0, 255, 200, 0.09) 0%, rgba(200, 0, 170, 0.09) 100%),
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url("../../images/hero-neon.jpg");
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mobile fallback */
body.theme-neon.is-mobile.landing #page-wrapper {
    background: none;
}
body.theme-neon.is-mobile.landing #banner,
body.theme-neon.is-mobile.landing .wrapper.style4 {
    background-image:
        linear-gradient(135deg, rgba(0, 255, 200, 0.09) 0%, rgba(200, 0, 170, 0.09) 100%),
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url("../../images/hero-neon.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Header */
body.theme-neon #header {
    background: #050510;
    border-bottom: 1px solid rgba(0, 255, 204, 0.15);
}

/* Off-canvas menu */
body.theme-neon #menu {
    background: #08081e;
    border-left: 1px solid rgba(0, 255, 204, 0.25);
}
body.theme-neon #menu ul > li {
    border-top-color: rgba(0, 255, 204, 0.15);
}

/* Section: About / Mission */
body.theme-neon .wrapper.style1 {
    background-color: #07071c;
    color: #b0ffea;
}
body.theme-neon .wrapper.style1 h2,
body.theme-neon .wrapper.style1 h3,
body.theme-neon .wrapper.style1 h4,
body.theme-neon .wrapper.style1 h5,
body.theme-neon .wrapper.style1 h6 {
    color: #00ffcc;
    text-shadow: 0 0 22px rgba(0, 255, 204, 0.4);
}
body.theme-neon .wrapper.style1 header p       { color: #70ffd4; }
body.theme-neon .wrapper.style1 header.major p { color: #b0ffea; }
body.theme-neon .wrapper.style1 header.major h2,
body.theme-neon .wrapper.style1 header.major h3 {
    border-bottom-color: rgba(0, 255, 204, 0.4);
}
body.theme-neon .wrapper.style1 .icon.major {
    border-color: rgba(0, 255, 204, 0.35);
}
body.theme-neon .wrapper.style1 select option {
    background: #07071c;
}
body.theme-neon .wrapper.style1 input[type="checkbox"]:checked + label:before {
    background: #00ffcc;
    color: #050510;
}
body.theme-neon .wrapper.style1 input[type="submit"],
body.theme-neon .wrapper.style1 input[type="reset"],
body.theme-neon .wrapper.style1 input[type="button"],
body.theme-neon .wrapper.style1 button,
body.theme-neon .wrapper.style1 .button {
    box-shadow: inset 0 0 0 2px rgba(0, 255, 204, 0.35);
    color: #00ffcc;
}

/* Section: Spotlights */
body.theme-neon .wrapper.style2 {
    background-color: #050510;
}

/* Section: Features */
body.theme-neon .wrapper.style3 {
    background-color: #080516;
    color: #c0c0ee;
}
body.theme-neon .wrapper.style3 h2,
body.theme-neon .wrapper.style3 h3,
body.theme-neon .wrapper.style3 h4,
body.theme-neon .wrapper.style3 h5,
body.theme-neon .wrapper.style3 h6 {
    color: #00ffcc;
    text-shadow: 0 0 22px rgba(0, 255, 204, 0.35);
}
body.theme-neon .wrapper.style3 header p       { color: #9090cc; }
body.theme-neon .wrapper.style3 header.major p { color: #c0c0ee; }
body.theme-neon .wrapper.style3 header.major h2,
body.theme-neon .wrapper.style3 header.major h3 {
    border-bottom-color: rgba(0, 255, 204, 0.35);
}
body.theme-neon .wrapper.style3 .icon.major {
    border-color: rgba(0, 255, 204, 0.3);
}
body.theme-neon .wrapper.style3 select option { background: #080516; }
body.theme-neon .wrapper.style3 input[type="checkbox"]:checked + label:before {
    background: #00ffcc;
    color: #050510;
}
body.theme-neon .wrapper.style3 input[type="submit"],
body.theme-neon .wrapper.style3 input[type="reset"],
body.theme-neon .wrapper.style3 input[type="button"],
body.theme-neon .wrapper.style3 button,
body.theme-neon .wrapper.style3 .button {
    box-shadow: inset 0 0 0 2px rgba(0, 255, 204, 0.3);
    color: #00ffcc;
}
body.theme-neon .wrapper.style3 ul.alt li {
    border-color: rgba(0, 255, 204, 0.15);
}

/* Footer */
body.theme-neon #footer {
    background-color: #020208;
}
body.theme-neon.landing #footer {
    background-color: rgba(2, 2, 8, 0.95);
}
body.theme-neon.is-mobile.landing #footer {
    background-color: #020208;
}

/* Primary button → Neon Magenta */
body.theme-neon .button.primary,
body.theme-neon input[type="submit"].primary,
body.theme-neon input[type="reset"].primary,
body.theme-neon input[type="button"].primary,
body.theme-neon button.primary {
    background-color: #cc00bb !important;
    box-shadow: 0 0 22px rgba(204, 0, 187, 0.55) !important;
}
body.theme-neon .button.primary:hover,
body.theme-neon input[type="submit"].primary:hover,
body.theme-neon input[type="reset"].primary:hover,
body.theme-neon input[type="button"].primary:hover,
body.theme-neon button.primary:hover {
    background-color: #dd11cc !important;
    box-shadow: 0 0 34px rgba(221, 17, 204, 0.75) !important;
}
body.theme-neon .button.primary:active,
body.theme-neon input[type="submit"].primary:active,
body.theme-neon input[type="reset"].primary:active,
body.theme-neon input[type="button"].primary:active,
body.theme-neon button.primary:active {
    background-color: #aa0099 !important;
    box-shadow: 0 0 15px rgba(170, 0, 153, 0.5) !important;
}

/* Outline buttons in neon */
body.theme-neon .button:not(.primary) {
    box-shadow: inset 0 0 0 2px #00ffcc;
    color: #00ffcc;
}
body.theme-neon .button:not(.primary):hover {
    background-color: rgba(0, 255, 204, 0.1) !important;
    box-shadow: inset 0 0 0 2px #00ffcc, 0 0 14px rgba(0, 255, 204, 0.3);
}

/* Diamond icon accent colours */
body.theme-neon .icon.style1 { color: #00ffcc; }
body.theme-neon .icon.style2 { color: #ff00cc; }
body.theme-neon .icon.style3 { color: #aaff00; }

/* Features grid icon colour */
body.theme-neon .features li:before { color: #00ffcc; }

/* Features grid vertical separator in neon */
body.theme-neon .features li {
    border-top-color: rgba(0, 255, 204, 0.15);
}

/* Input focus ring */
body.theme-neon input[type="text"]:focus,
body.theme-neon input[type="password"]:focus,
body.theme-neon input[type="email"]:focus,
body.theme-neon select:focus,
body.theme-neon textarea:focus {
    box-shadow: 0 0 0 2px #00ffcc, 0 0 10px rgba(0, 255, 204, 0.3);
}

/* Neon theme toggle button */
body.theme-neon #theme-toggle {
    border-color: #00ffcc;
    color: #00ffcc;
    box-shadow: 0 0 14px rgba(0, 255, 204, 0.3), 0 2px 18px rgba(0, 0, 0, 0.6);
}
body.theme-neon #theme-toggle:hover {
    background: rgba(0, 255, 204, 0.1);
    box-shadow: 0 0 24px rgba(0, 255, 204, 0.5), 0 2px 18px rgba(0, 0, 0, 0.6);
}
