/* =============================================
   HIJACK ELEMENTOR WIDGETS - Main Stylesheet
   ============================================= */

/* =============================================
   DESKTOP NAV
   ============================================= */
.hijack-desktop-nav-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 769px) {
    .hijack-desktop-nav-wrapper {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
    .hijack-hamburger-btn {
        display: none !important;
    }
    .hijack-menu-overlay,
    .hijack-menu-panel {
        display: none !important;
    }
}

.hijack-desktop-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.hijack-desktop-nav > li > a {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.01em;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.hijack-desktop-nav > li > a:hover {
    color: #888;
}

/* =============================================
   HAMBURGER BUTTON — mobile only
   ============================================= */
.hijack-hamburger-btn {
    display: none; /* hidden by default, shown on mobile below */
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
    z-index: 9999;
    transition: opacity 0.2s;
}

@media (max-width: 768px) {
    .hijack-hamburger-btn {
        display: inline-flex !important;
    }
}

.hijack-hamburger-btn:hover { opacity: 0.6; }
.hijack-hamburger-btn:focus { outline: none; }

.hijack-hamburger-btn svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke: #000;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

/* Force Elementor widget wrapper to vertically center */
.elementor-widget-hijack_hamburger_menu .elementor-widget-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

/* =============================================
   OVERLAY — hidden by default, always
   ============================================= */
.hijack-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hijack-menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   SLIDE PANEL — hidden off-screen by default
   ============================================= */
.hijack-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 85vw;
    max-width: 320px;
    background: #fff;
    z-index: 99999;
    padding: 60px 30px 30px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.hijack-menu-panel.is-open {
    transform: translateX(0);
}

/* Close (X) button inside panel */
.hijack-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #000;
    line-height: 1;
    padding: 8px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hijack-menu-close:hover { opacity: 0.5; }

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

/* =============================================
   SEARCH BAR
   ============================================= */
.hijack-menu-search {
    margin-bottom: 28px;
    margin-top: 10px;
}

.hijack-menu-search form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    gap: 8px;
}

.hijack-menu-search input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 0;
    font-size: 14px;
    background: transparent;
    color: #000;
}

.hijack-menu-search button[type="submit"] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: #000;
}

/* =============================================
   MENU NAVIGATION
   ============================================= */
.hijack-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hijack-menu-nav > li {
    margin-bottom: 10px;
}

.hijack-menu-nav > li > a,
.hijack-menu-nav > li > span.hijack-menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.hijack-menu-nav > li > a:hover { color: #888; }

.hijack-sub-icon {
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.25s ease;
}

/* =============================================
   SUB MENU
   ============================================= */
.hijack-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.hijack-submenu.is-open {
    max-height: 600px;
}

.hijack-sub-heading { padding: 12px 0 4px; }

.hijack-sub-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e53e3e;
}

.hijack-submenu li a {
    display: block;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    padding: 5px 0 5px 8px;
    transition: color 0.2s;
}

.hijack-submenu li a:hover { color: #000; }

/* WP Nav Menu resets */
.hijack-wp-menu { padding: 0; margin: 0; list-style: none; }
.hijack-wp-menu .sub-menu { display: none; padding: 0 0 0 12px; list-style: none; }
.hijack-wp-menu .sub-menu a { font-size: 14px; color: #333; padding: 5px 0; display: block; text-decoration: none; }
.hijack-wp-menu > li > a { display: block; font-size: 15px; font-weight: 500; padding: 6px 0; color: #000; text-decoration: none; }

/* =============================================
   LOGIN BUTTON
   ============================================= */
.hijack-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #000;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    line-height: 1;
    vertical-align: middle;
}

.hijack-login-btn:hover { color: #555; opacity: 0.7; }

.hijack-login-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.elementor-widget-hijack_login_button .elementor-widget-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

/* =============================================
   LOGIN POPUP OVERLAY
   ============================================= */
.hijack-login-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 999999;
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hijack-login-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   LOGIN PANEL
   ============================================= */
.hijack-login-panel {
    position: relative;
    background: #fff;
    width: 420px;
    max-width: 100vw;
    height: 100%;
    padding: 50px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hijack-login-overlay.is-open .hijack-login-panel {
    transform: translateX(0);
}

.hijack-login-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.2s, background 0.2s;
}
.hijack-login-close:hover {
    opacity: 0.5;
    background: rgba(0,0,0,0.05);
}
.hijack-login-close svg { display: block; }

.hijack-login-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 32px;
    color: #000;
}

/* =============================================
   LOGIN / REGISTER FORM
   ============================================= */
.hijack-form-group { margin-bottom: 20px; }

.hijack-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #000;
}

.hijack-form-group label span { color: #e53e3e; }

.hijack-form-group input {
    width: 100%;
    border: 1px solid #ddd;
    padding: 12px 14px;
    font-size: 14px;
    color: #000;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
}

.hijack-form-group input:focus { border-color: #000; }

.hijack-form-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #333;
}

.hijack-form-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.hijack-form-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.hijack-form-message {
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}

.hijack-form-message.error { color: #e53e3e; }
.hijack-form-message.success { color: #38a169; }

.hijack-login-submit {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.25s ease;
    margin-bottom: 18px;
}

.hijack-login-submit:hover { background: #333; }

.hijack-lost-password {
    font-size: 13px;
    margin: 0 0 10px;
    color: #333;
}

.hijack-lost-password a {
    color: #333;
    text-decoration: underline;
}

/* =============================================
   AUTH TABS
   ============================================= */
.hijack-auth-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.hijack-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s, border-color 0.2s;
    font-family: inherit;
    margin-bottom: -1px;
}

.hijack-tab-btn.active {
    color: #000;
    border-bottom-color: #000;
}

.hijack-tab-btn:hover { color: #000; }

.hijack-tab-panel { display: none; }
.hijack-tab-panel.active { display: block; }

/* =============================================
   RESPONSIVE — login panel full width on mobile
   ============================================= */
@media (max-width: 480px) {
    .hijack-login-panel {
        width: 100vw;
        padding: 40px 24px;
    }
}
