/* home.marquee style variants */

.tf-marquee-style {
    --tf-mq-pill-radius: 999px;
    --tf-mq-pill-pad-y: 0.55rem;
    --tf-mq-pill-pad-x: 1.15rem;
}

/* Stil 1 — Klasik */
.tf-marquee-style--1.infiniteSlide-text-icon {
    padding-block: 1rem;
}

.tf-section.tf-has-section-height[data-tf-type="home.marquee"] .tf-marquee-style:not(.tf-marquee-style--3-row),
.tf-section.tf-has-section-height[data-tf-type="layout.footer"] .tf-marquee-style:not(.tf-marquee-style--3-row) {
    height: var(--tf-marquee-height);
    min-height: 0 !important;
    max-height: var(--tf-marquee-height);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-block: 0 !important;
}

.tf-section.tf-has-section-height[data-tf-type="home.marquee"] .tf-marquee-style--3 {
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.tf-section.tf-has-section-height[data-tf-type="home.marquee"] .tf-marquee-style:not(.tf-marquee-style--3-row) .infiniteslide_wrap,
.tf-section.tf-has-section-height[data-tf-type="layout.footer"] .tf-marquee-style:not(.tf-marquee-style--3-row) .infiniteslide_wrap {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.tf-section.tf-has-section-height[data-tf-type="home.marquee"] .tf-marquee-style:not(.tf-marquee-style--3-row) > .infiniteSlide-wrapper,
.tf-section.tf-has-section-height[data-tf-type="layout.footer"] .tf-marquee-style:not(.tf-marquee-style--3-row) > .infiniteSlide-wrapper {
    width: 100%;
    flex: 0 0 auto;
}

.tf-marquee-style .infiniteSlide[data-direction="up"],
.tf-marquee-style .infiniteSlide[data-direction="down"] {
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
}

.tf-marquee-style .infiniteslide_wrap {
    width: 100%;
}

.tf-section[data-tf-type="layout.topbar"]
    .tf-section__slot
    > .tf-section[data-tf-type="home.marquee"] {
    width: 100% !important;
    min-width: 0;
    align-self: stretch !important;
}

.tf-marquee-style .infiniteSlide[data-direction="up"] > .infiniteSlide-item,
.tf-marquee-style .infiniteSlide[data-direction="down"] > .infiniteSlide-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-inline: 0;
    text-align: center;
}

.tf-marquee-style .infiniteSlide[data-direction="up"] > .infiniteSlide-item > *,
.tf-marquee-style .infiniteSlide[data-direction="down"] > .infiniteSlide-item > * {
    margin-inline: auto;
    text-align: center;
}

/* Stil 2 — Haber bandı / ticker */
.tf-marquee-style--2 {
    border-block: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    padding-block: 0.65rem;
}

.tf-marquee.tf-marquee-style--2 {
    font-size: clamp(0.72rem, 1.1vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    -webkit-mask-image: none;
    mask-image: none;
}

.tf-marquee-style--2 .tf-marquee__item {
    gap: 0.85rem;
    padding-inline: 0.65rem;
}

.tf-marquee-style--2 .tf-marquee__text,
.tf-marquee-ticker-text {
    margin: 0;
    font-size: clamp(0.72rem, 1.1vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1.2;
}

.tf-marquee-style--2 .infiniteSlide-item {
    margin-left: 6px;
    margin-right: 6px;
}

.tf-marquee-slash {
    display: inline-flex;
    align-items: center;
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.45;
    line-height: 1;
    user-select: none;
}

/* Stil 3 — Çift yön */
.tf-marquee-style--3 {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-block: clamp(1.25rem, 3vw, 2.25rem);
    overflow: hidden;
}

.tf-marquee-style--3 > .tf-marquee,
.tf-marquee-style--3 > .infiniteSlide-text-icon {
    padding-block: 0;
}

.tf-marquee-style--3 > .tf-marquee.tf-marquee-style--3 {
    font-size: clamp(1.35rem, 3.2vw, 2.35rem);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.tf-marquee-style--3 > .tf-marquee.tf-marquee-style--3:nth-child(2) {
    opacity: 0.55;
}

.tf-marquee-style--3-row {
    padding-block: 0 !important;
}

.tf-marquee-style--3-row .infiniteslide_wrap {
    padding-bottom: 0.25rem;
    margin-bottom: -0.25rem;
}

.tf-marquee-style--3 > .infiniteSlide-text-icon:nth-child(2) {
    opacity: 0.55;
}

.tf-marquee-style--3 > .infiniteSlide-text-icon .text.h1 {
    font-size: clamp(1.35rem, 3.2vw, 2.35rem);
}

/* Stil 4 — Pill etiketler */
.tf-marquee-style--4 {
    padding-block: clamp(1.25rem, 3vw, 2rem);
}

.tf-marquee.tf-marquee-style--4 {
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.tf-marquee-style--4 .tf-marquee__item {
    gap: 0.75rem;
    padding-inline: 0.35rem;
}

.tf-marquee-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--tf-mq-pill-pad-y) var(--tf-mq-pill-pad-x);
    border-radius: var(--tf-mq-pill-radius);
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    background: color-mix(in srgb, currentColor 6%, transparent);
    line-height: 1;
}

.tf-marquee-pill-text,
.tf-marquee-style--4 .tf-marquee__text {
    margin: 0;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
}

.tf-marquee-style--4 .infiniteSlide-item {
    margin-left: 8px;
    margin-right: 8px;
}

.tf-marquee-style--4 .tf-marquee-pill .troke-text_black,
.tf-marquee-style--4 .tf-marquee-pill .tf-marquee__text--outline {
    -webkit-text-stroke-width: 1px;
}

@media (max-width: 767.98px) {
    .tf-marquee-style--3 > .infiniteSlide-text-icon .text.h1,
    .tf-marquee-style--3 > .tf-marquee.tf-marquee-style--3 {
        font-size: clamp(1.1rem, 5.5vw, 1.6rem);
    }
}
