/* Genel Bölüm ve Üst Kısım Konteyneri (py-8, px-6 max-w-7xl mx-auto) */
.blog-list-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.blog-list-header-container {
    max-width: 80rem; /* max-w-7xl (1280px) */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Eyebrow Alanı (mb-8) */
.eyebrow-wrapper {
    margin-bottom: 2rem;
}

/* Canlı (Ping) Efektli Rozet */
.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #57534e; /* text-stone-600 */
    border-radius: 9999px;
    border: 1px solid #e7e5e4; /* border-stone-200 */
    background-color: #ffffff;
}

/* Sinyal (Ping) Animasyonu Yapısı */
.ping-container {
    position: relative;
    display: flex;
    height: 0.5rem;
    width: 0.5rem;
}

.ping-animate {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 9999px;
    background-color: #f87171; /* bg-red-400 */
    opacity: 0.75;
    animation: blogPing 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot {
    position: relative;
    display: inline-flex;
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 9999px;
    background-color: #dc2626; /* bg-red-600 */
}

@keyframes blogPing {
    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Başlık Alanı (text-3xl md:text-5xl mb-5 max-w-3xl) */
.blog-main-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0f172a; /* text-slate-900 */
    margin-bottom: 1.25rem;
    max-width: 48rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .blog-main-title {
        font-size: 3rem;
    }
}

.title-muted {
    color: #a8a29e; /* text-stone-400 */
}

/* Giriş Metni (text-lg md:text-xl max-w-2xl) */
.blog-intro-text {
    font-size: 1.125rem;
    color: #64748b; /* text-slate-500 */
    line-height: 1.625;
    max-width: 42rem;
    margin-top: 0;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .blog-intro-text {
        font-size: 1.25rem;
    }
}

/* Bölüm Çizgisi */
.blog-header-divider {
    margin-top: 2.5rem;
    border: 0;
    border-top: 1px solid #e2e8f0; /* border-slate-200 */
}

/* Izgara Konteyneri (max-w-7xl mx-auto px-6 py-12) */
.blog-grid-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    box-sizing: border-box;
}

/* Grid Yapısı (grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8) */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Kart Sarıcı Makale (flex) */
.blog-card-article {
    display: flex;
}

/* Kart Linki ve Hover Efektleri */
.blog-card-link {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem; /* rounded-3xl */
    padding: 1rem;
    border: 1px solid #f1f5f9; /* border-slate-100 */
    text-decoration: none;
    background-color: #ffffff;
    box-sizing: border-box;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* duration-300 */
}

.blog-card-link:hover {
    transform: translateY(-0.25rem); /* hover:-translate-y-1 */
    border-color: transparent;
    box-shadow:
        0 20px 25px -5px rgba(254, 226, 226, 0.5),
        0 10px 10px -5px rgba(254, 226, 226, 0.5); /* hover:shadow-xl hover:shadow-red-100/50 */
}

/* Görsel Alanı (relative aspect-video rounded-2xl) */
.blog-card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem; /* rounded-2xl */
    width: 100%;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* duration-500 */
}

.blog-card-link:hover .blog-card-img {
    transform: scale(1.05); /* group-hover:scale-105 */
}

/* Kart Alt Metinleri */
.blog-card-content {
    margin-top: 1.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Meta Bilgileri (Tarih ve Okuma Süresi) */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b; /* text-slate-500 */
    margin-bottom: 0.75rem;
}

.meta-dot-divider {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 9999px;
    background-color: #cbd5e1; /* bg-slate-300 */
}

/* Kart Başlığı */
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a; /* text-slate-900 */
    line-height: 1.375; /* leading-snug */
    margin: 0;
    transition: color 0.2s ease;
}

.blog-card-link:hover .blog-card-title {
    color: var(--brand-color, #ef4444); /* group-hover:text-brand */
}

/* Dış Konteyner (max-w-7xl mx-auto px-6 py-12) */
.page-layout-container {
    width: 100%;
    max-width: 80rem; /* 1280px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    box-sizing: border-box;
}

/* İç Metin Sınırlandırıcı (max-w-4xl mx-auto px-6 py-12) */
.page-content-wrapper {
    max-w: 56rem; /* 896px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    box-sizing: border-box;
}

/* Header Alanı (mb-10) */
.page-header {
    margin-bottom: 2.5rem;
}

/* Ana Başlık (text-3xl md:text-4xl font-extrabold text-slate-900 mb-6 leading-tight) */
.page-main-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 800; /* font-extrabold */
    color: #0f172a; /* text-slate-900 */
    margin-bottom: 1.5rem; /* mb-6 */
    line-height: 1.25; /* leading-tight */
}

@media (min-width: 768px) {
    .page-main-title {
        font-size: 2.25rem; /* md:text-4xl */
    }
}

/* Meta Bar (flex items-center justify-between py-5 border-y border-slate-100) */
.page-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem; /* py-5 */
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9; /* border-y border-slate-100 */
}

/* Okuma Süresi (flex items-center gap-2.5 text-slate-500) */
.meta-reading-time {
    display: flex;
    align-items: center;
    gap: 0.625rem; /* gap-2.5 */
    color: #64748b; /* text-slate-500 */
}

.meta-icon-wrapper {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-clock {
    width: 1rem;
    height: 1rem; /* w-4 h-4 */
}

.meta-reading-text {
    font-size: 0.75rem; /* text-xs */
    font-weight: 700; /* font-bold */
    text-transform: uppercase;
    letter-spacing: 0.1em; /* tracking-widest */
}

/* Buton Grubu (flex items-center gap-4) */
.meta-action-buttons {
    display: flex;
    align-items: center;
    gap: 1rem; /* gap-4 */
}

/* Aksiyon Butonları (text-slate-400 hover:text-brand transition-colors p-1) */
.btn-meta-action {
    color: #94a3b8; /* text-slate-400 */
    padding: 0.25rem; /* p-1 */
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-meta-action:hover {
    color: var(--brand-color, #ef4444); /* hover:text-brand */
}

.icon-action {
    width: 1.25rem;
    height: 1.25rem; /* w-5 h-5 */
}

/* Dinamik İçerik Alanı (prose max-w-none) */
.page-dynamic-content {
    width: 100%;
    max-width: none;
}

/*=================================================================
    BLOG YAZISI FORMATLAMA CSS KODLARI
================================================================*/
/* Makale Yazı Alanı (Eski "prose" sınıfının yerine) */
.article-body {
    width: 100%;
    font-size: 1.125rem; /* 18px - Okuma kolaylığı için ideal boyut */
    line-height: 1.56em; /* Satırlar arası rahat nefes alması için */
    color: #334155; /* Slate-705 (Gözü yormayan koyu gri) */
}

/* Paragraflar */
.article-body p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #475569; /* Slate-600 */
}

/* Başlıklar (H1, H2, H3, H4) */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    color: #0f172a; /* Slate-900 (Tam siyah yerine daha soft) */
    font-weight: 800;
    line-height: 1.3;
    margin-top: 4.5rem; /* Başlıktan önce belirgin boşluk */
    margin-bottom: 1rem; /* Başlıktan sonra az boşluk */
}

.article-body h1 {
    font-size: 2.25rem;
}
.article-body h2 {
    font-size: 1.55rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}
.article-body h3 {
    font-size: 1.375rem;
    font-weight: 700;
}
.article-body h4 {
    font-size: 1.125rem;
    font-weight: 650;
}

/* Düzenli ve Düzensiz Listeler */
.article-body ul,
.article-body ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body ul {
    list-style-type: disc;
}
.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: #475569;
}

/* Görseller (Hata Düzeltildi) */
.article-body img {
    max-width: 100%; /* Doğru kullanım */
    height: auto;
    border-radius: 0.75rem;
    margin: 2.5rem auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Kalın Yazılar */
.article-body strong {
    color: #0f172a;
    font-weight: 700;
}

/* Linkler */
.article-body a {
    color: var(--brand-color, #ef4444);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: var(--brand-dark-color, #dc2626);
}

/* Alıntılar (Blockquote) */
.article-body blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--brand-color, #ef4444);
    font-style: italic;
    color: #64748b;
}
