/* ============================================================
 * Reklam yerleşim — Tema 1
 *
 * Felsefe: Reklam görseli kullanıcının yüklediği BOYUTTA gözükür.
 * CSS hiçbir alana sabit max-width/height DAYATMAZ.
 * Tek garanti: görsel parent container'ı aşmaz (max-width: 100%) ve
 * aspect ratio korunur (height: auto).
 *
 * Render HTML: <div class="pn-item pn-{alan_kodu}"><img></div>
 *
 * Özel tasarım istisnaları (boyut hardcode değil, davranış kuralı):
 *  - Tepe banner: header'ın üstünde margin-sız şerit
 *  - Header banner: header sağ flex itemi
 *  - Hero slider içi reklam: slide'ı tam dolduran object-fit
 *  - Paragraf-içi reklam: metin etrafında float
 *  - Sol/Sağ kule: mobilde gizli (yer yok)
 * ============================================================ */

/* === GENEL — Tüm reklam alanları için tek tip davranış === */
.pn-item {
    text-align: center;
    line-height: 0;
    margin: 14px auto;
}
.pn-item img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}
.pn-item a {
    display: inline-block;
    line-height: 0;
}

/* Sidebar'da reklam ek margin almasın — tema CSS'indeki .content-sidebar > * + *
 * kuralı zaten her kardeş arası 20px boşluk veriyor. Genel 14px + 20px birikimi
 * sidebar'da gözle görülür fark yaratıyor. */
.content-sidebar .pn-item { margin: 0 auto; }

/* === Tepe banner: header'ın üstündeki şerit — margin yok === */
.t1-tepe-reklam {
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 0;
}
.pn-tepe-banner,
.pn-item.pn-tepe-banner {
    margin: 0;
    padding: 0;
}

/* === Header banner: header sağ flex itemi === */
.header-brand-inner {
    display: flex;
    align-items: center;
    gap: 0;
}
.header-brand-inner .header-logo {
    flex: 0 0 auto;
}
.header-brand-inner .hd-promo {
    flex: 1 1 auto;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.pn-header-banner {
    display: inline-block;
    margin: 0 0 0 16px;
}

/* === Hero slider içi reklam: slide'ı tam doldur === */
/* Hero blok varyantları: .hero-slide-ad / .hnfw-slide-ad / .htfw-slide-ad
 / .hfs-slide-ad / .ht-slide-ad — hepsi .swiper-slide-ad > div */
.swiper-slide-ad,
.sa-slide-ad {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    background: #eaeaea;
}
.swiper-slide-ad > div {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: #eaeaea !important;
}
.swiper-slide-ad > div::before,
.swiper-slide-ad > div::after {
    display: none !important;
}
.swiper-slide-ad .pn-item,
.sa-slide-ad .pn-item {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.swiper-slide-ad .pn-item a,
.sa-slide-ad .pn-item a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 0;
}
.swiper-slide-ad .pn-item img,
.sa-slide-ad .pn-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
}

/* === Paragraf-içi reklam: metin akışı içinde float === */
.paragraf-reklam-injekte {
    display: block;
    margin: 14px auto;
    text-align: center;
    clear: both;
    float: none;
}
.paragraf-reklam-injekte .pn-item { margin: 0; display: block; }
.paragraf-reklam-injekte .pn-item a { display: block; }
.paragraf-reklam-injekte .pn-item img {
    max-width: 100%;
    height: auto;
    display: block;
}
@media (min-width: 769px) {
    .paragraf-reklam-injekte { max-width: 45%; margin: 4px 0 10px 0; }
    .paragraf-reklam-right { float: right; margin-left: 18px; clear: none; }
    .paragraf-reklam-left  { float: left;  margin-right: 18px; clear: none; }
}

/* === Makale detay nd-makale-strip mobile (reklamla ilgisiz layout fix, bırakıldı) === */
@media (max-width: 768px) {
    .nd-makale-strip {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    .nd-makale-strip-left {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100%;
    }
    .nd-makale-strip-left .nd-makale-yazar-kart {
        flex-direction: row !important;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }
    .nd-makale-strip-left .nd-makale-avatar {
        width: 56px !important;
        height: 56px !important;
        flex-shrink: 0;
    }
    .nd-makale-strip-left .nd-makale-yazar-isim {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nd-makale-strip-right {
        padding-left: 0 !important;
        width: 100%;
    }
    .nd-makale-strip-right .nd-title,
    .nd-makale-strip-right .nd-makale-baslik {
        font-size: 1.35rem !important;
        line-height: 1.3;
        margin: 0;
    }
    .nd-makale-strip-right .nd-ms-tools {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .nd-makale-strip-right .nd-ms-tools .hd-tool-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* === RESPONSIVE: özel tasarım gereği gizlenenler === */
@media (max-width: 991px) {
    .pn-sol-kule, .pn-sag-kule { display: none !important; }
}
@media (max-width: 768px) {
    .header-brand-inner .hd-promo,
    .pn-header-banner { display: none !important; }
}
