/* =========================================
   BLOG & ARCHIVE SAYFASI STİLLERİ
   ========================================= */

.blog-page-container {
    padding-top: 4rem;
    padding-bottom: 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================================
   1. HEADER & KURDELE ANİMASYONU
   ========================================= */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--clr-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    z-index: 2;
}

/* Kurdele (Ribbon) Efekti */
.ribbon-wrapper {
    position: relative;
    width: 200px;
    height: 10px;
    margin-top: 5px;
}

.ribbon-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--clr-primary);
    border-radius: 4px;
    transform: translate(-50%, -50%);
    animation: ribbonDraw 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ribbon-knot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--clr-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: knotPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s forwards;
    z-index: 3;
}

@keyframes ribbonDraw {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes knotPop {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}

/* =========================================
   2. KATEGORİ FİLTRESİ
   ========================================= */
.category-filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 4rem;
}

.cat-filter-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 99px;
    background: var(--clr-surface);
    color: var(--clr-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cat-filter-link:hover {
    background: #fff;
    border-color: var(--clr-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cat-filter-link.active {
    background: var(--clr-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

/* =========================================
   3. BLOG POST KARTI (Görselsiz, Keynote'lu)
   ========================================= */
.blog-posts-list {
    display: grid; /* Grid yapısına geçildi */
    grid-template-columns: repeat(2, 1fr); /* 2 Kolon */
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 2rem; /* Padding biraz küçültüldü */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%; /* Eşit yükseklik için */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-color: var(--clr-primary-light);
}

/* Sol Şerit */
.blog-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--clr-surface);
    transition: background 0.3s ease;
}

.blog-card:hover::before {
    background: var(--clr-primary);
}

.card-header {
    margin-bottom: 1rem;
}

.card-cats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.card-cat-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--clr-primary);
    background: var(--clr-primary-light);
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.5rem; /* Başlık boyutu dengelendi */
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.card-title a {
    color: var(--clr-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--clr-primary);
}

/* Keynote / Excerpt */
.card-body {
    margin-bottom: 1.5rem;
    flex-grow: 1; /* İçeriği iterek footer'ı alta yasla */
}

.card-keynote {
    background: #fffbf7; /* Hafif Krem */
    border-left: 3px solid var(--clr-primary);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-style: italic;
    color: var(--clr-text);
    font-size: 0.95rem;
    border-radius: 0 8px 8px 0;
}

.card-excerpt {
    font-size: 1rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}

/* Footer Meta */
.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-border);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.meta-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-author-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-secondary);
}

.meta-info {
    font-size: 0.8rem;
    color: var(--clr-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-sep {
    color: #cbd5e1;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 4rem;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 0.5rem;
}

.nav-links a, .nav-links span {
    padding: 10px 18px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--clr-text);
    font-weight: 600;
    transition: all 0.2s;
}

.nav-links a:hover, .nav-links span.current {
    background: var(--clr-secondary);
    color: #fff;
    border-color: var(--clr-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-posts-list {
        grid-template-columns: 1fr; /* Mobilde Tek Kolon */
    }
    .blog-title { font-size: 2.5rem; }
    .blog-card { padding: 1.5rem; }
    .card-title { font-size: 1.4rem; }
    .card-footer { flex-wrap: wrap; }
}