/* ==========================================================================
   Blog indeksi - SiriPlan blog sayfasi duzeni (hero, kategori cipleri,
   3'lu kart izgarasi, kapak + kategori + tarih + okuma suresi, CTA bandi)
   ========================================================================== */

.blog-hero .hero-eyebrow {
    position: relative;
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f1d06b;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.blog-hero .hero-title { max-width: 900px; text-wrap: balance; }
.blog-hero .hero-subtitle { max-width: 720px; }

/* ---------- Kategori filtreleri ---------- */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 44px;
}

.blog-filter {
    appearance: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 22px;
    border-radius: 999px;
    color: #dbe2f2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s var(--ease-out, ease);
}

.blog-filter:hover { border-color: rgba(212, 175, 55, 0.5); color: #fff; }

.blog-filter.is-active {
    color: #0a0f1e;
    background: linear-gradient(135deg, #f1d06b, #d4af37 55%, #a98622);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

/* ---------- Kart izgarasi ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: var(--glass, rgba(14, 20, 38, 0.55));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s var(--ease-out, ease), border-color 0.4s ease, background 0.4s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
    background: var(--glass-strong, rgba(14, 20, 38, 0.78));
}

.post-card[hidden] { display: none; }

.post-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }

/* Kapak: gorsel yerine tema renkli gradient + yorunge halkalari + ikon */
.post-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, hsla(var(--hue, 45), 85%, 60%, 0.35), transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(76, 84, 190, 0.45), transparent 65%),
        #0a1020;
}

.post-cover::before,
.post-cover::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transform: translate(-50%, -50%);
}
.post-cover::before { width: 62%; aspect-ratio: 1; border-color: hsla(var(--hue, 45), 85%, 70%, 0.45); }
.post-cover::after { width: 95%; aspect-ratio: 1; border-style: dashed; }

.post-cover .cover-icon {
    position: relative;
    z-index: 1;
    font-size: 3.4rem;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
    transition: transform 0.6s var(--ease-out, ease);
}

.post-card:hover .cover-icon { transform: scale(1.12) rotate(-4deg); }

.post-category {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f7e3a1;
    background: rgba(6, 10, 22, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 26px;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: #b9c3da;
}

.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #d4af37; }

.post-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.post-excerpt {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #d3dbec;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
    color: #f1d06b;
}

.post-more .arrow { transition: transform 0.3s ease; }
.post-card:hover .post-more .arrow { transform: translateX(6px); }

.blog-empty {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: #cdd5e6;
}

/* ---------- CTA bandi ---------- */
.blog-cta {
    margin-top: 72px;
    padding: clamp(32px, 5vw, 56px);
    text-align: center;
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.16), transparent 65%),
        var(--glass, rgba(14, 20, 38, 0.55));
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.blog-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    color: #fff;
    margin-bottom: 12px;
}

.blog-cta p { max-width: 640px; margin: 0 auto 26px; font-size: 1.12rem; color: #d3dbec; }

.blog-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

@media (max-width: 640px) {
    .blog-cta-actions { flex-direction: column; align-items: stretch; }
}

/* Gorsel kapak: SVG illustrasyon tum kapagi doldurur, gradient/halkalar gizlenir */
.post-cover:has(.cover-img)::before,
.post-cover:has(.cover-img)::after { display: none; }
.post-cover .cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out, ease);
}
.post-card:hover .cover-img { transform: scale(1.05); }
