/* =========================================================
   TOECANDY GLOBAL STYLES
========================================================= */

:root {
    --neon-green: #39FF14;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.10);
    --dark-bg: #050505;
}


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: var(--neon-green);
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   NEON CARD
========================================================= */

.neon-border-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    overflow: hidden;

    transition:
        border-color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.5s ease;
}

.neon-border-card:hover {
    border-color: var(--neon-green);

    box-shadow:
        0 0 15px rgba(57, 255, 20, 0.30),
        inset 0 0 10px rgba(57, 255, 20, 0.20);

    transform: translateY(-8px);
}


/* =========================================================
   CARD OVERLAY
========================================================= */

.card-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.15) 65%,
        rgba(0, 0, 0, 0) 100%
    );

    transition: background 0.5s ease;
}

.neon-border-card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(57, 255, 20, 0.12) 100%
    );
}


/* =========================================================
   SHOP BUTTON
========================================================= */

.btn-shop {
    background: #fff;
    color: #000;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.neon-border-card:hover .btn-shop {
    background: var(--neon-green);
    color: #000;

    box-shadow:
        0 0 20px rgba(57, 255, 20, 0.45);
}


/* =========================================================
   MOBILE MENU OVERLAY
========================================================= */

#mobile-menu {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.62);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    display: flex;
    justify-content: flex-end;

    overflow: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

#mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   MOBILE MENU PANEL
========================================================= */

#menu-panel {
    width: 88%;
    max-width: 400px;
    height: 100%;

    background: var(--dark-bg);
    color: #fff;

    position: relative;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);

    transition:
        transform 0.48s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    box-shadow:
        -20px 0 60px rgba(0, 0, 0, 0.55);

    will-change: transform;
}

#mobile-menu.active #menu-panel {
    transform: translateX(0);
}


/* =========================================================
   MENU PANEL INNER SCROLL
========================================================= */

#menu-panel {
    overflow: hidden;
}

#menu-wrapper {
    display: flex;

    width: 200%;
    height: 100%;

    transform: translateX(0%);

    transition:
        transform 0.48s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    will-change: transform;
}

#menu-wrapper.submenu-open {
    transform: translateX(-50%);
}

#menu-wrapper > div {
    width: 50%;
    min-width: 50%;

    flex-shrink: 0;

    height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   SUBMENU ANIMATION
========================================================= */

.submenu-content {
    opacity: 0;
    visibility: hidden;

    transform: translateX(22px);

    transition:
        opacity 0.30s ease,
        transform 0.40s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        visibility 0.40s ease;
}

.submenu-content.invisible {
    opacity: 0;
    visibility: hidden;
}

.submenu-content.submenu-active {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* =========================================================
   MOBILE LINKS
========================================================= */

.mobile-link {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 0;

    color: #fff;
    text-decoration: none;

    font-size: 1.25rem;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.02em;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);

    transition:
        color 0.25s ease,
        padding-left 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.mobile-link:hover,
.mobile-link:focus-visible {
    color: var(--neon-green) !important;
}

.mobile-link:active {
    transform: scale(0.985);
}


/* =========================================================
   MENU BUTTONS
========================================================= */

#mobile-menu button {
    -webkit-tap-highlight-color: transparent;

    touch-action: manipulation;

    cursor: pointer;
}

#mobile-menu button:active {
    transform: scale(0.985);
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-btn,
.submenu-back {
    padding: 12px 0;

    color: var(--neon-green);

    font-weight: 800;

    text-transform: uppercase;

    font-size: 0.75rem;

    display: flex;
    align-items: center;

    gap: 8px;

    cursor: pointer;

    background: transparent;
    border: none;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.back-btn:active,
.submenu-back:active {
    transform: translateX(-5px);
}


/* =========================================================
   HAMBURGER
========================================================= */

#menu-toggle {
    position: relative;
    z-index: 10001;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

#line1,
#line2,
#line3 {
    transform-origin: center;

    transition:
        transform 0.35s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        opacity 0.20s ease,
        stroke 0.25s ease;
}

#menu-toggle.active #line1 {
    transform:
        translateY(8px)
        rotate(45deg);

    stroke: var(--neon-green);
}

#menu-toggle.active #line2 {
    opacity: 0;

    transform:
        translateX(18px);
}

#menu-toggle.active #line3 {
    transform:
        translateY(-8px)
        rotate(-45deg);

    stroke: var(--neon-green);
}


/* =========================================================
   BODY LOCK
========================================================= */

body.menu-open {
    overflow: hidden;
    touch-action: none;
}


/* =========================================================
   MOBILE MENU SCROLLBAR
========================================================= */

#menu-wrapper > div::-webkit-scrollbar {
    width: 3px;
}

#menu-wrapper > div::-webkit-scrollbar-track {
    background: transparent;
}

#menu-wrapper > div::-webkit-scrollbar-thumb {
    background: rgba(57, 255, 20, 0.35);
    border-radius: 10px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .neon-border-card:hover {
        transform: none;
    }

    #menu-panel {
        width: 90%;
    }

    .neon-border-card {
        transform: none;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    #menu-panel {
        width: 92%;
    }

    .mobile-link {
        font-size: 1.15rem;
        padding: 16px 0;
    }

}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 768px) {

    #mobile-menu {
        display: none;
    }

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .neon-border-card:hover {
        border-color: var(--glass-border);

        box-shadow: none;

        transform: none;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

}
/* =========================================================
   TOECANDY GLOBAL TAILWIND COLOR FALLBACK
   Works even if Tailwind CDN fails or misses custom classes
   ========================================================= */

.text-neon {
    color: #39FF14 !important;
}

.bg-neon {
    background-color: #39FF14 !important;
}

.border-neon {
    border-color: #39FF14 !important;
}

.text-black {
    color: #050505 !important;
}

.bg-black {
    background-color: #050505 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-white\/30 {
    color: rgba(255,255,255,.30) !important;
}

.text-white\/40 {
    color: rgba(255,255,255,.40) !important;
}

.text-white\/45 {
    color: rgba(255,255,255,.45) !important;
}

.text-white\/50 {
    color: rgba(255,255,255,.50) !important;
}

.text-white\/55 {
    color: rgba(255,255,255,.55) !important;
}

.text-white\/60 {
    color: rgba(255,255,255,.60) !important;
}

.bg-neon\/5 {
    background-color: rgba(57,255,20,.05) !important;
}

.bg-neon\/10 {
    background-color: rgba(57,255,20,.10) !important;
}

.border-white\/10 {
    border-color: rgba(255,255,255,.10) !important;
}

.border-white\/15 {
    border-color: rgba(255,255,255,.15) !important;
}

.hover\:text-neon:hover {
    color: #39FF14 !important;
}

.hover\:bg-neon:hover {
    background-color: #39FF14 !important;
}

.hover\:border-neon:hover {
    border-color: #39FF14 !important;
}

.hover\:bg-neon:hover {
    background-color: #39FF14 !important;
}

/* =========================================================
   TOECANDY — MOBILE MENU FINAL OVERRIDES
   Single source of truth for menu open/close state
========================================================= */

@media (max-width: 767px) {

    /* ---------- OVERLAY ---------- */

    #mobile-menu {
        position: fixed !important;
        inset: 0 !important;
        z-index: 9999 !important;

        display: flex !important;
        justify-content: flex-end !important;

        width: 100% !important;
        height: 100dvh !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        background: rgba(0, 0, 0, 0.68) !important;

        transition:
            opacity 0.35s ease,
            visibility 0.35s ease !important;
    }

    #mobile-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* ---------- PANEL ---------- */

    #menu-panel {
        position: relative !important;

        width: min(88%, 400px) !important;
        max-width: 400px !important;
        height: 100dvh !important;

        flex: 0 0 min(88%, 400px) !important;

        transform: translateX(100%) !important;

        transition:
            transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;

        background: #050505 !important;

        overflow: hidden !important;

        z-index: 10000 !important;
    }

    #mobile-menu.active #menu-panel {
        transform: translateX(0) !important;
    }

    /* ---------- MENU WRAPPER ---------- */

    #menu-wrapper {
        display: flex !important;

        width: 200% !important;
        height: 100% !important;

        transform: translateX(0) !important;

        transition:
            transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;

        will-change: transform;
    }

    #menu-wrapper.submenu-open {
        transform: translateX(-50%) !important;
    }

    /* ---------- TWO MENU PANELS ---------- */

    #menu-wrapper > div {
        width: 50% !important;
        min-width: 50% !important;
        max-width: 50% !important;
        height: 100% !important;

        flex: 0 0 50% !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch;
    }

    /* ---------- SUBMENU VISIBILITY ---------- */

    .submenu-content {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease !important;
    }

    .submenu-content.submenu-active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .submenu-content.invisible {
        visibility: hidden !important;
    }

    /* ---------- MENU BUTTON ---------- */

    #menu-toggle {
        position: relative !important;
        z-index: 10001 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 44px !important;
        height: 44px !important;

        padding: 8px !important;

        cursor: pointer !important;
    }

    #menu-toggle svg {
        display: block !important;
        width: 32px !important;
        height: 32px !important;
    }

    /* ---------- HAMBURGER -> X ---------- */

    #menu-toggle #line1,
    #menu-toggle #line2,
    #menu-toggle #line3 {
        transition:
            transform 0.3s ease,
            opacity 0.2s ease !important;

        transform-box: fill-box;
        transform-origin: center;
    }

    #menu-toggle.active #line1 {
        transform: translateY(6px) rotate(45deg) !important;
    }

    #menu-toggle.active #line2 {
        opacity: 0 !important;
    }

    #menu-toggle.active #line3 {
        transform: translateY(-6px) rotate(-45deg) !important;
    }

    /* ---------- BODY LOCK ---------- */

    body.menu-open {
        overflow: hidden !important;
    }

}

/* ---------- DESKTOP ---------- */

@media (min-width: 768px) {

    #mobile-menu {
        display: none !important;
    }

    #menu-toggle {
        display: none !important;
    }

}


/* =========================================================
   TOECANDY — BLOG/GALLERY MOBILE HAMBURGER HARD FIX
   ========================================================= */

@media screen and (max-width: 767px) {

    header #menu-toggle {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10001 !important;

        width: 44px !important;
        height: 44px !important;

        align-items: center !important;
        justify-content: center !important;

        padding: 8px !important;
        margin: 0 !important;

        color: #ffffff !important;
        background: transparent !important;
        border: 0 !important;

        pointer-events: auto !important;
        cursor: pointer !important;
    }

    header #menu-toggle svg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        width: 32px !important;
        height: 32px !important;

        color: #ffffff !important;
    }

    header #menu-toggle svg path {
        stroke: #ffffff !important;
        stroke-width: 2 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Keep header above the mobile overlay */
    header {
        z-index: 10000 !important;
    }

}

@media screen and (min-width: 768px) {

    header #menu-toggle {
        display: none !important;
    }

}


/* =========================================================
   TOECANDY FOOTER - PREMIUM FALLBACK
   ========================================================= */

footer {
    position: relative;
    width: 100%;
    background: #050505;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,0.10);
}

footer p {
    margin-top: 0;
}

footer .text-white {
    color: #ffffff !important;
}

footer .text-white\/30 {
    color: rgba(255,255,255,0.30) !important;
}

footer .text-white\/40 {
    color: rgba(255,255,255,0.40) !important;
}

footer .text-white\/45 {
    color: rgba(255,255,255,0.45) !important;
}

footer .text-white\/50 {
    color: rgba(255,255,255,0.50) !important;
}

footer .text-white\/60 {
    color: rgba(255,255,255,0.60) !important;
}

footer .text-neon {
    color: #39FF14 !important;
}

footer .border-white\/10 {
    border-color: rgba(255,255,255,0.10) !important;
}

footer .border-white\/15 {
    border-color: rgba(255,255,255,0.15) !important;
}

footer .hover\:text-neon:hover {
    color: #39FF14 !important;
}

footer .hover\:border-neon:hover {
    border-color: #39FF14 !important;
}

footer .hover\:bg-neon:hover {
    background-color: #39FF14 !important;
}

footer .hover\:text-black:hover {
    color: #050505 !important;
}

footer .bg-black {
    background-color: #050505 !important;
}

footer .bg-white\/\[0\.03\] {
    background-color: rgba(255,255,255,0.03) !important;
}

footer .bg-neon\/5 {
    background-color: rgba(57,255,20,0.05) !important;
}

footer .bg-neon\/\[0\.03\] {
    background-color: rgba(57,255,20,0.03) !important;
}

/* Footer copyright / premium label */
footer .tracking-\[0\.15em\] {
    letter-spacing: 0.15em !important;
}

footer .uppercase {
    text-transform: uppercase !important;
}

/* Prevent accidental text collapse */
footer p {
    line-height: 1.7;
}

/* Footer links */
footer a {
    text-decoration: none;
}

