/* ==========================================================================
   Blog & Blog Detay – ayesoft.net tasarımı ile uyumlu
   Renk/tipografi tokenleri style.css :root üzerinden gelir
   ========================================================================== */

/* --- Blog liste sayfası ------------------------------------------------- */

.main.blog {
    margin-bottom: 60px;
}

.main.blog .container {
    flex-direction: column;
}

.main.blog .container.title {
    flex-direction: column;
    display: block;
    width: 100%;
    padding: 30px 0 20px;
    text-align: center;
    margin-left: 0;
}

.main.blog .container.title h1 {
    display: inline-block;
    font-weight: 900;
    font-size: 30px;
    line-height: 34px;
    color: var(--primary-color);
    border-bottom: 3px var(--primary-color) solid;
    padding-bottom: 8px;
}

.main.blog .container.title h2 {
    margin-top: 12px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: #555;
}

/* Kart ızgarası (flex container içinde tam genişlik) */
.blog-list {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececf2;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(63, 55, 124, 0.14);
    border-color: var(--third-color);
}

.blog-card .blog-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.blog-card .blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

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

.blog-card .blog-thumb.placeholder::after {
    content: "\f15c";
    font: normal normal normal 40px/1 FontAwesome;
    color: rgba(255, 255, 255, 0.55);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blog-card .blog-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.blog-card .blog-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 25px;
    font-weight: 600;
}

.blog-card .blog-body h3 a {
    color: var(--text-color);
    transition: color .2s ease;
}

.blog-card .blog-body h3 a:hover {
    color: var(--primary-color);
}

.blog-card .blog-body .blog-spot {
    flex: 1;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 22px;
    color: #6b6b76;
}

.blog-card .blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f5;
}

.blog-card .blog-meta .blog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9a9aa6;
}

.blog-card .blog-meta .blog-date i {
    color: var(--primary-color);
}

.blog-card .blog-meta .btn {
    height: 34px;
    line-height: 32px;
    font-size: 13px;
    padding: 0 14px;
}

/* Boş durum */
.blog-empty {
    flex: 1;
    width: 100%;
    text-align: center;
    padding: 70px 20px;
}

.blog-empty i {
    font-size: 46px;
    color: var(--third-color);
    margin-bottom: 18px;
}

.blog-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #555;
}

/* --- Sayfalama ---------------------------------------------------------- */

.blog-pagination {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 50px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #e4e4ec;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    background: #fff;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

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

.blog-pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.blog-pagination .disabled {
    color: #c0c0cc;
    background: #f7f7fa;
    cursor: not-allowed;
}

/* --- Blog detay sayfası ------------------------------------------------- */

.main.blogdetail {
    margin-bottom: 60px;
}

.main.blogdetail .container {
    flex-direction: column;
}

.blog-article {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

/* Breadcrumb */
.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0 26px;
    font-size: 13px;
    color: #9a9aa6;
}

.blog-breadcrumb a {
    color: var(--primary-color);
    transition: opacity .2s ease;
}

.blog-breadcrumb a:hover {
    opacity: .7;
}

.blog-breadcrumb .sep {
    color: #cfcfd8;
}

.blog-breadcrumb .active {
    color: #6b6b76;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Başlık bloğu */
.blog-article .blog-head {
    margin-bottom: 26px;
}

.blog-article .blog-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    background: var(--third-color);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-article .blog-head h1 {
    font-size: 34px;
    line-height: 44px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.blog-article .blog-head .blog-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #9a9aa6;
}

.blog-article .blog-head .blog-date i {
    color: var(--primary-color);
}

/* Spot / özet */
.blog-article .blog-lead {
    font-size: 17px;
    line-height: 28px;
    color: #55555f;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 30px;
    font-style: italic;
}

/* Kapak görseli */
.blog-article .blog-cover {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 34px;
    display: block;
}

/* İçerik gövdesi – .single üzerine ince eklemeler */
.blog-article .single {
    margin-bottom: 10px;
}

.blog-article .single img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-article .single blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 4px 0 4px 20px;
    margin: 26px 0;
    font-style: italic;
    color: #6b6b76;
}

/* Alt bilgi / navigasyon */
.blog-article .blog-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #ececf2;
}

.blog-article .blog-foot small {
    font-size: 13px;
    color: #9a9aa6;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 992px) {
    .blog-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
    .blog-article .blog-head h1 {
        font-size: 28px;
        line-height: 38px;
    }
}

@media (max-width: 620px) {
    .blog-list {
        grid-template-columns: 1fr;
    }
    .main.blog .container.title h1 {
        font-size: 24px;
        line-height: 28px;
    }
    .blog-article .blog-head h1 {
        font-size: 24px;
        line-height: 33px;
    }
    .blog-article .blog-lead {
        font-size: 16px;
        line-height: 26px;
    }
}
