/* ============================================
   NOTIFICATIONS — Dropdown & Badge
   ============================================ */

.notifications-wrap {
    position: relative;
    display: inline-block;
}

/* Bell button with badge */
.notifications-btn {
    position: relative;
}

.notifications-btn__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    border: 2px solid #0f0f1a;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Pulse animation for new notifications */
.notifications-btn__badge.pulse {
    animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 360px;
    max-width: calc(100vw - 20px);
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(168, 85, 247, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
}

.notifications-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.notifications-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notifications-dropdown__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.notifications-dropdown__mark-all {
    background: none;
    border: none;
    color: #a855f7;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.notifications-dropdown__mark-all:hover {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
}

/* List */
.notifications-dropdown__list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.notifications-dropdown__list::-webkit-scrollbar {
    width: 4px;
}

.notifications-dropdown__list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-dropdown__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Item */
.notifications-dropdown__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-inline-start: 3px solid transparent;
}

.notifications-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notifications-dropdown__item:not(.is-read) {
    background: rgba(168, 85, 247, 0.06);
    border-inline-start-color: #a855f7;
}

.notifications-dropdown__item:not(.is-read):hover {
    background: rgba(168, 85, 247, 0.1);
}

.notifications-dropdown__item-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.notifications-dropdown__item-content {
    flex: 1;
    min-width: 0;
}

.notifications-dropdown__item-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.notifications-dropdown__item-message {
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.4;
}

.notifications-dropdown__item-time {
    font-size: 11px;
    color: #71717a;
    margin-top: 4px;
}

/* Empty state */
.notifications-dropdown__empty {
    text-align: center;
    padding: 40px 20px;
    color: #71717a;
    font-size: 13px;
}

.notifications-dropdown__empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Mobile */
@media (max-width: 480px) {
    .notifications-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
    }
}