/* 알림 벨 아이콘 */
.notification-bell {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification-bell-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.notification-bell-btn:active {
    transform: scale(0.95);
}

.notification-bell-btn svg {
    width: 24px;
    height: 24px;
}

/* 알림 배지 */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid rgba(0, 0, 0, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 알림 드롭다운 */
.notification-dropdown {
    position: absolute;
    top: 58px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 알림 헤더 */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.mark-all-read-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.mark-all-read-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.mark-all-read-btn svg {
    width: 18px;
    height: 18px;
}

/* 알림 리스트 */
.notification-list {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 빈 알림 메시지 */
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 알림 아이템 */
.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
}

.notification-item.unread {
    padding-left: 28px;
}

.notification-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.notification-type.chat {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.notification-type.mention {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.notification-type.admin {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.notification-type.system {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-delete-btn {
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    color: #f87171;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.4);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .notification-bell {
        top: 70px;
        right: 10px;
    }

    .notification-dropdown {
        width: calc(100vw - 20px);
        right: -10px;
    }

    .notification-bell-btn {
        width: 44px;
        height: 44px;
    }

    .notification-bell-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* 다크 모드 지원 */
[data-theme="dark"] .notification-dropdown {
    background: rgba(20, 20, 30, 0.95);
}

[data-theme="dark"] .notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* 라이트 모드 */
[data-theme="light"] .notification-bell-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

[data-theme="light"] .notification-bell-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .notification-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .notification-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .notification-header h3 {
    color: #333;
}

[data-theme="light"] .mark-all-read-btn {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .mark-all-read-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .notification-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .notification-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .notification-title {
    color: #333;
}

[data-theme="light"] .notification-message {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .notification-time {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .notification-empty {
    color: rgba(0, 0, 0, 0.4);
}
