/**
 * Blog Arşiv + Sidebar Stilleri
 *
 * @package Starter_Theme
 * @since   1.0.0
 */

/* ── Layout ── */
.blog-archive {
    max-width: 1320px;
    margin: 0 auto;
    padding: 110px 40px 80px;
}

.blog-archive__wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* ── Header ── */
.blog-archive__header {
    margin-bottom: 32px;
    grid-column: 1 / -1;
}

.blog-archive__title {
    font-family: "Teko", sans-serif;
    font-weight: 500;
    font-size: 42px;
    line-height: 1.1;
    color: #252525;
    margin: 0 0 8px;
}

.blog-archive__desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* ── Post Grid ── */
.blog-archive__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ── Blog Card ── */
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.blog-card__img-link {
    display: block;
    overflow: hidden;
}

.blog-card__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

.blog-card__body {
    padding: 20px 22px 24px;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card__cat {
    background: var(--color-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
}

.blog-card__title a {
    color: #252525;
    transition: color 0.2s;
}

.blog-card__title a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.blog-card__excerpt {
    font-size: 13.5px;
    line-height: 1.65;
    color: #666;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card__more:hover {
    color: var(--color-secondary);
}

/* ── Pagination ── */
.blog-archive__pagination {
    margin-top: 48px;
    text-align: center;
}

.blog-archive__pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.blog-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: #f3f4f6;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
}

.blog-archive__pagination .page-numbers.current,
.blog-archive__pagination .page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ══════════════════════════════════
   SIDEBAR
   ══════════════════════════════════ */

.blog-sidebar {
    position: sticky;
    top: 130px;
}

.blog-sidebar__widget {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.blog-sidebar__title {
    font-family: "Satisfy", cursive;
    font-weight: 500;
    font-size: 25px;
    line-height: 28px;
    color: var(--color-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Arama */
.blog-sidebar__search {
    display: flex;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
}

.blog-sidebar__search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.blog-sidebar__search-btn {
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.blog-sidebar__search-btn:hover {
    background: var(--color-secondary);
}

/* Kategoriler */
.blog-sidebar__cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar__cat-list li {
    border-bottom: 1px solid #f5f5f5;
}

.blog-sidebar__cat-list li:last-child {
    border-bottom: none;
}

.blog-sidebar__cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition:
        color 0.2s,
        padding-left 0.2s;
}

.blog-sidebar__cat-list li a:hover {
    color: var(--color-primary);
    padding-left: 6px;
}

/* Son Yazılar */
.blog-sidebar__recent {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar__recent-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.blog-sidebar__recent-item:last-child {
    border-bottom: none;
}

.blog-sidebar__recent-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-sidebar__recent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-sidebar__recent-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-sidebar__recent-title {
    font-size: 13.5px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.blog-sidebar__recent-title:hover {
    color: var(--color-primary);
}

.blog-sidebar__recent-date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Etiketler */
.blog-sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-sidebar__tag {
    display: inline-block;
    padding: 5px 14px;
    background: #f3f4f6;
    color: #555;
    font-size: 12.5px;
    border-radius: 20px;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
}

.blog-sidebar__tag:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Aylık Arşiv */
.blog-sidebar__archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar__archive-list li {
    border-bottom: 1px solid #f5f5f5;
}

.blog-sidebar__archive-list li:last-child {
    border-bottom: none;
}

.blog-sidebar__archive-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition:
        color 0.2s,
        padding-left 0.2s;
}

.blog-sidebar__archive-list li a:hover {
    color: var(--color-primary);
    padding-left: 6px;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

@media (max-width: 1024px) {
    .blog-archive {
        padding: 110px 20px 60px;
    }

    .blog-archive__wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .blog-archive__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card__img-link {
        max-height: 400px;
    }
}
