/* =============================================
   HEADER BİLDİRİM DROPDOWN
   ============================================= */

body.notifications-open .site-header,
body.notifications-open .header-main,
body.notifications-open .header-main__inner,
body.notifications-open .header-main__actions,
body.notifications-open .hero__inner {
    overflow: visible;
}

.header-notifications {
    position: relative;
    overflow: visible;
}

.header-notifications__trigger {
    border: none;
    cursor: pointer;
    font: inherit;
}

.header-notifications__panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 1310;
    display: flex;
    flex-direction: column;
    width: min(24rem, calc(100vw - 2rem));
    max-height: min(32rem, calc(100dvh - 6.5rem));
    padding: 0;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    overflow: hidden;
}

.header-notifications__panel[hidden] {
    display: none !important;
}

.header-notifications__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem 0.9rem;
    border-bottom: 1px solid #e5e7eb;
}

.header-notifications__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.header-notifications__mark-all {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    color: #64748b;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-notifications__mark-all:hover:not(:disabled) {
    color: #3566df;
}

.header-notifications__mark-all:disabled {
    opacity: 0.45;
    cursor: default;
}

.header-notifications__list {
    margin: 0;
    padding: 0.85rem 1rem 1rem;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.header-notifications__item-wrap + .header-notifications__item-wrap {
    margin-top: 0.65rem;
}

.header-notifications__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    background: #f0f0f0;
    border: none;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease;
}

.header-notifications__item:hover {
    background: #e8e8e8;
}

.header-notifications__item.is-unread {
    background: #f0f0f0;
}

.header-notifications__item.is-unread:hover {
    background: #e8e8e8;
}

.header-notifications__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.95rem;
    color: #333333;
    background: transparent;
}

.header-notifications__icon--neutral,
.header-notifications__icon--blue,
.header-notifications__icon--violet,
.header-notifications__icon--emerald {
    color: #333333;
    background: transparent;
}

.header-notifications__copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
    padding-right: 0.5rem;
}

.header-notifications__item-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
}

.header-notifications__item-desc {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    color: #4b5563;
}

.header-notifications__dot {
    display: none;
}

.header-notifications__empty {
    display: block;
    padding: 1.25rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.header-icon-btn__badge.is-hidden {
    display: none;
}

.header-icon-btn--notify .header-icon-btn__badge {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 767px) {
    .header-notifications__panel {
        position: fixed;
        top: calc(var(--header-main-height, 4.5rem) + 1.25rem);
        right: 0.75rem;
        left: auto;
        width: min(19rem, calc(100vw - 1.5rem));
        max-height: min(22rem, calc(100dvh - var(--header-main-height, 4.5rem) - 2rem));
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    }

    .header-notifications__head {
        padding: 0.7rem 0.8rem 0.65rem;
        gap: 0.5rem;
    }

    .header-notifications__title {
        font-size: 0.875rem;
    }

    .header-notifications__mark-all {
        font-size: 0.6875rem;
        max-width: 6.5rem;
    }

    .header-notifications__list {
        padding: 0.55rem 0.65rem 0.7rem;
    }

    .header-notifications__item-wrap + .header-notifications__item-wrap {
        margin-top: 0.45rem;
    }

    .header-notifications__item {
        gap: 0.6rem;
        padding: 0.65rem 0.7rem;
        border-radius: 8px;
    }

    .header-notifications__icon {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.8rem;
    }

    .header-notifications__copy {
        gap: 0.25rem;
        padding-right: 0;
    }

    .header-notifications__item-title {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .header-notifications__item-desc {
        font-size: 0.6875rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .header-icon-btn--notify .header-icon-btn__badge {
        top: -6px;
        right: -6px;
        min-width: 17px;
        height: 17px;
        font-size: 0.5625rem;
    }
}

@media (max-width: 399px) {
    .header-notifications__panel {
        right: 0.5rem;
        width: calc(100vw - 1rem);
        max-height: min(20rem, calc(100dvh - var(--header-main-height, 4.5rem) - 1rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-notifications__item {
        transition: none;
    }
}
