/* ===============================================
   HEADER ENHANCED STYLES
   =============================================== */

/* Nav Divider */
.nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    align-self: center;
}

/* =============== CREDITS BADGE (Employer) =============== */
.credits-nav-item .credits-link {
    padding: 4px 8px !important;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.credits-badge.has-credits {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.credits-badge.no-credits {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    animation: pulse-attention 2s infinite;
}

.credits-badge i {
    font-size: 16px;
}

.credits-badge .credits-count {
    font-size: 15px;
    font-weight: 700;
}

.credits-badge .credits-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.9;
}

.credits-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-attention {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* =============== SUBSCRIPTION BADGE (Applicant) =============== */
.subscription-nav-item .subscription-link {
    padding: 4px 8px !important;
}

.subscription-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subscription-badge.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.subscription-badge.expiring {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    animation: pulse-attention 2s infinite;
}

.subscription-badge.expired {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse-attention 1.5s infinite;
}

.subscription-badge i {
    font-size: 16px;
}

.subscription-badge .sub-days {
    font-size: 15px;
    font-weight: 700;
}

.subscription-badge .sub-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.9;
}

.subscription-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =============== USER DROPDOWN ENHANCED =============== */
.user-nav-item .user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-nav-item .user-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), #2952a3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-info .user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.user-info .user-role {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.user-dropdown {
    min-width: 280px;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), #2952a3);
    color: white;
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    font-size: 16px;
}

.user-details small {
    font-size: 12px;
    opacity: 0.8;
}

/* Dropdown Stats */
.dropdown-stats {
    padding: 8px;
}

.dropdown-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.dropdown-stats .stat-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.dropdown-stats .stat-item.expiring {
    background: #fff7ed;
    border-left: 3px solid #f59e0b;
}

.dropdown-stats .stat-item.expired {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-icon.credits {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-icon.subscription {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.stat-item.expired .stat-icon.subscription {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

.stat-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(51, 102, 204, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Dropdown Items */
.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.user-dropdown .dropdown-item i {
    font-size: 18px;
    color: #6b7280;
    width: 24px;
    text-align: center;
}

.user-dropdown .dropdown-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.user-dropdown .dropdown-item:hover i {
    color: var(--primary-color);
}

.user-dropdown .logout-item {
    color: #dc2626;
}

.user-dropdown .logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

.user-dropdown .logout-item i {
    color: #dc2626;
}

/* Admin Link */
.admin-link {
    color: #8b5cf6 !important;
}

/* =============== AUTH BUTTONS =============== */
.auth-buttons {
    display: flex;
    align-items: center;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.btn-auth {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-auth i {
    font-size: 16px;
}

.btn-auth:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-register {
    background: var(--accent-color);
}

.btn-register:hover {
    background: #e66b00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.auth-divider-vertical {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

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

/* Mobile User Card */
.mobile-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin: 0 16px 16px;
    background: linear-gradient(135deg, var(--primary-color), #2952a3);
    border-radius: 12px;
    color: white;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-user-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
}

.mobile-user-name {
    font-size: 16px;
    font-weight: 600;
}

.mobile-user-role {
    font-size: 12px;
    opacity: 0.8;
}

/* Mobile Status Badge */
.mobile-status-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-size: 11px;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-status-badge i {
    font-size: 20px;
}

.mobile-status-badge .badge-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.mobile-status-badge .badge-label {
    font-size: 10px;
    opacity: 0.9;
    text-transform: uppercase;
}

.mobile-status-badge.credits {
    background: rgba(16, 185, 129, 0.3);
}

.mobile-status-badge.subscription.active {
    background: rgba(16, 185, 129, 0.3);
}

.mobile-status-badge.subscription.expiring {
    background: rgba(245, 158, 11, 0.4);
}

.mobile-status-badge.subscription.expired {
    background: rgba(239, 68, 68, 0.4);
}

/* Mobile Nav Section Title */
.mobile-nav-section-title {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

/* Mobile Highlight Link */
.mobile-nav-link.highlight-link {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-left: 3px solid #10b981;
    margin: 0 8px;
    border-radius: 8px;
}

.mobile-nav-link.highlight-link.expiring {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-left-color: #f59e0b;
}

.mobile-nav-link.highlight-link.expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-left-color: #ef4444;
}

.mobile-nav-link .mobile-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
    border-radius: 10px;
    font-weight: 600;
}

/* Mobile Logout Link */
.mobile-nav-link.logout-link {
    color: #dc2626 !important;
}

.mobile-nav-link.logout-link:hover {
    background: #fef2f2;
}

/* Mobile Admin Link */
.mobile-nav-link.admin-link {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.1);
    margin: 0 8px;
    border-radius: 8px;
}

/* Mobile Auth Buttons */
.mobile-auth-btn {
    width: calc(100% - 32px);
    margin: 0 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.mobile-auth-btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2952a3);
    color: white;
}

.mobile-auth-btn.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.mobile-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1200px) {
    .credits-badge .credits-label,
    .subscription-badge .sub-label {
        display: none;
    }
    
    .user-info .user-role {
        display: none;
    }
}

@media (max-width: 992px) {
    .credits-badge,
    .subscription-badge {
        padding: 6px 10px;
    }
}