/* YITP Navbar Authentication Styles */

/* ===== DESKTOP AUTHENTICATION STYLES ===== */

/* User Avatar */
.user__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5d15 0%, #e04a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar__text {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.user__toggle {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.user__toggle:hover {
    background: rgba(255, 93, 21, 0.1);
    text-decoration: none;
    color: inherit;
}

.user__details {
    margin-left: 10px;
}

.user__name {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    transition: color 0.3s ease;
}

/* Dropdown Menu */
.user__dropdown {
    min-width: 250px;
    border: none;
    box-shadow: 0px 10px 30px 0px rgba(1, 11, 60, 0.15);
    border-radius: 8px;
    padding: 0;
    margin-top: 10px;
    z-index: 1050;
}

.user__dropdown .dropdown-header {
    background: #f8f9fa !important;
    padding: 15px 20px;
    border-bottom: 1px solid #eef0f6;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

/* User Info Styling with High Specificity */
.header__area .user__dropdown .user__info-full .user__fullname,
.user__dropdown .dropdown-header .user__info-full .user__fullname {
    color: #0e1133 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: block !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.header__area .user__dropdown .user__info-full .user__email,
.user__dropdown .dropdown-header .user__info-full .user__email {
    color: #6d6e75 !important;
    font-size: 12px !important;
    display: block !important;
    margin-top: 3px !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.user__dropdown .dropdown-item {
    padding: 12px 20px;
    color: #6d6e75;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.user__dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #ff5d15;
}

.user__dropdown .dropdown-item i {
    width: 16px;
    margin-right: 10px;
    color: #ff5d15;
}

.logout-link:hover {
    background: #fff3e0 !important;
    color: #e04a0f !important;
}

/* Authentication Buttons */
.auth__buttons {
    gap: 15px;
}

.e-btn-border {
    background: transparent;
    border: 2px solid #ff5d15;
    color: #ff5d15;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.e-btn-border:hover {
    background: #ff5d15;
    color: white;
    text-decoration: none;
}

.e-btn-outline {
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
    transition: all 0.3s ease;
}

.e-btn-outline:hover {
    background: currentColor;
    color: white;
}

/* Responsive adjustments for auth buttons */
@media (max-width: 1199px) {
    .auth__buttons .e-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .user__details {
        display: none;
    }
}

/* ===== MOBILE AUTHENTICATION STYLES ===== */

/* Mobile User Avatar */
.user__avatar-mobile {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5d15 0%, #e04a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar__text-mobile {
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.user__details-mobile {
    margin-left: 15px;
}

.user__name-mobile {
    color: #0e1133;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user__email-mobile {
    color: #6d6e75;
    font-size: 12px;
}

/* Mobile Auth Menu */
.mobile__auth-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile__auth-menu li {
    margin-bottom: 10px;
}

.mobile__auth-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #6d6e75;
    transition: all 0.3s ease;
}

.mobile__auth-link:hover {
    background: #ff5d15;
    color: white;
    text-decoration: none;
}

.mobile__auth-link i {
    width: 20px;
    margin-right: 15px;
    color: #ff5d15;
    transition: color 0.3s ease;
}

.mobile__auth-link:hover i {
    color: white;
}

.logout-mobile:hover {
    background: #dc3545 !important;
}

.logout-mobile:hover i {
    color: white !important;
}

/* Mobile Auth Buttons */
.mobile__auth-buttons {
    padding: 0 20px;
}

.mobile__auth-buttons .e-btn {
    justify-content: center;
    margin-bottom: 15px;
}

/* ===== NAVBAR STATE STYLES ===== */

/* Initial state (transparent header) */
.header__transparent .user__name,
.header__transparent .user__toggle {
    color: white;
}

.header__transparent .e-btn-border {
    border-color: white;
    color: white;
}

.header__transparent .e-btn-border:hover {
    background: white;
    color: #0e1133;
}

.header__transparent .e-btn-outline {
    border-color: white;
    color: white;
}

.header__transparent .e-btn-outline:hover {
    background: white;
    color: #0e1133;
}

/* Sticky state (white header) */
.header__area.sticky .user__name,
.header__area.sticky .user__toggle {
    color: #0e1133;
}

.header__area.sticky .e-btn-border {
    border-color: #ff5d15;
    color: #ff5d15;
}

.header__area.sticky .e-btn-border:hover {
    background: #ff5d15;
    color: white;
}

.header__area.sticky .e-btn-outline {
    border-color: #0e1133;
    color: #0e1133;
}

.header__area.sticky .e-btn-outline:hover {
    background: #0e1133;
    color: white;
}

/* ===== UTILITY CLASSES ===== */
.mr-8 { margin-right: 8px; }
.mr-10 { margin-right: 10px; }
.mr-15 { margin-right: 15px; }
.ml-5 { margin-left: 5px; }
.ml-10 { margin-left: 10px; }
.ml-15 { margin-left: 15px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.p-15 { padding: 15px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 991px) {
    .header__auth {
        display: none !important;
    }
    
    .header__btn {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .mobile__auth-buttons {
        padding: 0 10px;
    }
    
    .user__profile {
        padding: 10px !important;
    }
    
    .user__avatar-mobile {
        width: 40px;
        height: 40px;
    }
    
    .avatar__text-mobile {
        font-size: 14px;
    }
    
    .user__name-mobile {
        font-size: 14px;
    }
}
