/* =====================================================
   NOTIFICATIONS – ENGELS811 SYSTEM (FIXED)
===================================================== */

/* ================= WRAPPER ================= */

.notification-wrapper {
    position: relative;
    z-index: 2000;
}

/* ================= BELL ================= */

.notification-bell {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff1a1a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 12px rgba(255,26,26,0.8);
}

/* ================= DROPDOWN ================= */

.notification-dropdown {
    position: absolute;
    top: 54px;
    right: 0;
    width: 380px;
    max-height: 520px;
    display: none; /* Standardmäßig versteckt */
    flex-direction: column;
    background: linear-gradient(180deg, rgba(12,12,14,0.98), rgba(6,6,8,0.98));
    border-radius: 18px;
    border: 1px solid rgba(255,26,26,0.35);
    box-shadow: 0 0 35px rgba(255,26,26,0.25), 0 25px 70px rgba(0,0,0,0.9);
    overflow: hidden;
    z-index: 3000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* WICHTIG: Dropdown sichtbar machen wenn .open */
.notification-wrapper.open .notification-dropdown {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

/* ================= HEADER ================= */

.notification-header {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(255,26,26,0.22), rgba(0,0,0,0));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ================= LIST ================= */

.notification-list {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

/* ================= EMPTY ================= */

.notification-empty {
    padding: 36px 20px;
    text-align: center;
    font-size: 14px;
    color: #8a8a8a;
}

/* ================= CARD ================= */

.notification-card {
    position: relative;
    margin-bottom: 14px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(255,26,26,0.12), rgba(0,0,0,0.85));
    border-radius: 16px;
    border-left: 4px solid #ff1a1a;
    box-shadow: 0 0 30px rgba(255,26,26,0.25), inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: all 0.25s ease;
}

.notification-card:hover {
    box-shadow: 0 0 45px rgba(255,26,26,0.45), inset 0 0 0 1px rgba(255,26,26,0.25);
    transform: translateY(-1px);
}

/* Stil für geklickte Benachrichtigungen */
.notification-card.clicked {
    background: linear-gradient(180deg, rgba(255,26,26,0.25), rgba(30,30,30,0.95));
    box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.6);
}

/* ================= CARD LINK ================= */

.notification-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ================= CARD CONTENT ================= */

.notification-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.notification-card-message {
    font-size: 13px;
    color: #b5b5b5;
    line-height: 1.45;
}

.notification-card-time {
    margin-top: 6px;
    font-size: 11px;
    color: #777777;
}

/* ================= DELETE ================= */

.notification-card-delete {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
}

.notification-card-delete button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,26,26,0.35);
    border-radius: 999px;
    color: #ff6a6a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255,26,26,0.35);
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.notification-card-delete button:hover {
    background: rgba(255,26,26,0.9);
    color: #ffffff;
    box-shadow: 0 0 22px rgba(255,26,26,0.85);
    transform: scale(1.05);
}

/* ================= FOOTER ================= */

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(10,10,12,0.95), rgba(5,5,7,0.95));
    border-top: 1px solid rgba(255,255,255,0.08);
}

.notification-footer-action {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,26,26,0.35);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #ff1a1a;
    cursor: pointer;
    transition: all 0.25s ease;
}

.notification-footer-action:hover {
    background: rgba(255,26,26,0.18);
    box-shadow: 0 0 14px rgba(255,26,26,0.45);
}

.notification-footer-primary {
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(255,26,26,0.9), rgba(180,20,20,1));
    box-shadow: 0 0 22px rgba(255,26,26,0.6);
    cursor: pointer;
    border: none;
}

/* ================= SCROLLBAR STYLING ================= */

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255,26,26,0.4);
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,26,26,0.6);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 480px) {
    .notification-dropdown {
        width: 100vw;
        right: -20px;
        max-height: 70vh;
    }
}

/* ================= OVERFLOW FIX FÜR HEADER ================= */

.wl-header,
.wl-header-inner {
    overflow: visible !important;
}