/*
 * Promo + AdSense sistemi
 * Tüm inline CSS'i class'laştıran ortak stil — SEO dostu, cacheable.
 */

/* ═══════════════════════════════════════════════
   ORTAK DESTEKÇI/ÜRÜN SİDEBAR KARE
   ═══════════════════════════════════════════════ */
.promo-square {
    display: block;
    margin: 0;
    padding: 16px 16px 0 16px;
    background: #fffbeb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #1f2937;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: box-shadow .15s;
}
.promo-square:hover {
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.25);
}
.promo-square__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.promo-square__icon {
    width: 42px;
    height: 42px;
    background: #d97706;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.promo-square__icon i {
    color: #fff;
    font-size: 1.2rem;
}
.promo-square__title {
    font-weight: 800;
    font-size: 1rem;
    color: #d97706;
    line-height: 1.2;
}
.promo-square__desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.45;
    margin-bottom: 10px;
}
.promo-square__pitch {
    font-size: 0.82rem;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #fef3c7;
    border-radius: 6px;
}
.promo-square__cta {
    display: block;
    text-align: center;
    background: #d97706;
    color: #fff;
    padding: 9px 14px;
    font-size: 0.85rem;
    font-weight: 800;
    /* Negatif margin ile parent'in tum genisligine yayil — parent overflow:hidden
       + border-radius:10px iki bottom kosheyi de keser (Firefox dahil). */
    margin: 0 -16px;
    border-radius: 0;
    position: relative;
    z-index: 2;
}

/* Dekoratif büyük icon — sağ üst, destekçi rengi, düşük opacity */
.promo-square__bg-icon {
    position: absolute;
    top: -14px;
    right: -18px;
    font-size: 6.5rem;
    line-height: 1;
    color: #d97706;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}
.promo-square__bg-icon i {
    --fa-primary-color: #d97706;
    --fa-secondary-color: #d97706;
}
.promo-square:hover .promo-square__bg-icon {
    transform: rotate(-12deg) scale(1.08);
}
/* İçerik iconun üstünde kalsın */
.promo-square__head,
.promo-square__desc,
.promo-square__pitch {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════
   PROMO ROW — 3 ÜRÜN KART GRID
   ═══════════════════════════════════════════════ */
.promo-row__grid {
    display: grid;
    gap: 10px;
}
.promo-row__grid.cols-1 { grid-template-columns: 1fr; }
.promo-row__grid.cols-2 { grid-template-columns: 1fr 1fr; }
.promo-row__grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.promo-row__card {
    display: block;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--promo-color, #5b21b6);
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: box-shadow .15s, border-left-width .15s;
    position: relative;
    overflow: hidden;
}
.promo-row__card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-left-width: 6px;
}

/* Dekoratif büyük icon — sağ üst köşede (dışa taşan), kategori rengi */
.promo-row__bg-icon {
    position: absolute;
    top: -18px;
    right: -18px;
    font-size: 7rem;
    line-height: 1;
    color: var(--promo-color, #5b21b6);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}
.promo-row__card:hover .promo-row__bg-icon {
    transform: rotate(-15deg) scale(1.08);
}
.promo-row__bg-icon i {
    --fa-primary-color: var(--promo-color, #5b21b6);
    --fa-secondary-color: var(--promo-color, #5b21b6);
}
.promo-row__head,
.promo-row__desc,
.promo-row__foot {
    position: relative;
    z-index: 1;
}
.promo-row__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.promo-row__icon {
    width: 42px;
    height: 42px;
    background: var(--promo-color, #5b21b6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.promo-row__icon i {
    color: #fff;
    font-size: 1.15rem;
}
.promo-row__title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--promo-color, #5b21b6);
    line-height: 1.25;
}
.promo-row__desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 14px;
    min-height: 44px;
}
.promo-row__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.promo-row__price-box {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.promo-row__price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--promo-color, #5b21b6);
}
.promo-row__old {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
    margin-top: 2px;
}
.promo-row__cta {
    background: var(--promo-color, #5b21b6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .promo-row__grid.cols-2,
    .promo-row__grid.cols-3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   PROMO CTA LINE (2 kolonlu inline)
   ═══════════════════════════════════════════════ */
.promo-line {
    margin: 1rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.promo-line__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    text-decoration: none;
    color: #78350f;
    transition: transform .15s, box-shadow .15s;
}
.promo-line__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25);
}
.promo-line__card--product {
    background: #f9fafb;
    border-color: var(--promo-color, #5b21b6);
    color: #1f2937;
}
.promo-line__icon {
    width: 40px;
    height: 40px;
    background: var(--promo-color, #d97706);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.promo-line__icon i {
    color: #fff;
    font-size: 1.1rem;
}
.promo-line__body {
    flex: 1;
    min-width: 0;
}
.promo-line__title {
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.25;
}
.promo-line__sub {
    font-size: 0.78rem;
    opacity: 0.85;
    line-height: 1.3;
    margin-top: 2px;
}
.promo-line__cta {
    background: var(--promo-color, #d97706);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .promo-line { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   PROMO HERO BANNER — kategori renkli (H1 stilinde)
   ═══════════════════════════════════════════════ */
.promo-hero-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 18px 24px;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: filter .15s;
    /* Firefox nested border-radius clip bug — kapsamlı fix */
    isolation: isolate;
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    clip-path: inset(0 round 0 0 10px 10px);
}
.promo-hero-banner:hover {
    filter: brightness(1.08);
}
.promo-hero-banner__icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-hero-banner__icon i {
    font-size: 1.7rem;
    color: inherit;
}
.promo-hero-banner__body {
    flex: 1;
    min-width: 0;
}
.promo-hero-banner__title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 4px;
}
.promo-hero-banner__desc {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}
.promo-hero-banner__cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.promo-hero-banner__price-box {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    align-items: flex-end;
}
.promo-hero-banner__price {
    font-size: 1.25rem;
    font-weight: 800;
}
.promo-hero-banner__old {
    font-size: 0.85rem;
    text-decoration: line-through;
    opacity: 0.7;
    font-weight: 600;
}
.promo-hero-banner__btn {
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}
.promo-hero-banner:hover .promo-hero-banner__btn {
    background: #ffffff;
}

@media (max-width: 720px) {
    .promo-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }
    .promo-hero-banner__cta {
        width: 100%;
        justify-content: space-between;
    }
}

/* ═══════════════════════════════════════════════
   MAIN SHARE BAR (prev/next üstünde)
   ═══════════════════════════════════════════════ */
.main-share-bar {
    margin: 1rem 0 1rem 0;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.main-share-bar__icons {
    display: flex;
    gap: 8px;
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT WRAPPER'LARI (side margin)
   ═══════════════════════════════════════════════ */
.main-ad-wrap { margin: 0; }
.main-promo-wrap { margin: 1rem 0 0 0; }

/* ═══════════════════════════════════════════════
   ADSENSE SLOT WRAPPER
   ═══════════════════════════════════════════════ */
.ad-slot {
    position: relative;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}
.ad-slot__label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.ad-leaderboard {
    margin: 1.5rem 0;
    padding: 10px;
    min-height: 100px;
}
.ad-square {
    margin: 12px 0;
    padding: 8px;
    min-height: 260px;
}
.ad-infeed {
    margin: 1rem 0;
    padding: 12px 16px;
    border-style: dashed;
    border-color: #e5e7eb;
    min-height: 120px;
}
.ad-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 6px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}
.ad-sticky__close {
    position: absolute;
    top: -10px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
}

/* ═══════════════════════════════════════════════
   RELATED PREMIUM CARD — light variant (promo-row stili)
   Beyaz bg + sol renkli border + kategori renkli içerik
   ═══════════════════════════════════════════════ */
.related-premium-card--light {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-left: 4px solid var(--cat-color, #5b21b6) !important;
    transition: box-shadow .15s, border-left-width .15s, transform .15s !important;
}
.related-premium-card--light:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
    border-left-width: 6px !important;
    transform: translateY(-1px);
}

/* Tüm iç metin + icon kategori renginde — CSS cascade karışmasın */
.related-premium-card--light,
.related-premium-card--light .card-title,
.related-premium-card--light .card-meta,
.related-premium-card--light .meta-item,
.related-premium-card--light .cat-label {
    color: var(--cat-color, #5b21b6) !important;
}
.related-premium-card--light .cat-label i,
.related-premium-card--light .meta-item i,
.related-premium-card--light .card-bg-icon,
.related-premium-card--light .card-bg-icon i {
    color: var(--cat-color, #5b21b6) !important;
    --fa-primary-color: var(--cat-color, #5b21b6) !important;
    --fa-secondary-color: var(--cat-color, #5b21b6) !important;
}

/* ═══════════════════════════════════════════════
   SIDE SKYSCRAPER — sol/sağ yan dikey sticky reklam
   main-content içinde → header/footer'a SARKMAZ, sadece main'de kayar
   Sadece viewport ≥ 1500px ekranlarda görünür
   ═══════════════════════════════════════════════ */
.ad-sidesky {
    display: none;  /* default gizli — küçük ekranda asla gösterme */
}

/* main-content parent'ı relative yap ki absolute child hizalanabilsin */
.main-content {
    position: relative;
}

/*
 * Container 1280px. Sky 160px + 20px gap = 180px/side needed.
 * Min viewport = 1280 + 2*180 = 1640px
 */
@media (min-width: 1640px) {
    .ad-sidesky {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 160px;
        pointer-events: auto;
        z-index: 5;
    }
    /* Container: max-width 1280px, centered. Sky 180px dışında. */
    .ad-sidesky--left  { left:  calc((100% - 1280px) / 2 - 180px); }
    .ad-sidesky--right { right: calc((100% - 1280px) / 2 - 180px); }

    /* İç içerik — sticky: scroll sırasında viewport içinde sabitlenir,
       main-content bitince (footer'a yakınken) doğal olarak stop eder */
    .ad-sidesky__content {
        position: sticky;
        top: 100px;
        min-height: 600px;
        background: #fafafa;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 8px;
    }
    .ad-sidesky__label {
        font-size: 9px;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: center;
        position: sticky;
        top: 88px;
        padding: 4px 0;
        background: #fafafa;
        z-index: 2;
    }
}

/* Sky 300px: 1280 + 2*320 = 1920px min */
@media (min-width: 1920px) {
    .ad-sidesky {
        width: 300px;
    }
    .ad-sidesky--left  { left:  calc((100% - 1280px) / 2 - 320px); }
    .ad-sidesky--right { right: calc((100% - 1280px) / 2 - 320px); }
}

/* ═══════════════════════════════════════════════
   VIGNETTE / INTERSTITIAL POPUP
   ═══════════════════════════════════════════════ */
.ad-vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ad-vignette__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}
.ad-vignette__inner {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.ad-vignette__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #374151;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.ad-vignette__close:hover {
    color: #111827;
    background: #f9fafb;
}
.ad-vignette__label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-align: center;
}
.ad-vignette__content {
    min-height: 250px;
}
