/*
 * Login Popup Buttons Widget - Consolidated CSS
 * VooCareer Theme
 * Contains all Login Popup Buttons styling and modern enhancements
 * Covers all button type variations:
 *   - login_only
 *   - register_only
 *   - register_login_both
 *   - login_notification
 *   - register_notification
 *   - register_login_notification
 * Version: 1.0.0
 */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */

:root {
    /* Login/Register Button Colors */
    --login-btn-bg: #13b5ea;
    --login-btn-hover: #0d9fd0;
    --login-btn-text: #ffffff;
    --register-btn-bg: #e81c28;
    --register-btn-hover: #c91822;
    --register-btn-text: #ffffff;
    --account-btn-bg: #ffffff;
    --account-btn-hover: #f8f9fa;
    --account-btn-text: #333333;
    --notification-badge-bg: #e81c28;
    --notification-badge-text: #ffffff;
}

/* ==========================================================================
   2. BASE BUTTON WRAPPER
   ========================================================================== */

.elementor-button-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Container for Elementor buttons */
.careerfy-btns-con.careerfy-btns-con-elementor {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.careerfy-user-section.careerfy-user-section-elementor {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.careerfy-user-section.careerfy-user-section-elementor>li {
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   3. LOGIN BUTTON - MODERN STYLE
   ========================================================================== */

.elementor-button.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--login-btn-bg) 0%, #0d9fd0 100%);
    color: var(--login-btn-text) !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(19, 181, 234, 0.3);
    transition: all 0.3s ease-in-out;
}

.elementor-button.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.elementor-button.login-button:hover {
    background: linear-gradient(135deg, #0d9fd0 0%, #0a8ab5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 181, 234, 0.4);
    color: var(--login-btn-text) !important;
}

.elementor-button.login-button:hover::before {
    left: 100%;
}

.elementor-button.login-button:active {
    transform: translateY(0);
}

/* Login button icon */
.elementor-button.login-button .elementor-button-icon {
    display: inline-flex;
    align-items: center;
}

.elementor-button.login-button .elementor-button-icon i,
.elementor-button.login-button .elementor-button-icon svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   4. REGISTER BUTTON - MODERN STYLE
   ========================================================================== */

.elementor-button.register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--register-btn-bg) 0%, #c91822 100%);
    color: var(--register-btn-text) !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(232, 28, 40, 0.3);
    transition: all 0.3s ease-in-out;
}

.elementor-button.register-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.elementor-button.register-button:hover {
    background: linear-gradient(135deg, #c91822 0%, #a8141c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 28, 40, 0.4);
    color: var(--register-btn-text) !important;
}

.elementor-button.register-button:hover::before {
    left: 100%;
}

.elementor-button.register-button:active {
    transform: translateY(0);
}

/* Register button icon */
.elementor-button.register-button .elementor-button-icon {
    display: inline-flex;
    align-items: center;
}

.elementor-button.register-button .elementor-button-icon i,
.elementor-button.register-button .elementor-button-icon svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   5. MY ACCOUNT BUTTON - MODERN STYLE
   ========================================================================== */

.elementor-button.elementor-button-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--account-btn-bg);
    color: var(--account-btn-text) !important;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

.elementor-button.elementor-button-account-link:hover {
    background: var(--account-btn-hover);
    border-color: #13b5ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(19, 181, 234, 0.15);
    color: #13b5ea !important;
}

.elementor-button.elementor-button-account-link:active {
    transform: translateY(0);
}

/* Account dropdown arrow */
.elementor-button.elementor-button-account-link::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.elementor-button.elementor-button-account-link:hover::after {
    transform: rotate(180deg);
}

/* ==========================================================================
   6. USER AVATAR (when logged in)
   ========================================================================== */

.elementor-button-wrapper>img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.elementor-button-wrapper>img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   7. NOTIFICATION BELL - MODERN STYLE
   ========================================================================== */

/* Notification bell container - keep default styling, just enhance */
.careerfy-btns-con-elementor .jobsearch-usernotifics-elementor .elementor-item-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.careerfy-btns-con-elementor .jobsearch-usernotifics-elementor .elementor-item-anchor:hover {
    transform: scale(1.1);
}

/* Bell icon styling - white for dark header visibility */
.careerfy-btns-con-elementor .jobsearch-usernotifics-elementor .elementor-item-anchor>i {
    font-size: 22px !important;
    color: #ffffff !important;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.careerfy-btns-con-elementor .jobsearch-usernotifics-elementor .elementor-item-anchor:hover>i {
    color: #13b5ea !important;
}

/* Notification Badge - positioned offset on the bell icon */
.careerfy-btns-con-elementor .jobsearch-usernotifics-elementor .hderbell-notifics-count,
.careerfy-btns-con-elementor .elementor-item-anchor .hderbell-notifics-count {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0;
    background: var(--notification-badge-bg);
    color: var(--notification-badge-text);
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(232, 28, 40, 0.4);
    animation: notification-pulse 2s infinite;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@keyframes notification-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 28, 40, 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(232, 28, 40, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 28, 40, 0);
    }
}

/* ==========================================================================
   8. NOTIFICATION DROPDOWN - MODERN STYLE
   ========================================================================== */

.jobsearch-hdernotifics-listitms {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 10px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

.jobsearch-usernotifics-menubtn:hover .jobsearch-hdernotifics-listitms,
.jobsearch-usernotifics-elementor:hover .jobsearch-hdernotifics-listitms {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hdernotifics-title-con {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.hder-notifics-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.hder-notifics-count {
    font-size: 13px;
    color: #666666;
}

.hder-notifics-count small {
    color: var(--notification-badge-bg);
    font-weight: 600;
}

.hder-notifics-nofound {
    display: block;
    padding: 30px 20px;
    text-align: center;
    color: #999999;
    font-size: 14px;
}

/* ==========================================================================
   9. ACCOUNT DROPDOWN MENU - MODERN STYLE
   ========================================================================== */

.jobsearch-userdash-menumain .nav-item-children,
.jobsearch-userdash-menumain .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 10px;
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    list-style: none;
}

.jobsearch-userdash-menumain:hover .nav-item-children,
.jobsearch-userdash-menumain:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jobsearch-userdash-menumain .nav-item-children li,
.jobsearch-userdash-menumain .sub-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jobsearch-userdash-menumain .nav-item-children li a,
.jobsearch-userdash-menumain .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jobsearch-userdash-menumain .nav-item-children li a:hover,
.jobsearch-userdash-menumain .sub-menu li a:hover {
    background: rgba(19, 181, 234, 0.1);
    color: #13b5ea;
    padding-left: 25px;
}

.jobsearch-userdash-menumain .nav-item-children li a i,
.jobsearch-userdash-menumain .sub-menu li a i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Logout link special styling */
.jobsearch-userdash-menumain .nav-item-children li:last-child a,
.jobsearch-userdash-menumain .sub-menu li:last-child a {
    color: #e81c28;
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
    padding-top: 15px;
}

.jobsearch-userdash-menumain .nav-item-children li:last-child a:hover,
.jobsearch-userdash-menumain .sub-menu li:last-child a:hover {
    background: rgba(232, 28, 40, 0.1);
    color: #c91822;
}

/* ==========================================================================
   10. BUTTON SIZE VARIATIONS (Elementor)
   ========================================================================== */

/* Extra Small */
.elementor-button.elementor-size-xs.login-button,
.elementor-button.elementor-size-xs.register-button {
    padding: 8px 16px;
    font-size: 12px;
}

/* Small */
.elementor-button.elementor-size-sm.login-button,
.elementor-button.elementor-size-sm.register-button {
    padding: 10px 20px;
    font-size: 13px;
}

/* Medium (default) */
.elementor-button.elementor-size-md.login-button,
.elementor-button.elementor-size-md.register-button {
    padding: 12px 24px;
    font-size: 14px;
}

/* Large */
.elementor-button.elementor-size-lg.login-button,
.elementor-button.elementor-size-lg.register-button {
    padding: 14px 28px;
    font-size: 15px;
}

/* Extra Large */
.elementor-button.elementor-size-xl.login-button,
.elementor-button.elementor-size-xl.register-button {
    padding: 16px 32px;
    font-size: 16px;
}

/* ==========================================================================
   11. RESPONSIVE STYLES
   ========================================================================== */

@media only screen and (max-width: 991px) {

    .elementor-button.login-button,
    .elementor-button.register-button {
        padding: 10px 18px;
        font-size: 13px;
    }

    .elementor-button.elementor-button-account-link {
        padding: 8px 15px;
        font-size: 13px;
    }

    .careerfy-btns-con-elementor .elementor-item-anchor {
        width: 38px;
        height: 38px;
    }

    .careerfy-btns-con-elementor .elementor-item-anchor i {
        font-size: 16px;
    }

    .jobsearch-hdernotifics-listitms,
    .jobsearch-userdash-menumain .nav-item-children,
    .jobsearch-userdash-menumain .sub-menu {
        min-width: 280px;
    }
}

@media only screen and (max-width: 768px) {
    .elementor-button-wrapper {
        gap: 8px;
    }

    .elementor-button.login-button,
    .elementor-button.register-button {
        padding: 8px 14px;
        font-size: 12px;
    }

    .elementor-button.elementor-button-account-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .elementor-button.elementor-button-account-link::after {
        display: none;
    }

    .careerfy-btns-con-elementor .elementor-item-anchor {
        width: 36px;
        height: 36px;
    }

    .careerfy-btns-con-elementor .hderbell-notifics-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        line-height: 18px;
    }

    .elementor-button-wrapper>img {
        width: 35px;
        height: 35px;
    }
}

@media only screen and (max-width: 480px) {

    .elementor-button.login-button .elementor-button-text,
    .elementor-button.register-button .elementor-button-text {
        /* Hide text on very small screens, show only icon if present */
    }

    .elementor-button.login-button,
    .elementor-button.register-button {
        padding: 8px 12px;
    }

    .careerfy-btns-con-elementor .elementor-item-anchor {
        width: 34px;
        height: 34px;
    }

    .jobsearch-hdernotifics-listitms,
    .jobsearch-userdash-menumain .nav-item-children,
    .jobsearch-userdash-menumain .sub-menu {
        min-width: 250px;
        right: -50px;
    }
}