/* === GLOBAL DARK THEME === */
html, body {
    background-color: #000; /* full black background */
    color: #f0f0f0; /* light text */
    margin: 0;
    padding: 0;
}

/* Headings pop stronger on black */
h1, h2, h3, h4, h5 {
    color: #ffffff;
    font-weight: 700;
}

/* Jeep accent color (orange) */
:root {
    --accent: #ff9800;
}

a {
    color: var(--accent);
}

    a:hover {
        color: #ffb84d;
    }


/* ===========================
   JEEP / OFF-ROAD NAVBAR STYLE
   =========================== */

.jeep-navbar {
    background: #1a1a1a url('/images/texture-dark.png'); /* Rugged texture */
    background-size: cover;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 3px solid #ff8800; /* Jeep Accent */
}

.navbar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

    .jeep-navbar .navbar-brand {
        letter-spacing: 1px;
    }

.jeep-grille-icon {
    height: 24px;
    filter: brightness(200%);
}

/* Hover color (trail amber) */
.jeep-nav-link {
    transition: 0.2s;
}

    .jeep-nav-link:hover {
        color: #ff8800 !important;
    }

/* TRAIL BADGE DONATE BUTTON */
.donate-badge-btn {
    background: #ff8800;
    color: #000;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #000;
    box-shadow: 0 2px 0 #000;
    transition: 0.2s;
    display: inline-block;
}

    .donate-badge-btn:hover {
        background: #ffaa33;
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 4px 0 #000;
    }

/* Rugged dark dropdown */
.dropdown-menu-dark .dropdown-item:hover {
    background-color: #333;
}
/* Navbar fixes */
.navbar {
    background-color: #000 !important;
    border-bottom: 2px solid var(--accent);
}

    .navbar a.nav-link,
    .navbar-brand {
        color: white !important;
    }

        .navbar a.nav-link:hover {
            color: var(--accent) !important;
        }

/* Content container adjustments */
.container {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Section blocks */
.section {
    padding: 2.5rem 0;
    border-bottom: 1px solid #222;
}

    .section h2 {
        border-left: 5px solid var(--accent);
        padding-left: 12px;
    }

/* Donate CTA */
.cta-donate {
    background: #111;
    border: 1px solid var(--accent);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.btn-donate {
    background: var(--accent);
    color: black;
    font-weight: bold;
    padding: 12px 22px;
    border-radius: 6px;
    border: none;
}

    .btn-donate:hover {
        background: #ffb84d;
    }

/* Footer */
footer {
    background: #000;
    color: #888;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 2px solid #111;
}

/* ---------------------------
   JEEP THEME FOOTER
----------------------------*/
.jeep-footer {
    background: #000;
    color: #ddd;
    border-top: 2px solid var(--accent);
}

.footer-top-strip {
    width: 100%;
    height: 6px;
    background-image: url('/images/texture-dark.png');
    background-size: cover;
    opacity: 0.3;
}

/* Social Icons */
.social-icons img {
    height: 26px;
    width: 26px;
    margin: 0 8px;
    opacity: 0.9;
    transition: 0.2s;
}

    .social-icons img:hover {
        opacity: 1;
        transform: scale(1.1);
    }

/* Donation Badges */
.donation-badges img {
    height: 30px;
    margin: 0 10px;
    opacity: 0.9;
    transition: 0.2s;
}

    .donation-badges img:hover {
        opacity: 1;
        transform: scale(1.05);
    }

/* Legal text */
.footer-legal {
    opacity: 0.8;
}

    .footer-legal a:hover {
        color: var(--accent) !important;
    }

/* ------------------------------------------
   RUGGED TRAIL DONATE BADGE
------------------------------------------- */

.donate-badge-btn {
    display: inline-block;
    padding: 8px 22px;
    font-weight: 700;
    font-size: 1rem;
    color: #222 !important;
    /* Rugged metal gradient */
    background: linear-gradient(135deg, #ffbf00, #ff9100);
    border: 2px solid #3a2a00;
    border-radius: 6px;
    /* Subtle bevel / aluminum look */
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0,0,0,0.3), 0 0 6px rgba(255, 153, 0, 0.4);
    /* Rivets / screws */
    position: relative;
}

    /* Rivets */
    .donate-badge-btn::before,
    .donate-badge-btn::after {
        content: "";
        position: absolute;
        width: 6px;
        height: 6px;
        background: #222;
        border-radius: 50%;
        border: 1px solid #555;
        top: 6px;
    }

    .donate-badge-btn::before {
        left: 6px;
    }

    .donate-badge-btn::after {
        right: 6px;
    }

    /* Hover Glow */
    .donate-badge-btn:hover {
        background: linear-gradient(135deg, #ffd44d, #ffa726);
        transform: translateY(-1px);
        box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.5), 0 0 12px rgba(255, 161, 0, 0.9), 0 0 20px rgba(255, 140, 0, 0.6);
        color: #111 !important;
    }

    /* Active Press (Click) */
    .donate-badge-btn:active {
        transform: translateY(0);
        box-shadow: inset 0 0 8px rgba(0,0,0,0.5), 0 0 4px rgba(255, 153, 0, 0.3);
    }

/* Dropdown menu alignment fix */
.nav-item.dropdown .dropdown-menu-dark {
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #333;
    background-color: #111;
}

/* Dropdown items in rugged theme */
.dropdown-menu-dark .dropdown-item {
    color: #eee;
    font-weight: 500;
}

    .dropdown-menu-dark .dropdown-item:hover {
        background: #ff9100;
        color: #111;
    }

/* ---- Organization Support Section (Clean Grid Style) ---- */

/* Background strip */
.agency-strip-bg {
    background: rgba(20, 20, 20, 0.85);
    padding: 40px 20px;
    border-radius: 20px;
    margin: 0 auto;
}

/* Responsive grid */
.agency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* Tile container */
.agency-item {
    width: 180px;
    height: 120px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Hover Effect */
    .agency-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    }

    /* Keep logos properly scaled */
    .agency-item img {
        max-height: 70px;
        max-width: 130px;
        object-fit: contain;
    }


.limited-hero {
    background: url('/images/headers/limited-mobility-hero.png') center/cover no-repeat;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

    .limited-hero .overlay {
        background: rgba(0, 0, 0, 0.6);
    }

/* FIXED MEDIA QUERY */
@media (max-width: 768px) {
    .limited-hero {
        padding: 3rem 1rem;
    }
}

.community-hero {
    background: url('/images/headers/toy-drive-hero.png') center/cover no-repeat;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.community-hero .overlay {
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .community-hero {
        padding: 3rem 1rem;
    }
}

.stewardship-hero {
    background: url('/images/headers/trail-stewardship-hero.png') center/cover no-repeat;
    border-radius: 12px;
    overflow: hidden;
}

    .stewardship-hero .overlay {
        background: rgba(0, 0, 0, 0.6);
    }

@media (max-width: 768px) {
    .stewardship-hero {
        padding: 3rem 1rem;
    }
}

.youth-hero {
    background: url('/images/headers/youth-outreach-hero.png') center/cover no-repeat;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

    .youth-hero .overlay {
        background: rgba(0, 0, 0, 0.6);
    }

@media (max-width: 768px) {
    .youth-hero {
        padding: 3rem 1rem;
    }
}

/* MAGIC 8-BALL — TRAIL BOSS EDITION ======================================= */

/* PAGE THEME -------------------------------------------------------------- */
.magic8-page {
    min-height: 100vh;
    background: #111 url('/images/dirt-texture.jpg') repeat;
    color: #f0f0f0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
    padding-bottom: 40px;
}

    .magic8-page h1 {
        margin-top: 40px;
        margin-bottom: 20px;
        color: #ffcc00;
        text-transform: uppercase;
        letter-spacing: 3px;
        font-size: 1.6rem;
    }

/* TIRE AREA --------------------------------------------------------------- */
.tire-zone {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 30px auto 0 auto;
}

.tire-wrapper {
    width: 550px;
    height: 550px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    z-index: 2;
}


.tire {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    transition: transform 0.2s ease-out;
}

/* Spin animation for Pack 4 ---------------------------------------------- */
@keyframes tireSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tire.spin {
    animation: tireSpin 0.8s ease-out;
}

.tire-wrapper:active .tire {
    transform: scale(0.97);
}

/* MUD SPLATTER (Pack 1) -------------------------------------------------- */
.mud-layer {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 1;
}


.mud-splat {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, #b8863b, #5b3a18);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
    filter: blur(1px);
}

.mud-1 {
    width: 120px;
    height: 120px;
    top: 5px;
    left: -10px;
}

.mud-2 {
    width: 90px;
    height: 90px;
    bottom: 10px;
    right: -5px;
}

.mud-3 {
    width: 70px;
    height: 70px;
    top: 40px;
    right: 40px;
}

.mud-4 {
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 30px;
}

.mud-5 {
    width: 140px;
    height: 140px;
    top: 80px;
    left: 80px;
}

@keyframes mudBurst {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    40% {
        opacity: 0.95;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.85;
        transform: scale(1);
    }
}

/* Persistent mud splatter (Pack 1) */
.mud-layer.mud-active .mud-splat {
    animation: mudBurst 0.7s ease-out forwards;
}

/* RESPONSE BOX ------------------------------------------------------------ */
.response-box {
    margin-top: 30px;
    font-size: 1.6rem;
    padding: 18px 26px;
    display: inline-block;
    background: rgba(0,0,0,0.8);
    border: 2px solid #ffcc00;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255,204,0,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    min-width: 300px;
    max-width: 90vw;
}

    .response-box.show {
        opacity: 1;
        transform: translateY(0px);
    }

    /* Pack 3: Rare gold glow -------------------------------------------------- */
    .response-box.rare,
    .tire.rare {
        box-shadow: 0 0 25px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8);
        border-color: #ffd700;
    }

.tire.rare {
    filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.9));
}

/* SHAKE BUTTON ------------------------------------------------------------ */
.shake-btn {
    margin-top: 24px;
    padding: 11px 26px;
    font-size: 1.1rem;
    background: #ffcc00;
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

    .shake-btn:hover {
        background: #ffe066;
        transform: translateY(-1px);
    }

    .shake-btn:active {
        transform: translateY(1px);
    }

@media (max-width: 480px) {
    .tire-zone {
        width: 220px;
        height: 220px;
    }

    .tire-wrapper {
        width: 200px;
        height: 200px;
    }
}
