/**
 * Navigation Member Info Styles - Ultra Compact Edition
 * 초컴팩트 세련된 로그인 상태 표시
 */

/* Member Info Card - Premium Design */
.nav-member-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding: 8px 14px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-member-info:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 1) 100%);
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 
        0 4px 12px rgba(14, 165, 233, 0.12),
        0 0 0 1px rgba(255, 255, 255, 1) inset;
    transform: translateY(-1px);
}

/* Single Line Layout */
.nav-member-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hospital Name */
.nav-member-hospital {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-member-hospital i {
    color: #0EA5E9;
    font-size: 12px;
    opacity: 0.9;
}

.nav-member-hospital span {
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Separator - Modern Dot Style */
.nav-member-separator {
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 2px;
}

/* Member Name */
.nav-member-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-member-name i {
    font-size: 12px;
    color: #64748b;
    opacity: 0.9;
}

.nav-member-name span {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    letter-spacing: -0.01em;
}

/* Tier Badge - Premium Style */
.nav-member-tier {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-member-tier.basic {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.nav-member-tier.bds {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

/* Logout Button - Modern Minimal Icon Button */
.btn-logout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    margin-left: 8px !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    border-radius: 8px !important;
    color: #ef4444 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.btn-logout i {
    font-size: 13px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #dc2626 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.15) !important;
}

.btn-logout:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.1) !important;
}

/* Hide logout text, show only icon */
.btn-logout .logout-text {
    display: none !important;
}

/* Login Button - Modern Minimal Icon Button */
.btn-login-compact {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    background: rgba(14, 165, 233, 0.08) !important;
    border: 1px solid rgba(14, 165, 233, 0.15) !important;
    border-radius: 8px !important;
    color: #0EA5E9 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.btn-login-compact i {
    font-size: 13px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.btn-login-compact:hover {
    background: rgba(14, 165, 233, 0.12) !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
    color: #0284c7 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.15) !important;
}

.btn-login-compact:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(14, 165, 233, 0.1) !important;
}

.btn-login-compact:active {
    transform: none !important;
}

.btn-login-compact:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25) !important;
}

/* Logout Success Message */
.logout-success-message {
    position: fixed;
    top: 90px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.logout-success-message i {
    font-size: 16px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Desktop Navigation Order */
@media (min-width: 769px) {
    .nav-content {
        display: flex;
        align-items: center;
        gap: 0;
    }
    
    .nav-brand {
        order: 1;
    }
    
    .nav-member-info {
        order: 2;
    }
    
    #loginBtn,
    .btn-logout,
    .btn-login-compact {
        order: 3;
    }
    
    .nav-menu {
        order: 4;
        margin-left: auto;
    }
    
    .mobile-menu-toggle {
        order: 5;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .nav-member-info {
        padding: 5px 10px;
        gap: 6px;
    }
    
    .nav-member-content {
        font-size: 11px;
        gap: 5px;
    }
    
    .nav-member-hospital span,
    .nav-member-name span {
        font-size: 11px;
    }
    
    .nav-member-tier {
        font-size: 8px;
        padding: 2px 5px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .nav-member-info {
        display: none;
    }
    
    .btn-logout,
    .btn-login-compact {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
    
    .btn-logout span,
    .btn-login-compact span {
        display: none;
    }
    
    .logout-success-message {
        top: 70px;
        right: 10px;
        left: 10px;
        justify-content: center;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-member-info {
    animation: fadeInScale 0.2s ease;
}

/* Accessibility */
.nav-member-info:focus-within {
    outline: 2px solid #0EA5E9;
    outline-offset: 2px;
}

.btn-logout:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.btn-login-compact:focus {
    outline: 2px solid #0EA5E9;
    outline-offset: 2px;
}
