﻿.hb-top {
    --hb-top-bg: #111827;
    --hb-top-fg: #ffffff;
    --hb-top-border: rgba(255,255,255,.14);
    border-bottom: 1px solid var(--hb-top-border);
    background: var(--hb-top-bg);
    color: var(--hb-top-fg);
}

.hb-top--light {
    --hb-top-bg: #ffffff;
    --hb-top-fg: #111827;
    --hb-top-border: rgba(17,24,39,.10);
}

.hb-top--brand {
    --hb-top-bg: #0d6efd;
    --hb-top-fg: #ffffff;
    --hb-top-border: rgba(255,255,255,.20);
}

.hb-top--sticky {
    position: sticky;
}

.hb-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: var(--hb-top-maxw, 100%); /* ✅ default 100% */
    margin: 0 auto;
    box-sizing: border-box;
}

.hb-top__left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.hb-top__badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: inherit;
    white-space: nowrap;
}

.hb-top--light .hb-top__badge {
    background: rgba(13,110,253,.10);
    color: #0d6efd;
}

.hb-top__icon {
    font-size: 16px;
    margin-top: 2px;
    opacity: .9;
}

.hb-top__content {
    min-width: 0;
}

.hb-top__title {
    font-weight: 800;
    font-size: 13px;
    line-height: 1.15;
    margin-bottom: 2px;
}

.hb-top__text {
    font-size: 13px;
    line-height: 1.25;
    opacity: .95;
    word-break: break-word;
}

    /* ✅ HTML normalize: p/ul/ol marginları şişirmesin, title/HTML "görünmüyor" hissi oluşmasın */
    .hb-top__text p,
    .hb-top__text ul,
    .hb-top__text ol {
        margin: 0;
    }

    .hb-top__text ul,
    .hb-top__text ol {
        padding-left: 18px;
    }

.hb-top__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.hb-top__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    color: inherit;
    background: rgba(255,255,255,.14);
}

    .hb-top__cta:hover {
        opacity: .95;
    }

.hb-top--light .hb-top__cta {
    background: rgba(13,110,253,.10);
    color: #0d6efd;
}

.hb-top__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 10px;
    opacity: .85;
}

    .hb-top__close:hover {
        background: rgba(255,255,255,.10);
        opacity: 1;
    }

.hb-top--light .hb-top__close:hover {
    background: rgba(17,24,39,.06);
}

.hb-top-spacer {
    width: 100%;
}

.hb-top--anim {
    animation: hbTopIn .22s ease-out both;
}

@keyframes hbTopIn {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ✅ Compact: sadece padding/font küçült (title artık gizlenmiyor) */


@media (max-width: 576px) {
    .hb-top--compact .hb-top__inner {
        gap: 10px;
    }

    .hb-top--compact .hb-top__badge {
        display: none;
    }

    .hb-top--compact .hb-top__title {
        font-size: 12px;
    }

    .hb-top--compact .hb-top__text {
        font-size: 12px;
    }

    .hb-top--compact .hb-top__cta {
        padding: 6px 8px;
    }
}

.hb-top__left {
    flex: 1;
    min-width: 0;
}

.hb-top__content {
    flex: 1;
    min-width: 0;
}

/* word-break yerine daha doğal kırılım */
.hb-top__text {
    word-break: normal;
    overflow-wrap: anywhere;
}