/* =========================================================
   ANA SAYFA — BLOG DÜZENİ
   Açık tema: marşmelov beyazı / galaksi moru / damla sakızı pembesi
   Koyu tema: kömür siyahı / kraliyet mavisi / mandalina turuncusu
   Yalnızca body.layout-blog altında geçerli; kart düzenini etkilemez.
   ========================================================= */

body.layout-blog {
    --bh-bg: #FBF7FB;
    --bh-card: #FFFFFF;
    --bh-ink: #261C36;
    --bh-muted: #6A5F7A;
    --bh-line: rgba(75, 42, 123, .13);
    --bh-accent: #4B2A7B;
    --bh-hot: #D94C8E;
    --bh-chip: rgba(247, 181, 202, .5);
    --bh-chip-ink: #4B2A7B;
    --bh-badge: linear-gradient(100deg, #4B2A7B, #B04FB0 60%, #E05C9A);
    --bh-badge-ink: #FFFFFF;
    --bh-shadow: 0 10px 28px rgba(75, 42, 123, .12);
    --bh-font-display: "Inter Tight", "Inter", "Segoe UI", system-ui, sans-serif;
    --bh-font-body: "Inter", "Segoe UI", system-ui, sans-serif;

    background: var(--bh-bg);
    color: var(--bh-ink);
}

[data-theme="dark"] body.layout-blog {
    --bh-bg: #15161B;
    --bh-card: #1D1F27;
    --bh-ink: #EEF0F6;
    --bh-muted: #A4A9BA;
    --bh-line: rgba(122, 155, 255, .18);
    --bh-accent: #8EA8FF;
    --bh-hot: #FF8A3D;
    --bh-chip: rgba(65, 105, 225, .24);
    --bh-chip-ink: #C4D3FF;
    --bh-badge: #FF8A3D;
    --bh-badge-ink: #15161B;
    --bh-shadow: 0 12px 30px rgba(0, 0, 0, .35);

    background: var(--bh-bg);
}

/* Kart düzeni footer'ı kartlar yerleşene kadar gizler (cards.css);
   blog düzeninde beklenecek bir yerleşim yok. */
body.layout-blog .site-footer {
    visibility: visible;
}

/* Blog düzeninde dalgalı arka plan yok: içerik öne çıksın. */
body.layout-blog .epcl-waves-wrapper {
    display: none;
}

.blog-home {
    max-width: 1240px;
    margin: 28px auto 72px;
    font-family: var(--bh-font-body);
    color: var(--bh-ink);
    outline: none;
}

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

.blog-home a:focus-visible {
    outline: 3px solid var(--bh-hot);
    outline-offset: 3px;
    border-radius: 10px;
}

/* ---------- Ortak: etiket, rozet, tarih ---------- */

.bh-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 12.5px;
    color: var(--bh-muted);
    font-variant-numeric: tabular-nums;
}

.bh-meta > * + *:not(.bh-chip):not(.bh-badge)::before {
    content: "·";
    margin-right: 10px;
    opacity: .7;
}

.bh-meta time::before {
    display: none;
}

.bh-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--bh-chip);
    color: var(--bh-chip-ink);
    font-weight: 600;
    font-size: 12px;
}

.bh-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bh-badge);
    color: var(--bh-badge-ink);
    font-family: var(--bh-font-display);
    font-weight: 800;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bh-series {
    color: var(--bh-hot);
    margin-right: .3em;
}

/* Kapak yoksa renkli yer tutucu */
.bh-ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(45% 70% at 25% 30%, hsl(calc(var(--ph-h) + 30) 80% 62% / .9), transparent 70%),
        radial-gradient(50% 70% at 80% 80%, hsl(calc(var(--ph-h) - 30) 85% 60% / .85), transparent 70%),
        hsl(var(--ph-h) 55% 22%);
    color: rgba(255, 255, 255, .92);
    font-family: var(--bh-font-display);
    font-weight: 800;
    font-size: clamp(22px, 4vw, 56px);
    letter-spacing: -.03em;
}

/* ---------- Üst bölüm: kayan kapak + başlık listesi ---------- */

.bh-top {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

.bh-stage {
    position: relative;
    aspect-ratio: 1200 / 630;
    border-radius: 22px;
    overflow: hidden;
    background: var(--bh-card);
    box-shadow: var(--bh-shadow);
    align-self: center;
}

.bh-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility 0s linear .6s;
}

.bh-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .6s ease, visibility 0s;
}

.bh-slide img,
.bh-slide .bh-ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px 26px 24px;
    background: linear-gradient(transparent, rgba(10, 8, 20, .78));
    color: #fff;
}

/* Dikey kapak (afiş) slaytı: başlık afişin soluna sığsın */
.bh-slide.is-poster .bh-cap {
    padding-right: calc(var(--poster-inset, 40%) + 14px);
}

.bh-cap .bh-meta {
    color: rgba(255, 255, 255, .85);
}

.bh-cap .bh-chip {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.bh-cap-title {
    display: block;
    margin-top: 8px;
    font-family: var(--bh-font-display);
    font-weight: 800;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.bh-cap .bh-series {
    color: #FFB36B;
}

.bh-dots {
    position: absolute;
    top: 16px;
    right: 18px;
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.bh-dots i {
    width: 8px;
    height: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .5);
    transition: width .3s ease, background .3s ease;
}

.bh-dots i.is-active {
    width: 26px;
    background: #fff;
}

.bh-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: var(--bh-hot);
}

.bh-progress.is-running {
    animation: bh-progress var(--bh-interval, 6s) linear forwards;
}

.bh-top.is-paused .bh-progress {
    animation-play-state: paused;
}

@keyframes bh-progress {
    from { width: 0; }
    to { width: 100%; }
}

.bh-titles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.bh-ti {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: background-color .2s ease, border-color .2s ease;
}

.bh-ti-n {
    font-family: var(--bh-font-display);
    font-weight: 800;
    font-size: 19px;
    color: var(--bh-muted);
    font-variant-numeric: tabular-nums;
}

.bh-ti-title {
    display: block;
    margin-top: 3px;
    font-family: var(--bh-font-display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    color: var(--bh-muted);
}

.bh-ti-arrow {
    opacity: 0;
    color: var(--bh-hot);
    font-weight: 800;
    font-size: 18px;
    transition: opacity .2s ease, transform .2s ease;
    transform: translateX(-4px);
}

.bh-ti:hover .bh-ti-title {
    color: var(--bh-ink);
}

.bh-ti.is-active {
    background: var(--bh-card);
    border-color: var(--bh-line);
    box-shadow: var(--bh-shadow);
}

.bh-ti.is-active .bh-ti-n {
    color: var(--bh-hot);
}

.bh-ti.is-active .bh-ti-title {
    color: var(--bh-ink);
    font-weight: 700;
}

.bh-ti.is-active .bh-ti-arrow {
    opacity: 1;
    transform: none;
}

/* ---------- Tüm yazılar ---------- */

.bh-all {
    margin-top: 44px;
}

.blog-home:not(.has-top) .bh-all {
    margin-top: 8px;
}

.bh-all-head h2 {
    margin: 0 0 6px;
    font-family: var(--bh-font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bh-muted);
}

.bh-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
}

.blog-item {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--bh-line);
}

.blog-item.is-top,
.blog-item.is-later {
    display: none;
}

.blog-home.is-searching .blog-item.is-top,
.blog-home.is-searching .blog-item.is-later {
    display: grid;
}

.blog-home.is-searching .bh-top,
.blog-home.is-searching .bh-more-wrap {
    display: none;
}

.blog-item.is-hidden-post {
    opacity: .55;
}

.bh-thumb {
    display: block;
    aspect-ratio: 1200 / 630;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bh-card);
}

.bh-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-item:hover .bh-thumb img {
    transform: scale(1.04);
}

.bh-thumb .bh-ph {
    font-size: 22px;
}

.bh-item-body h3 {
    margin: 6px 0 4px;
    font-family: var(--bh-font-display);
    font-weight: 700;
    font-size: 16.5px;
    line-height: 1.3;
    text-wrap: balance;
}

.bh-item-body h3 a:hover {
    color: var(--bh-hot);
}

.bh-item-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bh-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bh-empty {
    padding: 28px 0;
    color: var(--bh-muted);
}

.bh-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.bh-more {
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    padding: 11px 26px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: var(--bh-badge);
    color: var(--bh-badge-ink);
    box-shadow: var(--bh-shadow);
}

.bh-more:hover {
    filter: brightness(1.08);
}

/* ---------- Küçük ekranlar ---------- */

@media (max-width: 980px) {
    .bh-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bh-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .blog-home {
        margin-top: 16px;
    }

    .bh-stage {
        border-radius: 16px;
    }

    .bh-cap {
        padding: 60px 16px 16px;
    }

    .bh-ti {
        padding: 8px 10px;
        grid-template-columns: 28px minmax(0, 1fr) 14px;
    }

    .blog-item {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 0;
    }

    .bh-item-body p {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bh-slide,
    .bh-slide.is-active,
    .bh-thumb img {
        transition: none;
    }
}
