/**
 * TT Campaign Slider CSS — Prototip Birebir Eşleştirme
 * Kart: gradient üst (140px) + bilgi alt alanı
 * Yatay scroll, snap, hover lift, arrow butonlar
 */

/* ─── Wrapper ─── */
.tt-ew-campaign-wrapper {
    width: 100%;
    position: relative;
}

/* ─── Header: başlık sol, arrow sağ ─── */
.tt-ew-campaign-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.tt-ew-campaign-header__text {
    flex: 1;
    min-width: 0;
}
.tt-ew-campaign-header__text .tt-ew-section-header__title {
    margin: 0 0 4px;
}
.tt-ew-campaign-header__text .tt-ew-section-header__subtitle {
    margin: 0;
}

/* ─── Arrow Navigasyon Butonları ─── */
.tt-ew-campaign-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.tt-ew-campaign-nav__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--tt-gray, #dcd8d7);
    background: var(--tt-white, #fff);
    color: var(--tt-dark, #3e3837);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    padding: 0;
    outline: none;
}
.tt-ew-campaign-nav__btn:hover {
    border-color: var(--tt-primary, #fd5c02);
    background: var(--tt-primary, #fd5c02);
    color: #fff;
}
.tt-ew-campaign-nav__btn:active {
    transform: scale(0.92);
}
.tt-ew-campaign-nav__btn.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ─── Yatay scroll container — Prototip eşleştirme ─── */
.tt-ew-campaign-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 12px;
}
.tt-ew-campaign-scroll::-webkit-scrollbar {
    display: none;
}

/* ─── Kampanya Kartı — Komple tıklanabilir link kart ─── */
a.tt-ew-campaign-card,
.tt-ew-campaign-card {
    flex: 0 0 calc((100% - 90px) / 4);
    min-width: 220px;
    height: auto !important;
    background: var(--tt-white, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(62, 56, 55, 0.08);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}
a.tt-ew-campaign-card:hover,
.tt-ew-campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(62, 56, 55, 0.16);
    text-decoration: none;
    color: inherit;
}
a.tt-ew-campaign-card:focus {
    outline: 2px solid var(--tt-primary, #fd5c02);
    outline-offset: 2px;
}

/* ─── Gradient / Banner görsel alanı ─── */
.tt-ew-campaign-card__img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ─── Banner görseli (arka plan olarak) ─── */
.tt-ew-campaign-card__banner {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ─── Renk overlay (banner üzerinde) ─── */
.tt-ew-campaign-card__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
a.tt-ew-campaign-card:hover .tt-ew-campaign-card__overlay {
    opacity: 0.5 !important;
}

/* ─── Büyük yarı saydam ikon ─── */
.tt-ew-campaign-card__icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 2;
    position: relative;
}

/* ─── Badge — overlay üzerinde ─── */
.tt-ew-campaign-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1.3;
    z-index: 2;
}

/* ─── Bilgi alanı — Prototip: padding 16px ─── */
.tt-ew-campaign-card__info {
    padding: 16px;
}

.tt-ew-campaign-card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--tt-dark, #3e3837);
    line-height: 1.3;
}

.tt-ew-campaign-card__desc {
    font-size: 13px;
    color: var(--tt-dark-light, #5a5352);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tt-ew-campaign-card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--tt-primary, #fd5c02);
    text-decoration: none;
    transition: color 0.2s ease;
}
.tt-ew-campaign-card__link:hover {
    color: var(--tt-primary-dark, #e04a00);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .tt-ew-campaign-header {
        flex-direction: row;
        align-items: center;
        margin-bottom: 20px;
    }
    .tt-ew-campaign-nav__btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    .tt-ew-campaign-scroll {
        gap: 20px;
    }
    .tt-ew-campaign-card {
        flex: 0 0 calc((100% - 40px) / 2.3);
        min-width: 220px;
    }
    .tt-ew-campaign-card__img {
        height: 150px;
    }
}
@media (max-width: 480px) {
    .tt-ew-campaign-scroll {
        gap: 16px;
    }
    .tt-ew-campaign-card {
        flex: 0 0 calc((100% - 16px) / 1.15);
        min-width: 200px;
    }
    .tt-ew-campaign-card__img {
        height: 130px;
    }
    .tt-ew-campaign-card__icon {
        font-size: 36px;
    }
    .tt-ew-campaign-nav__btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}
