/* ==========================================================================
   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: 600;
    letter-spacing: -0.025em;
    font-size: 32px;
    line-height: 40px;
    color: var(--ink);
}

.main.blog .container.title h2 {
    margin-top: 10px;
    font-size: 15px;
    line-height: 23px;
    font-weight: 400;
    color: var(--muted);
}

/* 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: none;
    box-shadow: none;
    border-color: var(--ink);
}

.blog-card .blog-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 12 / 5;
    overflow: hidden;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
}

.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: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.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: #64748B;
}

.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: 6px 11px;
    border-radius: 6px;
    border: 1px solid var(--rule);
    background: #fff;
    color: var(--brand);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-article .blog-head h1 {
    font-size: 34px;
    line-height: 43px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 16px;
}

.blog-article .blog-head .blog-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.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: #64748B;
}

/* --- 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;
    }
}


/* ==========================================================================
   BLOG — YÜZEY DİLİ (v6 "Yumuşak Kağıt")
   Kartlar gölgeyle ayrışır, çizgiler açılır, rozetler hap formuna geçer.
   Yukarıdaki bölümlerde düzen/boyut tanımları durur; görünüşe dair son söz
   buradadır.
   ========================================================================== */

/* --- Liste sayfası -------------------------------------------------------- */

.main.blog {
    background: var(--paper);
}

.main.blog .container.title h1 {
    letter-spacing: -0.015em;
}

.blog-list {
    gap: 20px;
}

.blog-card {
    border: 1px solid var(--rule-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease),
                border-color .3s var(--ease);
}

.blog-card:hover {
    border-color: var(--rule);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.blog-card .blog-thumb {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* Görselin büyümesi kartı zorlamasın; yumuşak dilde hareket sakin olmalı */
.blog-card:hover .blog-thumb img {
    transform: scale(1.03);
}

.blog-card .blog-body {
    padding: 22px 24px 24px;
}

.blog-card .blog-body h3 {
    letter-spacing: -0.005em;
}

.blog-card .blog-meta {
    border-top: 1px solid var(--rule-soft);
    padding-top: 16px;
}

.blog-card .blog-meta .blog-date {
    font-size: 12px;
    letter-spacing: 0;
}

.blog-card .blog-meta .btn {
    height: 36px;
    line-height: 34px;
    border-radius: var(--r-pill);
    padding: 0 18px;
}

/* --- Boş durum ------------------------------------------------------------ */

.blog-empty {
    background: #fff;
    border: 1px solid var(--rule-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 56px 24px 60px;
}

.blog-empty h3 {
    color: var(--ink);
    font-weight: 600;
}

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

.blog-pagination a,
.blog-pagination span {
    min-width: 42px;
    height: 42px;
    border-radius: var(--r-pill);
    border-color: var(--rule-soft);
    color: var(--ink);
    box-shadow: var(--shadow-xs);
    transition: background-color .25s var(--ease), color .25s var(--ease),
                border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.blog-pagination a:hover {
    background: var(--brand-soft);
    border-color: var(--rule);
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.blog-pagination .current {
    background: var(--brand);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.blog-pagination .disabled {
    background: var(--paper);
    border-color: var(--rule-soft);
    color: #B7B3C6;
    box-shadow: none;
}

/* --- Detay sayfası -------------------------------------------------------- */

.main.blogdetail {
    background: var(--paper);
}

.blog-breadcrumb {
    font-size: 13.5px;
}

.blog-article .blog-badge {
    border: none;
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    letter-spacing: .07em;
    padding: 7px 15px;
    font-size: 11px;
}

.blog-article .blog-head h1 {
    font-size: 36px;
    line-height: 1.24;
    letter-spacing: -0.015em;
}

.blog-article .blog-head .blog-date {
    font-size: 12.5px;
}

/* Spot: sol çizgi yerine yumuşak zeminli blok */
.blog-article .blog-lead {
    font-style: normal;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--color-secondary);
    background: var(--brand-soft);
    border-left: none;
    border-radius: var(--r-md);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.blog-article .blog-cover {
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.blog-article .single img {
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
}

.blog-article .single blockquote {
    border-left: 3px solid var(--brand);
    background: var(--brand-soft);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 16px 22px;
    font-style: normal;
    color: var(--color-secondary);
}

.blog-article .blog-foot {
    border-top: 1px solid var(--rule-soft);
}

.blog-article .blog-foot .btn {
    border-radius: var(--r-pill);
}

/* --- Detay sayfası: sol bilgi rayı ---------------------------------------- */

.blog-rail {
    border-top: none;
}

.blog-rail .rail-box {
    border-bottom: 1px solid var(--rule-soft);
}

.blog-rail .rail-lbl {
    letter-spacing: .07em;
}

.blog-rail .rail-box b {
    font-size: 14.5px;
    letter-spacing: -0.005em;
}

.blog-rail .rail-share a {
    width: 38px;
    height: 38px;
    border-radius: var(--r-pill);
    border-color: var(--rule-soft);
    box-shadow: var(--shadow-xs);
    transition: background-color .25s var(--ease), border-color .25s var(--ease),
                color .25s var(--ease), transform .25s var(--ease);
}

.blog-rail .rail-share a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.blog-rail .rail-back {
    letter-spacing: .04em;
}

@media (prefers-reduced-motion: reduce) {
    .blog-card:hover,
    .blog-rail .rail-share a:hover {
        transform: none;
    }
}
