/**
 * Hero — YON ana sayfa slider
 */
.yon-hero-h {
    --yon-hero-accent: var(--h-blue, #667afa);
    --yon-hero-h: clamp(240px, 32vw, 380px);
    --yon-hero-thumb-h: 56px;
    --yon-hero-aspect: 2.82;
    padding: clamp(10px, 1.5vw, 16px) 0 clamp(14px, 2vw, 20px);
    background-color: var(--h-bg-page, #161b28);
    position: relative;
    overflow: hidden;
}

.yon-hero-h__scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.yon-hero-h__scene-layer {
    position: absolute;
    inset: 0;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.yon-hero-h__scene-layer.is-active {
    opacity: 0.28;
}

.yon-hero-h .yon-home__wrap {
    position: relative;
    z-index: 1;
}

/* Promo şeridi */
.yon-hero-h__promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
    padding: 10px 14px;
    min-height: 0;
    border-radius: var(--h-radius, 12px);
    border: 1px solid var(--h-border-soft, rgba(50, 57, 78, 0.72));
    background: linear-gradient(90deg, var(--h-orange-soft, rgba(255, 193, 7, 0.14)) 0%, var(--h-bg-card) 55%);
    box-shadow: var(--h-shadow-card);
}

.yon-hero-h__promo-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.yon-hero-h__promo-logo {
    height: 28px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}

.yon-hero-h__promo-title {
    color: var(--h-text-bright, #ffffff);
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.yon-hero-h__promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.yon-hero-h__promo-btn i {
    font-size: 14px;
}

/* Slider */
.yon-hero-h__slider-wrap {
    border-radius: var(--h-radius-lg, 16px);
    overflow: hidden;
    position: relative;
    background: var(--h-bg-card);
    border: 1px solid var(--h-border);
    box-shadow: var(--h-shadow-elevated);
}

.yon-hero-h__main {
    width: 100%;
    padding-bottom: var(--yon-hero-thumb-h);
    overflow: hidden;
    height: var(--yon-hero-h);
}

.yon-hero-h__main .swiper-wrapper {
    height: 100%;
}

.yon-hero-h__main .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.yon-hero-h__main .swiper-slide::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: calc(100% - var(--yon-hero-thumb-h) - 24px);
    z-index: 4;
    border-radius: 0 6px 6px 0;
    background: var(--yon-hero-accent);
    transition: 0.25s ease;
}

.yon-hero-h__slide--pubg::before { background: #de8d00; }
.yon-hero-h__slide--mobilelegends::before,
.yon-hero-h__slide--mobile_legends::before { background: #ee683d; }
.yon-hero-h__slide--valorant::before { background: #ff4454; }
.yon-hero-h__slide--lol::before { background: #b39556; }
.yon-hero-h__slide--freefire::before { background: #ff7f32; }
.yon-hero-h__slide--roblox::before { background: #e73636; }
.yon-hero-h__slide--genshin::before { background: var(--h-blue); }

.yon-hero-h__slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.yon-hero-h__slide-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(22, 27, 40, 0.88) 0%,
        rgba(22, 27, 40, 0.42) 45%,
        rgba(22, 27, 40, 0.08) 100%
    );
}

.yon-hero-h__slide-link--empty {
    cursor: default;
}

.yon-hero-h__slide-link--empty::after {
    background: linear-gradient(135deg, rgba(34, 36, 51, 0.92), rgba(22, 27, 40, 0.55));
}

picture.yon-hero-h__media {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.yon-hero-h__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.yon-hero-h__media .yon-hero-h__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.yon-hero-h__img--mobile {
    display: none;
}

.yon-hero-h__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--h-bg-header) 0%, var(--h-bg-page) 100%);
}

@keyframes yon-hero-kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}

.yon-hero-h__main.yon-hero-h__main--ready .swiper-slide.swiper-slide-active .yon-hero-h__img {
    animation: none;
}

/* Metin katmanı */
.yon-hero-h__txt {
    position: absolute;
    left: 48px;
    top: 0;
    width: min(52%, 520px);
    height: calc(100% - var(--yon-hero-thumb-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 5;
    color: #fff;
    padding: 12px 0;
    pointer-events: none;
}

.yon-hero-h__badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 999px;
    margin: 0 0 10px;
    border: 1px solid var(--h-orange);
    color: var(--h-orange);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--h-orange-soft);
}

.yon-hero-h__slide--pubg .yon-hero-h__badge { border-color: #de8d00; color: #fbbf24; background: rgba(222, 141, 0, 0.15); }
.yon-hero-h__slide--valorant .yon-hero-h__badge { border-color: #ff4454; color: #fca5a5; background: rgba(255, 68, 84, 0.12); }
.yon-hero-h__slide--roblox .yon-hero-h__badge { border-color: #e73636; color: #fecaca; background: rgba(231, 54, 54, 0.15); }
.yon-hero-h__slide--genshin .yon-hero-h__badge { border-color: var(--h-blue); color: var(--h-blue-text); background: var(--h-blue-soft); }

.yon-hero-h__top-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--h-text-muted);
    margin-bottom: 4px;
}

.yon-hero-h__main-title {
    display: block;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    margin-bottom: 8px;
    color: var(--h-text-bright);
}

.yon-hero-h__sub-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--h-text);
    max-width: 36ch;
}

/* Thumb sekmeleri — turuncu aktif */
.yon-hero-h__thumbs-wrap {
    display: flex;
    height: var(--yon-hero-thumb-h);
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    background: var(--h-bg-header);
    backdrop-filter: blur(12px);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-top: 1px solid var(--h-border);
}

.yon-hero-h__thumb {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--h-border);
    border-top: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}

.yon-hero-h__thumb:hover:not(.is-active) {
    background: var(--h-bg-raised);
    border-top-color: rgba(102, 122, 250, 0.45);
}

.yon-hero-h__thumb:first-child {
    border-left: none;
}

.yon-hero-h__thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 22px;
    object-fit: contain;
    opacity: 0.45;
    transition: opacity 0.25s, transform 0.25s;
}

.yon-hero-h__thumb img.yon-hero-h__thumb-img--mono {
    filter: brightness(0) invert(1);
}

.yon-hero-h__thumb-fallback {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--h-text-muted);
    text-transform: uppercase;
}

.yon-hero-h__thumb.is-active {
    background: var(--h-orange-soft);
    border-top-color: var(--h-orange);
}

.yon-hero-h__thumb.is-active img {
    opacity: 1;
    transform: scale(1.06);
}

.yon-hero-h__thumb--pubg.is-active { border-top-color: #de8d00; background: rgba(222, 141, 0, 0.12); }
.yon-hero-h__thumb--valorant.is-active { border-top-color: #ff4454; background: rgba(255, 68, 84, 0.1); }
.yon-hero-h__thumb--roblox.is-active { border-top-color: #e73636; background: rgba(231, 54, 54, 0.1); }
.yon-hero-h__thumb--genshin.is-active { border-top-color: var(--h-blue); background: var(--h-blue-soft); }

/* Alt şerit kartları — sabit eşit boyut */
.yon-hero-h__strip {
    --yon-strip-w: 268px;
    --yon-strip-h: 72px;
    display: grid;
    grid-template-columns: repeat(4, var(--yon-strip-w));
    width: fit-content;
    max-width: 100%;
    margin-top: 10px;
    gap: 10px;
}

.yon-hero-h__strip--single {
    grid-template-columns: var(--yon-strip-w);
    justify-content: start;
}

.yon-hero-h__strip--duo {
    grid-template-columns: repeat(2, var(--yon-strip-w));
    max-width: calc(var(--yon-strip-w) * 2 + 10px);
}

.yon-hero-h__strip-item {
    position: relative;
    display: block;
    width: var(--yon-strip-w);
    height: var(--yon-strip-h);
    padding: 0;
    text-decoration: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.yon-hero-h__strip-item:hover {
    transform: translateY(-2px);
}

.yon-hero-h__strip-frame {
    position: relative;
    height: 100%;
    padding: 1px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--h-blue) 70%, transparent) 0%,
        color-mix(in srgb, var(--h-blue-dark) 45%, transparent) 50%,
        color-mix(in srgb, var(--h-blue) 55%, transparent) 100%
    );
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--h-blue) 28%, var(--h-border)),
        0 0 16px color-mix(in srgb, var(--h-blue) 16%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--h-text-bright) 8%, transparent);
}

.yon-hero-h__strip-frame::before,
.yon-hero-h__strip-frame::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 2;
}

.yon-hero-h__strip-frame::before {
    top: 0;
    left: 0;
    border-top: 2px solid color-mix(in srgb, var(--h-blue) 75%, #fff);
    border-left: 2px solid color-mix(in srgb, var(--h-blue) 75%, #fff);
    border-radius: 10px 0 0 0;
    box-shadow: -1px -1px 8px color-mix(in srgb, var(--h-blue) 28%, transparent);
}

.yon-hero-h__strip-frame::after {
    right: 0;
    bottom: 0;
    border-right: 2px solid color-mix(in srgb, var(--h-blue) 75%, #fff);
    border-bottom: 2px solid color-mix(in srgb, var(--h-blue) 75%, #fff);
    border-radius: 0 0 10px 0;
    box-shadow: 1px 1px 8px color-mix(in srgb, var(--h-blue) 28%, transparent);
}

.yon-hero-h__strip-frame-inner {
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, color-mix(in srgb, var(--h-blue) 14%, transparent), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, color-mix(in srgb, var(--h-blue-dark) 12%, transparent), transparent 50%),
        color-mix(in srgb, var(--h-bg-card) 94%, #120e1e);
    border: 1px solid color-mix(in srgb, var(--h-border) 80%, transparent);
}

.yon-hero-h__strip-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.yon-hero-h__strip-bg,
.yon-hero-h__strip-overlay {
    display: none !important;
}

.yon-hero-h__strip-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
    border-top: 1px solid color-mix(in srgb, var(--h-border) 70%, transparent);
    background: color-mix(in srgb, var(--h-bg-header) 55%, transparent);
}

.yon-hero-h__strip-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.yon-hero-h__strip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.yon-hero-h__strip-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--h-text-bright);
    line-height: 1.2;
}

.yon-hero-h__strip-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--h-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (min-width: 992px) {
    .yon-hero-h {
        --yon-hero-h: 380px;
    }

    .yon-hero-h__main {
        padding-bottom: 0;
    }

    .yon-hero-h__main .swiper-slide::before {
        top: 14px;
        height: calc(100% - var(--yon-hero-thumb-h) - 28px);
    }
}

@media (max-width: 991px) {
    .yon-hero-h__txt {
        left: 20px;
        width: 58%;
    }

    .yon-hero-h__sub-title {
        display: none;
    }

    .yon-hero-h__strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .yon-hero-h {
        --yon-hero-h: clamp(200px, 52vw, 280px);
        --yon-hero-thumb-h: 44px;
        padding-top: 8px;
    }

    .yon-hero-h__promo {
        flex-wrap: wrap;
        margin-bottom: 10px;
        padding: 10px 12px;
        gap: 10px;
    }

    .yon-hero-h__promo-content {
        flex: 1 1 100%;
    }

    .yon-hero-h__promo-btn {
        flex: 1 1 auto;
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }

    .yon-hero-h__promo-title {
        font-size: 13px;
    }

    .yon-hero-h__promo-logo {
        max-height: 24px;
    }

    .yon-hero-h__slider-wrap {
        border-radius: 12px;
    }

    .yon-hero-h__thumbs-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .yon-hero-h__thumbs-wrap::-webkit-scrollbar {
        display: none;
    }

    .yon-hero-h__thumb {
        flex: 0 0 auto;
        min-width: 72px;
        padding: 8px 10px;
    }

    .yon-hero-h__thumb img {
        max-height: 18px;
    }

    .yon-hero-h__img--desktop {
        display: none;
    }

    .yon-hero-h__img--mobile {
        display: block;
    }

    .yon-hero-h__txt {
        left: 12px;
        width: calc(100% - 24px);
        max-width: 280px;
        height: auto;
        top: auto;
        bottom: calc(var(--yon-hero-thumb-h) + 8px);
        padding: 0;
    }

    .yon-hero-h__main-title {
        font-size: clamp(16px, 4.5vw, 22px);
        margin-bottom: 4px;
    }

    .yon-hero-h__top-title {
        font-size: 11px;
    }

    .yon-hero-h__badge {
        font-size: 9px;
        padding: 3px 8px;
        margin-bottom: 6px;
    }

    .yon-hero-h__main .swiper-slide::before {
        display: none;
    }

    .yon-hero-h__strip {
        margin-top: 8px;
        gap: 8px;
        --yon-strip-w: min(268px, calc((100% - 8px) / 2));
        --yon-strip-h: 68px;
        width: 100%;
    }

    .yon-hero-h__strip--duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .yon-hero-h__strip-item {
        width: 100%;
    }

    .yon-hero-h__strip-content {
        padding: 10px 12px;
    }

    .yon-hero-h__strip-title {
        font-size: 11px;
    }
}

@media (max-width: 479px) {
    .yon-hero-h {
        --yon-hero-h: clamp(180px, 58vw, 240px);
    }

    .yon-hero-h__strip {
        grid-template-columns: 1fr;
        --yon-strip-w: 100%;
        --yon-strip-h: 64px;
    }

    .yon-hero-h__strip--duo {
        grid-template-columns: 1fr;
    }

    .yon-hero-h__txt {
        max-width: 100%;
    }

    .yon-hero-h__main-title {
        font-size: 15px;
    }
}
