﻿/* Forum tarzı alt reklam şeridi — footer üstü */
.yon-ad-strip {
    --yas-banner-h: 120px;
    --yas-secondary-h: 110px;
    --yas-sponsor-h: 44px;
    --yas-gap: 6px;
    --yas-bg: var(--h-bg-page);
    --yas-sponsor-bg: var(--h-bg-card);
    --yas-border: var(--h-border);
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 8;
    scroll-margin-bottom: 12px;
    border-top: 1px solid var(--h-border);
    background: var(--yas-bg);
}

.yon-ad-strip__inner {
    width: 100%;
    max-width: var(--yc-container, var(--container, 1680px));
    margin-inline: auto;
    padding: 8px clamp(10px, 2vw, 16px) 10px;
    box-sizing: border-box;
}

.yon-ad-strip__banners {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--yas-gap);
    min-height: var(--yas-banner-h);
}

.yon-ad-strip__cell {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--yas-border);
    background: var(--h-bg-card);
    border-radius: 2px;
    line-height: 0;
}

.yon-ad-strip__cell--primary {
    flex: 1 1 62%;
    min-height: var(--yas-banner-h);
}

.yon-ad-strip__secondary {
    display: flex;
    flex: 1 1 36%;
    gap: var(--yas-gap);
    min-width: 0;
    min-height: var(--yas-secondary-h, var(--yas-banner-h));
}

.yon-ad-strip__cell--secondary {
    flex: 1 1 0;
    min-width: 0;
    min-height: var(--yas-secondary-h, var(--yas-banner-h));
}

.yon-ad-strip__link {
    display: block;
    width: 100%;
    height: 100%;
}

.yon-ad-strip__img {
    display: block;
    width: 100%;
    height: var(--yas-banner-h);
    object-fit: contain;
    object-position: center;
    background: var(--h-bg-card);
}

.yon-ad-strip__sponsors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 1px;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid var(--yas-border);
    border-radius: 2px;
    background: var(--yas-sponsor-bg);
}

.yon-ad-strip__sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--yas-sponsor-h);
    padding: 6px 10px;
    background: var(--h-bg-card);
}

.yon-ad-strip__sponsor a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.yon-ad-strip__sponsor img {
    display: block;
    max-width: 100%;
    max-height: var(--yas-sponsor-h);
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .yon-ad-strip {
        --yas-banner-h: 88px;
        --yas-secondary-h: 80px;
        --yas-sponsor-h: 40px;
    }

    .yon-ad-strip__cell--primary,
    .yon-ad-strip__secondary {
        flex: 1 1 100%;
    }
}

html[data-theme="dark"] .yon-ad-strip {
    --yas-bg: var(--h-bg-page);
    --yas-sponsor-bg: var(--h-bg-raised);
    --yas-border: var(--h-border);
}

html[data-theme="dark"] .yon-ad-strip__cell,
html[data-theme="dark"] .yon-ad-strip__sponsor,
html[data-theme="dark"] .yon-ad-strip__img {
    background: var(--h-bg-card);
}

html[data-theme="light"] .yon-ad-strip {
    --yas-bg: var(--h-bg-page);
    --yas-sponsor-bg: var(--h-bg-card);
    --yas-border: rgba(15, 23, 42, 0.1);
}
