/**
 * /assets/css/profile-menu.css
 *
 * Purpose:  Styles for header profile dropdown menu
 * Deps:     app.css (variables)
 * Load:     index.php
 * Version:  1.0.0
 */

/* ============================================================================
   PROFILE TOGGLE BUTTON
   ============================================================================ */

.header-profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    transition: opacity .15s;
}

.header-profile-toggle:hover {
    opacity: .85;
}

.header-profile-toggle:hover .header-profile-avatar {
    border-color: rgba(93, 214, 201, .8) !important;
}

.header-profile-toggle:hover .header-profile-info span:first-child {
    color: var(--accent, #5dd6c9) !important;
}

.header-profile-toggle:hover .fa-chevron-down {
    color: var(--accent, #5dd6c9) !important;
}

/* ============================================================================
   PROFILE DROPDOWN
   ============================================================================ */

.header-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: rgba(20, 25, 35, .97);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    z-index: 1060;
    overflow: hidden;
    padding: 6px 0;
}

.header-profile-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-align: left;
}

.header-profile-dropdown__item:hover {
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .95);
}

.header-profile-dropdown__item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    opacity: .6;
}

.header-profile-dropdown__item:hover i {
    opacity: 1;
    color: var(--accent, #5dd6c9);
}

.header-profile-dropdown__item--danger:hover {
    color: var(--danger, #ff6b6b);
}

.header-profile-dropdown__item--danger:hover i {
    color: var(--danger, #ff6b6b);
}

.header-profile-dropdown__divider {
    height: 1px;
    background: rgba(255, 255, 255, .06);
    margin: 4px 0;
}

/* ============================================================================
   NOTIFICATION TYPE ICONS (feature, update, info, warning)
   ============================================================================ */

.notif-item__icon--feature {
    background: rgba(93, 214, 201, .15);
    border: 1px solid rgba(93, 214, 201, .25);
    color: var(--accent, #5dd6c9);
}

.notif-item__icon--update {
    background: rgba(77, 163, 255, .15);
    border: 1px solid rgba(77, 163, 255, .25);
    color: var(--exp, #4da3ff);
}

.notif-item__icon--info {
    background: rgba(176, 140, 255, .15);
    border: 1px solid rgba(176, 140, 255, .25);
    color: rgba(176, 140, 255, .9);
}

.notif-item__icon--warning {
    background: rgba(255, 211, 107, .15);
    border: 1px solid rgba(255, 211, 107, .25);
    color: var(--gold, #ffd36b);
}

.notif-item--feature {
    border-left: 3px solid rgba(93, 214, 201, .4);
}

.notif-item__message {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 576px) {
    .header-profile-dropdown {
        width: 200px;
        right: -8px;
    }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .header-profile-toggle,
    .header-profile-dropdown__item {
        transition: none;
    }
}
