/* =============================================
   HEADER TOP BAR — Kampanya ticker
   ============================================= */

.header-top {
    display: block;
    border-bottom: 1px solid var(--color-header-border);
    background: rgba(0, 0, 0, 0.18);
    --header-top-ticker-line: 1.25rem;
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-md);
    min-height: var(--header-top-height);
}

.header-top__campaign {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
}

.header-top__campaign-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    width: max-content;
}

.header-top__campaign-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.header-top__ticker {
    flex: 0 1 auto;
    min-width: 0;
    width: max-content;
    max-width: min(100%, 520px);
    height: var(--header-top-ticker-line);
    overflow: hidden;
    position: relative;
}

.header-top__ticker-track {
    display: flex;
    flex-direction: column;
    animation: header-top-ticker-step 12s ease-in-out infinite;
    will-change: transform;
}

.header-top__ticker-track--static {
    animation: none;
}

.header-top__ticker-track[data-ticker-count="3"] {
    animation-name: header-top-ticker-step-3;
}

.header-top__ticker-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    height: var(--header-top-ticker-line);
    margin: 0;
    font-size: var(--font-size-xs);
    line-height: var(--header-top-ticker-line);
    color: rgba(255, 255, 255, 0.88);
    min-width: 0;
    width: max-content;
    max-width: 100%;
}

.header-top__ticker-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-top__code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.header-top__ticker-sep {
    color: rgba(255, 255, 255, 0.35);
}

.header-top__ticker-code {
    color: #4ade80;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.header-top__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
    font-size: 0.625rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.header-top__copy:hover {
    background: rgba(74, 222, 128, 0.28);
    color: #86efac;
    transform: translateY(-1px);
}

.header-top__copy.is-copied {
    background: rgba(74, 222, 128, 0.32);
    color: #bbf7d0;
}

.header-top__slot {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 1px;
}

.header-top__support {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-top__support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 1.75rem;
    padding: 0 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.header-top__support-btn:hover {
    transform: translateY(-1px);
}

.header-top__support-btn--mail {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-top__support-btn--mail:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-top__support-btn--inquiry {
    color: #38bdf8;
    background: rgba(30, 64, 175, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    font-family: inherit;
    padding-inline: 0.85rem;
}

.header-top__support-btn--inquiry:hover {
    color: #7dd3fc;
    background: rgba(30, 64, 175, 0.5);
    border-color: rgba(56, 189, 248, 0.38);
}

.header-top__support-btn--inquiry svg {
    flex-shrink: 0;
}

.header-top__support-btn--whatsapp {
    position: relative;
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border: 1px solid rgba(134, 239, 172, 0.45);
    padding-right: 0.55rem;
    animation: header-top-whatsapp-glow 2.2s ease-in-out infinite;
}

.header-top__support-btn--whatsapp:hover {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    border-color: rgba(187, 247, 208, 0.65);
}

.header-top__support-btn i {
    flex-shrink: 0;
    font-size: 0.8125rem;
}

.header-top__support-btn--mail .header-top__support-label {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-top__online-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-left: 0.1rem;
    border-radius: 50%;
    background: #ecfccb;
    animation: header-top-online-dot 1.5s ease-in-out infinite;
}

@keyframes header-top-whatsapp-glow {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(34, 197, 94, 0.35),
            inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    50% {
        box-shadow:
            0 0 14px 2px rgba(34, 197, 94, 0.42),
            inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    }
}

@keyframes header-top-online-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 252, 203, 0.85);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.88);
        box-shadow: 0 0 0 5px rgba(236, 252, 203, 0);
    }
}

@media (max-width: 1199px) {
    .header-top__slot {
        display: none;
    }
}

@media (max-width: 767px) {
    .header-top {
        --header-top-ticker-line: 2rem;
    }

    .header-top__inner {
        flex-direction: row;
        align-items: center;
        gap: 0;
        min-height: auto;
        padding-block: 0.5rem;
    }

    .header-top__campaign {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        margin-left: 0;
        justify-content: center;
    }

    .header-top__campaign-line {
        width: 100%;
        max-width: 100%;
    }

    .header-top__ticker {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    .header-top__campaign-icon svg {
        width: 13px;
        height: 13px;
    }

    .header-top__ticker-item {
        display: flex;
        width: 100%;
        max-width: 100%;
        font-size: clamp(0.625rem, 2.8vw, 0.75rem);
        line-height: 1.25;
        align-items: center;
        flex-wrap: nowrap;
    }

    .header-top__ticker-text {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-top__code-wrap {
        flex-shrink: 0;
        margin-left: 0;
    }

    .header-top__ticker-code {
        font-size: clamp(0.6875rem, 3vw, 0.8125rem);
    }

    .header-top__copy {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.6875rem;
    }
}

@media (max-width: 479px) {
    .header-top {
        --header-top-ticker-line: 2.125rem;
    }

    .header-top__inner {
        gap: 0.4rem;
        padding-block: 0.45rem;
    }

    .header-top__ticker-item {
        font-size: clamp(0.5625rem, 2.6vw, 0.6875rem);
        gap: 0.25rem;
    }

    .header-top__ticker-code {
        letter-spacing: 0.02em;
    }
}

@keyframes header-top-ticker-step-3 {
    0%,
    28% {
        transform: translateY(0);
    }

    33%,
    61% {
        transform: translateY(calc(-1 * var(--header-top-ticker-line)));
    }

    66%,
    94% {
        transform: translateY(calc(-2 * var(--header-top-ticker-line)));
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes header-top-ticker-step {
    0%,
    18% {
        transform: translateY(0);
    }

    22%,
    40% {
        transform: translateY(calc(-1 * var(--header-top-ticker-line)));
    }

    44%,
    62% {
        transform: translateY(calc(-2 * var(--header-top-ticker-line)));
    }

    66%,
    84% {
        transform: translateY(calc(-3 * var(--header-top-ticker-line)));
    }

    88%,
    100% {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-top__ticker-track,
    .header-top__ticker-track[data-ticker-count="3"] {
        animation: none;
    }

    .header-top__ticker-item:nth-child(n + 2) {
        display: none;
    }

    .header-top__support-btn--whatsapp,
    .header-top__online-dot {
        animation: none;
    }

    .header-top__online-dot {
        opacity: 1;
        transform: none;
    }
}

/* Mobil menü — destek aksiyonları */
.header-mobile-support {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.header-mobile-support__btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    min-height: 3.75rem;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    text-align: left;
    font-family: inherit;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.header-mobile-support__btn:hover {
    transform: translateY(-1px);
}

.header-mobile-support__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    font-size: 1.125rem;
}

.header-mobile-support__icon svg {
    display: block;
    flex-shrink: 0;
}

.header-mobile-support__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.header-mobile-support__label {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
}

.header-mobile-support__value {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.82;
}

.header-mobile-support__btn--mail {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-mobile-support__btn--mail .header-mobile-support__icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.header-mobile-support__btn--mail:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-mobile-support__btn--mail .header-mobile-support__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-mobile-support__btn--inquiry {
    color: #7dd3fc;
    background: rgba(30, 64, 175, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.24);
    cursor: pointer;
}

.header-mobile-support__btn--inquiry .header-mobile-support__icon {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}

.header-mobile-support__btn--inquiry:hover {
    color: #bae6fd;
    background: rgba(30, 64, 175, 0.48);
    border-color: rgba(56, 189, 248, 0.38);
}

.header-mobile-support__btn--whatsapp {
    position: relative;
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border: 1px solid rgba(134, 239, 172, 0.45);
}

.header-mobile-support__btn--whatsapp .header-mobile-support__icon {
    background: rgba(255, 255, 255, 0.16);
}

.header-mobile-support__btn--whatsapp .header-mobile-support__value {
    opacity: 0.92;
}

.header-mobile-support__btn--whatsapp:hover {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    border-color: rgba(187, 247, 208, 0.65);
}

.header-mobile-support__online {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-left: 0.25rem;
    border-radius: 50%;
    background: #ecfccb;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.35);
    animation: header-top-online-dot 2s ease-in-out infinite;
}

@media (min-width: 1200px) {
    .header-mobile-support {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-mobile-support__online {
        animation: none;
    }
}

/* Mobil menü — kompakt düzen */
@media (max-width: 1199.98px) {
    .header-main__nav {
        padding: 1rem 1rem 1.15rem;
    }

    .header-main__nav-top {
        padding-bottom: 0.75rem;
        margin-bottom: 0.45rem;
    }

    .header-main__nav-logo img {
        height: 40px;
    }

    .header-main__nav-close {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .header-main__menu {
        gap: 0.45rem;
    }

    .header-main__link {
        min-height: 2.75rem;
        padding: 0.55rem 0.65rem;
        gap: 0.6rem;
        font-size: 0.875rem;
    }

    .header-main__icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        --header-menu-icon-size: 18px;
    }

    .header-main__icon svg {
        width: var(--header-menu-icon-size);
        height: var(--header-menu-icon-size);
    }

    .header-main__icon i {
        width: var(--header-menu-icon-size);
        height: var(--header-menu-icon-size);
        font-size: var(--header-menu-icon-size);
    }

    .header-main__mobile-actions {
        gap: 0.6rem;
        padding-top: 0.85rem;
    }

    .header-account--mobile,
    .header-user-menu--mobile .header-user-menu__trigger {
        min-height: 2.85rem;
        padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    }

    .header-account--mobile .header-account__avatar,
    .header-user-menu--mobile .header-account__avatar {
        width: 2.15rem;
        height: 2.15rem;
    }

    .header-account--mobile .header-account__name,
    .header-user-menu--mobile .header-account__name {
        font-size: 0.8125rem;
    }

    .header-account--mobile .header-account__balance,
    .header-user-menu--mobile .header-account__balance {
        font-size: 0.75rem;
    }

    .header-mobile-support {
        gap: 0.45rem;
    }

    .header-mobile-support__btn {
        min-height: 2.85rem;
        padding: 0.6rem 0.8rem;
        gap: 0.6rem;
        border-radius: 12px;
    }

    .header-mobile-support__icon {
        width: 2rem;
        height: 2rem;
        border-radius: 9px;
        font-size: 0.95rem;
    }

    .header-mobile-support__icon svg {
        width: 16px;
        height: 16px;
    }

    .header-mobile-support__label {
        font-size: 0.8125rem;
    }

    .header-mobile-support__value {
        font-size: 0.75rem;
    }
}
