/* ===== BLOG.CSS ===== */

/* Breadcrumb */
.blog-breadcrumb {
    background: #f8fafc;
    padding: .75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .9rem;
}

    .breadcrumb-list li {
        color: #64748b;
    }

        .breadcrumb-list li:not(:last-child)::after {
            content: "/";
            margin-left: .5rem;
            color: #cbd5e1;
        }

    .breadcrumb-list a {
        color: #6366f1;
        text-decoration: none;
    }

        .breadcrumb-list a:hover {
            text-decoration: underline;
        }

/* Hero */
.blog-hero {
    background: linear-gradient(135deg,#1e293b,#334155);
    color: #fff;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.blog-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 .75rem;
}

.blog-hero-sub {
    font-size: 1.1rem;
    opacity: .8;
    margin: 0;
}

/* Layout */
.blog-container {
    padding-bottom: 4rem;
}

/* Filtre */
.blog-filter-bar {
    margin-bottom: 1.5rem;
}

.blog-search-wrap {
    position: relative;
    display: flex;
}

    .blog-search-wrap i {
        position: absolute;
        left: .9rem;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
    }

.blog-search-input {
    width: 100%;
    padding: .7rem .9rem .7rem 2.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: .95rem;
}

    .blog-search-input:focus {
        border-color: #6366f1;
        outline: none;
        box-shadow: 0 0 0 3px rgba(99,102,241,.1);
    }

.blog-search-btn {
    display: none;
}
/* submit ile tetikleniyor */

/* Ay filtreleri */
.blog-month-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}

.month-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: .35rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

    .month-btn:hover, .month-btn.active {
        background: #6366f1;
        color: #fff;
        border-color: #6366f1;
    }

/* Blog Listesi */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Blog Kartı */
.blog-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}

    .blog-card:hover {
        box-shadow: 0 8px 32px rgba(99,102,241,.13);
        transform: translateY(-3px);
    }

.blog-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

.blog-card-cat {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: #6366f1;
    color: #fff;
    border-radius: 20px;
    padding: .25rem .7rem;
    font-size: .78rem;
    font-weight: 700;
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: .83rem;
    color: #94a3b8;
    margin-bottom: .6rem;
    display: flex;
    gap: 1rem;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 .75rem;
    line-height: 1.4;
}

    .blog-card-title a {
        color: inherit;
        text-decoration: none;
    }

        .blog-card-title a:hover {
            color: #6366f1;
        }

.blog-card-excerpt {
    color: #64748b;
    font-size: .93rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #6366f1;
    font-weight: 700;
    text-decoration: none;
    font-size: .9rem;
    margin-top: auto;
}

    .blog-card-more:hover {
        gap: .7rem;
    }

/* Boş */
.blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
}

    .blog-empty i {
        font-size: 3rem;
        display: block;
        margin-bottom: 1rem;
    }

/* Paging */
.blog-paging {
    display: flex;
    gap: .4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.paging-btn {
    padding: .5rem .9rem;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    font-size: .9rem;
    transition: .2s;
}

    .paging-btn:hover {
        border-color: #6366f1;
        color: #6366f1;
    }

    .paging-btn.active {
        background: #6366f1;
        color: #fff;
        border-color: #6366f1;
    }

/* Sidebar */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-search {
    display: flex;
    gap: .5rem;
}

    .sidebar-search .form-control {
        flex: 1;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        padding: .55rem .75rem;
        font-size: .9rem;
    }

.sidebar-search-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .55rem .9rem;
    cursor: pointer;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .6rem;
    border-radius: 8px;
    color: #475569;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
    transition: .18s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

    .sidebar-cat-item:hover {
        background: #f1f5f9;
        color: #6366f1;
    }

.cat-count {
    margin-left: auto;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    padding: .1rem .55rem;
    font-size: .78rem;
    font-weight: 700;
}

.sidebar-archive-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    border-radius: 8px;
    color: #475569;
    font-size: .88rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: .18s;
    text-decoration: none;
}

    .sidebar-archive-item:hover {
        background: #f1f5f9;
        color: #6366f1;
    }

.sidebar-recent-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
}

    .sidebar-recent-item:last-child {
        border-bottom: none;
    }

.sidebar-recent-img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-recent-title {
    font-size: .87rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.sidebar-recent-date {
    font-size: .78rem;
    color: #94a3b8;
    margin-top: .15rem;
}

@media (max-width:991px) {
    aside {
        margin-top: 2.5rem;
    }

    .blog-hero-title {
        font-size: 1.9rem;
    }
}

@media (max-width:576px) {
    .blog-hero {
        padding: 2.5rem 0 2rem;
    }

    .blog-hero-title {
        font-size: 1.55rem;
    }

    .blog-card-title {
        font-size: 1.05rem;
    }
}


/* ── Aktif filtre etiketi ── */
.aktif-filtre {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #ede9fe;
    color: #6366f1;
    border-radius: 20px;
    padding: .35rem .85rem;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.filtre-temizle {
    background: none;
    border: none;
    color: #6366f1;
    cursor: pointer;
    padding: 0;
    font-size: .85rem;
    opacity: .7;
    transition: opacity .2s;
}

    .filtre-temizle:hover {
        opacity: 1;
    }

/* ── Sidebar ay listesi ── */
.sidebar-month-list {
    display: flex;
    flex-direction: column;
}

.sidebar-archive-item.active,
.sidebar-cat-item.active {
    background: #ede9fe;
    color: #6366f1;
    font-weight: 700;
}

/* ── Sidebar sosyal medya ── */
.sidebar-social-list {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.sidebar-social-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .7rem;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: .9rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    transition: .2s;
}

    .sidebar-social-item:hover {
        border-color: #6366f1;
        color: #6366f1;
        background: #f5f3ff;
        text-decoration: none;
    }

    .sidebar-social-item i:first-child {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
        color: #6366f1;
    }

    .sidebar-social-item:hover i:first-child {
        color: #4f46e5;
    }

    .sidebar-social-item .fa-external-link-alt {
        margin-left: auto;
        font-size: .72rem;
        color: #cbd5e1;
    }
