/* Reklam slot bileşeni — anasayfa banner alanları */

.ad-slot {
    width: 100%;
    margin: 28px 0;
}

.ad-slot__frame {
    position: relative;
    width: 100%;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
}

/* Aktif reklam — mobil: tam genişlik, oran korunur, kırpma yok */
.ad-slot__frame--filled {
    border: 1px solid #e2e8f0;
    line-height: 0;
}

.ad-slot__frame--filled .ad-slot__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Masaüstü — eski boyut (max 970px), görsel kart içinde tam görünür */
@media (min-width: 769px) {
    .ad-slot {
        max-width: 970px;
        margin-left: auto;
        margin-right: auto;
    }

    .ad-slot__frame--filled {
        aspect-ratio: 970 / 250;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: normal;
    }

    .ad-slot__frame--filled .ad-slot__image {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

/* Boş alan — sabit oranlı çerçeve */
.ad-slot__frame.ad-slot__placeholder {
    aspect-ratio: 970 / 250;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot__image {
    display: block;
}

.ad-slot__image--placeholder {
    object-fit: contain;
    opacity: 0.45;
    filter: grayscale(20%);
}

.ad-slot__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
}

/* Boş alan — tıklanabilir placeholder */
.ad-slot__placeholder {
    cursor: pointer;
    padding: 0;
    border: 1px dashed #94a3b8;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    text-align: left;
    width: 100%;
}

.ad-slot__placeholder:hover,
.ad-slot__placeholder:focus-visible {
    border-color: #c62828;
    box-shadow: 0 8px 24px rgba(198, 40, 40, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.ad-slot__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.88) 55%,
        rgba(255, 255, 255, 0.95) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.ad-slot__placeholder:hover .ad-slot__overlay,
.ad-slot__placeholder:focus-visible .ad-slot__overlay {
    opacity: 1;
}

.ad-slot__overlay-title {
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.ad-slot__overlay-desc {
    font-size: clamp(12px, 1.6vw, 14px);
    color: #475569;
    line-height: 1.5;
    max-width: 520px;
}

.ad-slot__overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 18px;
    background: #c62828;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
}

.ad-slot__overlay-size {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* Başvuru modalı — seçilen alan özeti */
.reklam-basvuru-slot-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
}

.reklam-basvuru-slot-info__title {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 4px;
}

.reklam-basvuru-slot-info__desc {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.reklam-basvuru-slot-info__size {
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 768px) {
    .ad-slot {
        margin: 20px 0;
    }

    .ad-slot__overlay {
        opacity: 1;
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.92) 50%,
            rgba(255, 255, 255, 0.97) 100%
        );
    }

    .ad-slot__overlay-desc {
        display: none;
    }
}
