/* ====================================================
   YAPALI İNŞAAT — HABER & BLOG DETAY CSS
   ==================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bd-dark:       #002277;
    --bd-light:      #0cacf0;
    --bd-text:       #4a5568;
    --bd-heading:    #0b2b5e;
    --font-display:  'Bebas Neue', 'Arial Black', sans-serif;
    --font-body:     'Inter', system-ui, sans-serif;
}

/* ── DİNAMİK HERO ── */
.bd-hero {
    position: relative;
    height: 500px;
    background-image: var(--bd-cover); /* Veritabanından gelen kapak resmi arkaplan olur */
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
    font-family: var(--font-body);
}

.bd-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.97) 0%, rgba(240,248,255,0.92) 40%, rgba(240,248,255,0.5) 70%, transparent 100%);
    z-index: 1;
}

.bd-hero-line {
    position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
    background: linear-gradient(to bottom, #4db8f0, var(--bd-light), var(--bd-dark));
    z-index: 2;
}

.bd-hero-container { position: relative; z-index: 3; max-width: 1320px; margin: 0 auto; padding: 0 40px; width: 100%; }

.bd-hero-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5a7a9a; }
.bd-hero-breadcrumb a { color: #5a7a9a; text-decoration: none; transition: color 0.2s; }
.bd-hero-breadcrumb a:hover { color: var(--bd-light); }
.bd-hero-breadcrumb i { font-size: 9px; color: var(--bd-light); }
.bd-hero-breadcrumb span:last-child { color: var(--bd-light); }

.bd-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--bd-light); margin-bottom: 16px;
}
.bd-hero-eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--bd-light); }

.bd-hero-title { font-family: var(--font-display); font-size: 3.5rem; line-height: 1.1; color: var(--bd-heading); letter-spacing: 0.5px; margin: 0; max-width: 800px; }

/* ── ANA SKELET YAPI ── */
.bd-main-wrapper { padding: 80px 0; background: #ffffff; font-family: var(--font-body); }
.bd-container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.bd-grid-layout { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: start; }

/* ── SOL İÇERİK BLOGU ── */
.bd-article-meta { display: flex; gap: 20px; font-size: 13px; color: #94a3b8; font-weight: 600; padding-bottom: 25px; border-bottom: 1px solid #f1f5f9; margin-bottom: 35px; }
.bd-article-meta span { display: flex; align-items: center; gap: 6px; }

/* Lüks Tipografi ve Zengin Metin Formatlama Motoru */
.format-rich-text { font-size: 1.08rem; line-height: 1.85; color: var(--bd-text); }
.format-rich-text p { margin-bottom: 22px; font-weight: 400; }
.format-rich-text h2, .format-rich-text h3 { color: var(--bd-heading); font-weight: 800; margin: 40px 0 18px 0; line-height: 1.3; }
.format-rich-text h2 { font-size: 1.8rem; }
.format-rich-text h3 { font-size: 1.4rem; }
.format-rich-text img { max-width: 100%; height: auto; border-radius: 12px; margin: 25px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.format-rich-text ul, .format-rich-text ol { padding-left: 24px; margin-bottom: 25px; }
.format-rich-text li { margin-bottom: 10px; color: var(--bd-text); }
.format-rich-text blockquote { background-color: #f0f9ff; border-left: 4px solid var(--bd-light); padding: 20px 30px; margin: 30px 0; border-radius: 0 12px 12px 0; font-style: italic; color: var(--bd-heading); font-weight: 500; }

/* Sosyal Paylaşım */
.bd-share-container { margin-top: 50px; padding-top: 30px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.bd-share-title { font-size: 14px; font-weight: 700; color: var(--bd-heading); text-transform: uppercase; letter-spacing: 0.5px; }
.bd-share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.bd-share-buttons a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 6px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; transition: transform 0.2s; }
.bd-share-buttons a:hover { transform: translateY(-2px); }
.sh-fb { background-color: #1877f2; }
.sh-tw { background-color: #000000; }
.sh-wa { background-color: #25d366; }

/* ── SAĞ YAN PANEL (STICKY) ── */
.bd-sidebar-col { position: sticky; top: 100px; }
.bd-sidebar-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(0,34,119,0.02); }
.bd-sidebar-heading { font-size: 1.3rem; font-weight: 800; color: var(--bd-heading); margin-bottom: 25px; padding-bottom: 12px; border-bottom: 2px solid #e2e8f0; }

.bd-recent-list { display: flex; flex-direction: column; gap: 20px; }
.bd-recent-item { display: flex; gap: 15px; text-decoration: none; align-items: center; padding-bottom: 15px; border-bottom: 1px dashed #e2e8f0; }
.bd-recent-item:last-child { padding-bottom: 0; border-bottom: none; }

.bd-recent-img { width: 75px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background-color: #e2e8f0; }
.bd-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.bd-recent-fallback { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color: #cbd5e1; font-size: 18px; }

.bd-recent-info { display: flex; flex-direction: column; gap: 4px; }
.bd-recent-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--bd-heading); margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.bd-recent-date { font-size: 11px; color: #94a3b8; font-weight: 600; }

.bd-recent-item:hover h4 { color: var(--bd-light); }

/* ── ANİMASYON ── */
.bd-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.bd-reveal.bd-visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .bd-grid-layout { grid-template-columns: 1fr; gap: 40px; }
    .bd-sidebar-col { position: static; }
}
@media (max-width: 768px) {
    .bd-hero { height: 420px; }
    .bd-hero-title { font-size: 2.3rem; }
    .bd-container { padding: 0 20px; }
    .bd-main-wrapper { padding: 50px 0; }
    .bd-article-meta { gap: 12px; flex-wrap: wrap; margin-bottom: 25px; }
    .format-rich-text { font-size: 1rem; }
}