/* ═══════════════════════════════════════════════════════════════
   ÉRTESÍTÉSI HARANG — notification-bell.css
   Globális stílus: minden oldalon a fejlécben jelenik meg.
   ═══════════════════════════════════════════════════════════════ */

/* ═══ HARANG SLOT ═══ */
.notif-bell-slot {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.notif-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light, #475569);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.notif-bell-btn:hover {
    background: var(--primary-subtle, rgba(99, 102, 241, 0.06));
    color: var(--primary-color, #6366f1);
}

.notif-bell-btn[aria-expanded="true"] {
    background: var(--primary-subtle, rgba(99, 102, 241, 0.06));
    color: var(--primary-color, #6366f1);
}

/* ═══ BADGE ═══ */
.notif-bell-badge {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--bg-color, #f8fafc);
    animation: notifBadgePulse 2s infinite;
}

@keyframes notifBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ═══ DROPDOWN PANEL ═══ */
.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 360px;
    max-height: 440px;
    display: none;
    flex-direction: column;
    background: var(--card-bg, rgba(255, 255, 255, 0.92));
    border: 1px solid var(--border-color, rgba(226, 232, 240, 0.8));
    border-radius: var(--radius-md, 14px);
    box-shadow: var(--shadow-lg, 0 20px 50px rgba(15, 23, 42, 0.1));
    backdrop-filter: blur(12px);
    z-index: 1000;
    overflow: hidden;
}

.notif-panel--open {
    display: flex;
    animation: notifPanelIn 0.2s ease;
}

@keyframes notifPanelIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Panel fejléc ── */
.notif-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border-color, rgba(226, 232, 240, 0.8));
}

.notif-panel__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
}

.notif-panel__mark-read {
    background: none;
    border: none;
    color: var(--primary-color, #6366f1);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.notif-panel__mark-read:hover {
    background: var(--primary-subtle, rgba(99, 102, 241, 0.06));
}

/* ── Üzenet lista ── */
.notif-panel__list {
    overflow-y: auto;
    max-height: 320px;
    padding: 6px 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    transition: background 0.15s ease;
}

.notif-item:hover {
    background: var(--primary-subtle, rgba(99, 102, 241, 0.06));
}

.notif-item--read {
    opacity: 0.55;
}

.notif-item > i {
    margin-top: 2px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notif-item--info > i { color: #3b82f6; }
.notif-item--warning > i { color: #f59e0b; }
.notif-item--danger > i { color: #f97316; }
.notif-item--expired > i { color: #ef4444; }

.notif-item__body {
    flex: 1;
    min-width: 0;
}

.notif-item__message {
    font-size: 0.82rem;
    color: var(--text-main, #0f172a);
    line-height: 1.45;
    margin: 0;
    word-wrap: break-word;
}

/* ── Üres állapot ── */
.notif-panel__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    color: var(--text-muted, #94a3b8);
}

.notif-panel__empty > i {
    font-size: 2rem;
    color: var(--success-color, #10b981);
    margin-bottom: 10px;
}

.notif-panel__empty > p {
    font-size: 0.84rem;
    margin: 0;
    text-align: center;
}

/* ── Panel lábléc ── */
.notif-panel__footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-color, rgba(226, 232, 240, 0.8));
    text-align: center;
}

.notif-panel__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color, #6366f1);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notif-panel__link:hover {
    background: var(--primary-subtle, rgba(99, 102, 241, 0.06));
}

.notif-panel__link > i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.notif-panel__link:hover > i {
    transform: translateX(3px);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 480px) {
    .notif-panel {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}
