/* Sitenin üst menüsündeki bildirim zili (giriş yapmış kullanıcı).
   Düğme tema / dil düğmeleriyle aynı (butto-outline-main); açılır liste profil menüsünün kutusunu kullanır.
   Renkler colors.css :root değişkenlerindendir. */

.header-noti {
    position: relative;
}

.header-noti-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-noti-btn.dropdown-toggle::after {
    display: none;
}

.header-noti-btn i {
    font-size: 18px;
    line-height: 1;
}

/* Okunmamış sayısı: düğmenin sağ üst köşesinde turuncu rozet */
.header-noti-count {
    position: absolute;
    top: -7px;
    right: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--card-bg);
    border-radius: 9px;
    background: var(--main-color);
    color: var(--on-main);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.header-noti-menu {
    width: 340px;
    max-width: calc(100vw - 32px);
}

.header-noti-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line-color);
}

.header-noti-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--base-text);
}

.header-noti-readall {
    padding: 0;
    border: 0;
    background: none;
    color: var(--main-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.header-noti-readall:hover {
    color: var(--main-color-hover);
}

.header-noti-list {
    margin: 0;
    padding: 8px;
    list-style: none;
}

.header-noti-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--base-text);
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.header-noti-item:hover {
    border-color: var(--main-color-line);
    color: var(--base-text);
}

.header-noti-item.is-unread {
    background: var(--bg);
}

/* İkon kutusu: sitedeki çerçeveli kare ikon kutularıyla aynı */
.header-noti-icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--main-color-line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--main-color);
    font-size: 18px;
}

.header-noti-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.header-noti-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.header-noti-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--main-color);
}

.header-noti-item.is-unread .header-noti-label::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 6px 2px 0;
    border-radius: 50%;
    background: var(--main-color);
    vertical-align: middle;
}

.header-noti-date {
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--light-text);
}

.header-noti-body {
    font-size: 13px;
    font-weight: 500;
    color: var(--base-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-noti-project {
    font-size: 12px;
    color: var(--light-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-noti-empty {
    margin: 0;
    padding: 20px 16px;
    font-size: 13px;
    text-align: center;
    color: var(--light-text);
}

.header-noti-foot {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--line-color);
}

.header-noti-all {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Mobil üst çubuk: zil menü düğmesinin solunda, bildirimler sayfasına gider; rozet ikon kutusunun köşesinde */
.nav-action .header-noti-mobile .header-noti-count {
    top: -7px;
    right: -7px;
}

/* Mobil menü (1024px altı) açıkken zil üst çubukta zaten var; yan menüde ikinci kez gösterilmez,
   böylece tema, dil, Fiyat Listesi ve avatar tek satıra sığar. */
@media (max-width: 1024px) {
    .wrap-side .header-noti {
        display: none;
    }
}

/* Dar telefonlarda (400px altı) zil eklenince üst çubuk sığmıyor, menü düğmesi ekran dışına taşıyordu.
   Yalnızca zil varken: ikonlar ve aralıklar biraz küçülür, logo kalan alana sığacak kadar küçülür. */
@media (max-width: 400px) {
    .wrap-response-head:has(.header-noti-mobile) {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .wrap-response-head:has(.header-noti-mobile) .nav-action {
        gap: 4px;
    }

    .wrap-response-head:has(.header-noti-mobile) .nav-action .icon {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .wrap-response-head:has(.header-noti-mobile) .response-nav-logo a {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .wrap-response-head:has(.header-noti-mobile) .response-nav-logo img {
        width: 100%;
        max-width: 102px;
        height: auto !important;
    }

    /* Yan menü dar: tema, dil ve en sağda avatar / Giriş Yap üst satırda, Fiyat Listesi altta tam genişlikte */
    body .wrap-side .wrap-action {
        flex-wrap: wrap;
    }

    body .wrap-side .wrap-action > .butto {
        flex: 0 0 auto;
        width: auto;
    }

    body .wrap-side .wrap-action > :last-child {
        margin-left: auto;
    }

    body .wrap-side .wrap-action > .shop-buy-button:not(:last-child) {
        order: 1;
        flex: 1 1 100%;
        justify-content: center;
    }
}
