/* ─── Elementor Burger Nav Menu – Frontend Styles ───────────────────────── */

/* Burger button */
.ebnm-burger {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    outline: none;
    transition: opacity 0.2s ease;
}
.ebnm-burger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.ebnm-burger-bar {
    display: block;
    width: 28px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: background-color 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

/* ── Sidebar backdrop (dims only the area BESIDE the panel) ─────────────── */
.ebnm-overlay-backdrop {
    display: none;
    position: fixed;
    top: 0;
    /* left is set dynamically by JS to match sidebar width */
    left: 320px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.35s ease;
    /* Ensure it never covers the sidebar itself */
    pointer-events: none;
}
.ebnm-overlay-backdrop.is-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ── Sidebar drawer ───────────────────────────────────────────────────────── */
.ebnm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;          /* sidebar width – override via Elementor style control */
    max-width: 100vw;
    height: 100%;
    background-color: #0e0e0e;
    z-index: 99999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;

    /* Hidden state – slides fully off-screen to the left */
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.38s ease;
}
.ebnm-overlay.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* Inner scroll container */
.ebnm-overlay-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 40px 30px;
    box-sizing: border-box;
}

/* ── Close button ─────────────────────────────────────────────────────────── */
.ebnm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
    padding: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
    outline: none;
}
.ebnm-close:hover {
    color: #aaaaaa;
    transform: rotate(90deg);
}
.ebnm-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── Nav list ─────────────────────────────────────────────────────────────── */
.ebnm-nav {
    margin-top: 60px;
}
.ebnm-nav-item {
    border-bottom: 1px solid #333333;
    border-bottom-color: #333333;
}
.ebnm-nav-item:first-child {
    border-top: 1px solid #333333;
    border-top-color: #333333;
}
.ebnm-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: inherit;
    transition: color 0.2s ease;
    gap: 12px;
}
.ebnm-nav-link:hover {
    color: #aaaaaa;
}
.ebnm-nav-text {
    flex: 1;
}

/* ── Star icon ────────────────────────────────────────────────────────────── */
.ebnm-star-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}
.ebnm-nav-link:hover .ebnm-star-icon {
    transform: rotate(45deg) scale(1.15);
}

/* ── Social row ───────────────────────────────────────────────────────────── */
.ebnm-social-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;                  /* gaps handled by dividers */
    padding-top: 32px;
    margin-top: 0;           /* sits directly below the nav, not pushed to bottom */
    border-top: 1px solid #333333;  /* top divider matching nav items */
}

/* Individual social icon wrapper — dividers between icons */
.ebnm-social-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-right: 1px solid #333333;
    line-height: 1;
}
.ebnm-social-icon-wrap:last-child {
    border-right: none;
}

.ebnm-social-link {
    color: #ffffff !important;   /* !important overrides FA's own color inheritance */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}
.ebnm-social-link:hover {
    color: #aaaaaa !important;
    transform: translateY(-2px);
}
/* Target every possible FA element Font Awesome renders */
.ebnm-social-link i,
.ebnm-social-link i::before,
.ebnm-social-link span,
.ebnm-social-link svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: block;
    color: inherit !important;
    fill: currentColor;
}

/* ── Staggered item entrance animation ───────────────────────────────────── */
.ebnm-overlay .ebnm-nav-item,
.ebnm-overlay .ebnm-social-row {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ebnm-overlay.is-open .ebnm-nav-item,
.ebnm-overlay.is-open .ebnm-social-row {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(1)  { transition-delay: 0.05s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(2)  { transition-delay: 0.10s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(3)  { transition-delay: 0.14s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(4)  { transition-delay: 0.18s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(5)  { transition-delay: 0.22s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(6)  { transition-delay: 0.26s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(7)  { transition-delay: 0.30s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(8)  { transition-delay: 0.34s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(9)  { transition-delay: 0.38s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(10) { transition-delay: 0.42s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(11) { transition-delay: 0.46s; }
.ebnm-overlay.is-open .ebnm-nav-item:nth-child(12) { transition-delay: 0.50s; }
.ebnm-overlay.is-open .ebnm-social-row             { transition-delay: 0.55s; }

/* ── Burger → X morphing when open ───────────────────────────────────────── */
.ebnm-burger[aria-expanded="true"] .ebnm-burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.ebnm-burger[aria-expanded="true"] .ebnm-burger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.ebnm-burger[aria-expanded="true"] .ebnm-burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Prevent body scroll when menu is open ───────────────────────────────── */
body.ebnm-menu-open {
    overflow: hidden;
}

/* ── Elementor editor helper ─────────────────────────────────────────────── */
.elementor-editor-active .ebnm-overlay {
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
}
.elementor-editor-active .ebnm-overlay-backdrop {
    display: none !important;
}

/* ── Registration Button ──────────────────────────────────────────────────── */
.ebnm-reg-wrap {
    padding-top: 24px;
    display: flex;
    justify-content: flex-start;
}

/* The button IS the <a> tag — no child wrapper */
.ebnm-reg-btn {
    display: inline-block;
    position: relative;
    border-radius: 999px;
    padding: 14px 32px;
    background-color: transparent;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    z-index: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-sizing: border-box;
}

/* Animated gradient border via ::before */
.ebnm-reg-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #DA308C,
        transparent
    );
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ebnmMoveBorder 2s linear infinite;
    pointer-events: none;
    z-index: 2;
}

/* Border animation keyframes */
@keyframes ebnmMoveBorder {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Mobile-only: hidden on 768px and above */
.ebnm-mobile-only {
    display: flex;
}
@media (min-width: 768px) {
    .ebnm-mobile-only {
        display: none !important;
    }
}
