/* =============================================================================
 * Ürün sayfası -> Blog cross-link kartları
 *
 * Sprint SEO-3 (2026-05-26): Ürün/paket detay sayfasında "Bu ürünle ilgili
 * yazılar" bloğu için scoped CSS. Topical cluster sinyali için urun->blog
 * cross-link UI'ı. .related-section'a benzer ama daha hafif (3 kart, gorsel
 * üstte yatay layout).
 *
 * Kullanım: BlogPostRepository::urunIcinIlgiliYazilar dolu döndüğünde view
 * koşullu render eder; CSS'i bu durumda link ile ekle.
 *
 * Prefix: .ub-* (urun-blog) çakışma riskini en aza indirir.
 * ============================================================================= */

.ub-blog-rel {
    /* related-section ile aynı dikey ritm (.section utility'sine ek). */
    padding-block: 2rem 3rem;
    background: linear-gradient(180deg, #fff 0%, #fafaf7 100%);
}

.ub-blog-rel .eyebrow {
    color: var(--brand-accent, #2f7d32);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ub-blog-rel .eyebrow i {
    margin-right: 0.3rem;
}

.ub-blog-rel .section-title {
    margin: 0.25rem 0 0;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.2;
    color: var(--brand-dark, #1b2b2b);
}

/* ---------- Kart ---------- */
.ub-blog-rel__kart {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ub-blog-rel__kart:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -18px rgba(15, 33, 23, 0.18);
    border-color: var(--brand-accent, #2f7d32);
}

/* ---------- Görsel ---------- */
.ub-blog-rel__gorsel-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f3ef;
}

.ub-blog-rel__gorsel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ub-blog-rel__kart:hover .ub-blog-rel__gorsel {
    transform: scale(1.04);
}

/* ---------- İçerik ---------- */
.ub-blog-rel__icerik {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.1rem 1.15rem 1.25rem;
    flex: 1 1 auto;
}

.ub-blog-rel__kategori {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--brand-accent, #2f7d32);
    background: rgba(47, 125, 50, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-decoration: none;
}

.ub-blog-rel__kategori:hover {
    background: rgba(47, 125, 50, 0.14);
}

.ub-blog-rel__baslik {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
    margin: 0;
    color: var(--brand-dark, #1b2b2b);
}

.ub-blog-rel__baslik a {
    color: inherit;
    text-decoration: none;
}

.ub-blog-rel__baslik a:hover {
    color: var(--brand-accent, #2f7d32);
}

.ub-blog-rel__ozet {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5a6b66;
    margin: 0;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ub-blog-rel__meta {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.78rem;
    color: #8a958f;
    border-top: 1px dashed #e8e8e3;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ub-blog-rel__meta i {
    margin-right: 0.2rem;
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
    .ub-blog-rel {
        padding-block: 1.5rem 2rem;
    }
    .ub-blog-rel__icerik {
        padding: 0.95rem 1rem 1.1rem;
    }
}
