/* ============================================================
   Blog
   ============================================================ */

/* ── Ortak ── */
.blog-eyebrow {
    font-family: var(--ms-font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ms-red);
    margin-bottom: 14px;
}
.meta-dot {
    width: 3px;
    height: 3px;
    background: #ddd;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ms-red), #e31e24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ms-font-heading);
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}
.author-avatar--sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 12px;
}
.author-avatar--lg {
    width: 44px;
    height: 44px;
    font-size: 16px;
}
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    font-size: 12px;
    color: #bbb;
}
.crumbs a {
    color: #bbb;
    transition: color 0.15s;
}
.crumbs > :last-child {
    color: #777;
}
.crumbs a:hover {
    color: var(--ms-red);
}
.crumbs .material-symbols-outlined {
    font-size: 13px;
}

/* ── Liste: başlık ── */
.blog-header {
    padding: 108px 0 56px;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}
.blog-header__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.blog-header__title {
    font-weight: 800;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 12px;
}
.blog-header__title span {
    color: var(--ms-red);
}
.blog-header__lead {
    font-size: 16px;
    color: #666;
    line-height: 1.65;
    max-width: 480px;
}
.blog-header__count {
    font-size: 13px;
    color: #aaa;
}
.blog-header__count strong {
    color: #111;
    font-family: var(--ms-font-heading);
    font-size: 28px;
    font-weight: 800;
}
.blog-header__count span {
    font-family: var(--ms-font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.blog-main {
    padding: 56px 0 100px;
}
.blog-empty {
    padding: 40px 0;
    font-size: 15px;
    color: #777;
    text-align: center;
}

/* ── Liste: kategori bağlantıları ── */
.cat-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.cat-btn {
    font-family: var(--ms-font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid #e8e8e8;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}
.cat-btn:hover {
    border-color: #111;
    color: #111;
}
.cat-btn.on {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ── Liste: öne çıkan yazı ── */
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 48px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}
.featured-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}
.featured-thumb {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.featured-body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.featured-label {
    font-size: 11px;
    color: #bbb;
}
.featured-title {
    font-weight: 800;
    font-size: clamp(20px, 2.5vw, 28px);
    color: #111;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.featured-excerpt {
    font-size: 15px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 24px;
}
.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #bbb;
}
.featured-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* ── Liste: yazı kartı ── */
.posts-grid {
    gap: 20px;
}
.post-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.post-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, var(--ms-dark), var(--ms-red));
}
.post-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-body .tag {
    align-self: flex-start;
    margin-bottom: 12px;
}
.post-title {
    font-family: var(--ms-font-heading);
    font-weight: 700;
    font-size: 15px;
    color: #111;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.15s;
}
.post-card:hover .post-title {
    color: var(--ms-red);
}
.post-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}
.post-meta {
    font-size: 11px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Liste: kapak görselleri ── */
.featured-thumb,
.post-thumb {
    padding: 0;
    overflow: hidden;
    position: relative;
}
.featured-thumb img,
.post-thumb img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.post-thumb img {
    height: 160px;
}
.featured-thumb img {
    height: 100%;
    min-height: 320px;
}
.post-card:hover .post-thumb img,
.featured-card:hover .featured-thumb img {
    transform: scale(1.04);
}

/* ── Liste: sayfalama ── */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 48px;
}
.pagination__item {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1.5px solid #e8e8e8;
    background: #fff;
    font-family: var(--ms-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #666;
    transition:
        border-color 0.15s,
        color 0.15s;
}
a.pagination__item:hover {
    border-color: #111;
    color: #111;
}
.pagination__item.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}
.pagination__item.is-disabled {
    color: #ccc;
}
.pagination__item.is-dots {
    background: transparent;
    border-color: transparent;
}
.pagination__item .material-symbols-outlined {
    font-size: 18px;
}
.pagination__prev .material-symbols-outlined {
    transform: rotate(180deg);
}

/* ── Liste: demo şeridi ── */
.nl-strip {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    background: #111;
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.nl-strip__glow {
    position: absolute;
    top: -40%;
    right: -6%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(186, 0, 19, 0.28), transparent 62%);
    pointer-events: none;
}
.nl-strip__text {
    position: relative;
}
.nl-strip .blog-eyebrow {
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}
.nl-strip__title {
    font-family: var(--ms-font-heading);
    font-weight: 800;
    font-size: 23px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.nl-strip__desc {
    font-size: 14px;
    color: #999;
    max-width: 440px;
    line-height: 1.65;
}
.nl-strip__actions {
    position: relative;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
    flex-wrap: wrap;
}
.nl-strip__btn {
    background: var(--ms-red);
    border-radius: 999px;
    padding: 13px 26px;
    font-family: var(--ms-font-heading);
    font-weight: 700;
    font-size: 13.5px;
    color: #fff;
    white-space: nowrap;
    transition:
        background 0.15s,
        transform 0.15s;
}
.nl-strip__btn:hover {
    background: var(--ms-red-hover);
    transform: translateY(-1px);
}
.nl-strip__btn--ghost {
    background: transparent;
    border: 1.5px solid #333;
    padding: 12px 24px;
    color: #ddd;
    transition:
        border-color 0.15s,
        color 0.15s;
}
.nl-strip__btn--ghost:hover {
    background: transparent;
    border-color: #666;
    color: #fff;
    transform: none;
}

/* ── Yazı: yönetim önizlemesi ── */
.preview-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ms-dark);
    color: #fff;
    font-family: var(--ms-font-heading);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.preview-bar a {
    color: #fff;
    margin-left: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* ── Yazı: başlık ── */
#progress-bar {
    position: fixed;
    top: 64px;
    left: 0;
    height: 2px;
    background: var(--ms-red);
    width: 0%;
    z-index: 99;
    transition: width 0.1s linear;
}
.article-header {
    padding: 108px 0 48px;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #999;
}
.article-meta .meta-dot {
    background: #ccc;
}
.article-meta__reading {
    font-weight: 600;
}
.article-title {
    font-weight: 800;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 18px;
}
.article-title span {
    color: var(--ms-red);
}
.article-lead {
    font-size: 17px;
    color: #666;
    line-height: 1.75;
    margin-bottom: 28px;
}
.article-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}
.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.article-author__name {
    font-family: var(--ms-font-heading);
    font-weight: 700;
    font-size: 13px;
    color: #111;
}
.article-author__desc {
    font-size: 12px;
    color: #aaa;
}

/* ── Yazı: paylaş ── */
.share-row {
    display: flex;
    gap: 8px;
}
.share-row--footer {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f3f3f3;
}
.share-row__label {
    font-family: var(--ms-font-heading);
    font-size: 12px;
    font-weight: 700;
    color: #bbb;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--ms-font-heading);
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}
.share-btn:hover {
    border-color: #111;
    color: #111;
}
.share-btn .material-symbols-outlined {
    font-size: 13px;
}

/* ── Yazı: yerleşim ── */
.article-main {
    padding: 52px 0 100px;
}
.article-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 64px;
    align-items: start;
}
.article-grid > aside {
    align-self: stretch;
}
.sticky-wrap {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Yazı: kapak görseli ── */
.hero-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    aspect-ratio: 16/7;
    background: linear-gradient(120deg, var(--ms-dark), var(--ms-red));
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-media__ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(186, 0, 19, 0.4), rgba(17, 17, 17, 0.18));
    mix-blend-mode: multiply;
}
.hero-media__cat {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: var(--ms-font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}
.hero-media__cat .d {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5468;
}

/* ── Yazı: içerik tipografisi ── */
.article-body {
    font-size: 17px;
    line-height: 1.85;
    color: #333;
    counter-reset: section;
}
.article-body p {
    margin-bottom: 1.6em;
}
.article-body h2 {
    font-family: var(--ms-font-heading);
    font-weight: 800;
    font-size: 22px;
    color: #111;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 2.8em 0 0.8em;
    scroll-margin-top: 84px;
}
/* Bölüm numarası */
.article-body h2::before {
    counter-increment: section;
    content: counter(section, decimal-leading-zero);
    display: block;
    width: 26px;
    height: 26px;
    background: #111;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    line-height: 26px;
    margin-bottom: 8px;
}
.article-body h3 {
    font-family: var(--ms-font-heading);
    font-weight: 800;
    font-size: 18px;
    color: #111;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 2em 0 0.6em;
}
.article-body h4 {
    font-family: var(--ms-font-heading);
    font-weight: 700;
    font-size: 16px;
    color: #111;
    line-height: 1.4;
    margin: 1.6em 0 0.5em;
}
.article-body strong {
    font-weight: 700;
    color: #111;
}
.article-body em {
    font-style: italic;
}
.article-body a {
    color: var(--ms-red);
    border-bottom: 1px solid rgba(186, 0, 19, 0.25);
    transition: border-color 0.15s;
}
.article-body a:hover {
    border-color: var(--ms-red);
}
.article-body hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 2.5em 0;
}
.article-body ul,
.article-body ol {
    margin: 0 0 1.6em;
}
.article-body li {
    margin-bottom: 0.7em;
    line-height: 1.7;
}
.article-body ul > li {
    position: relative;
    padding-left: 24px;
}
.article-body ul > li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ms-red);
}
.article-body ol {
    list-style: decimal;
    padding-left: 1.5em;
}
.article-body ol > li::marker {
    color: var(--ms-red);
    font-weight: 700;
}
.article-body blockquote {
    border-left: 2px solid var(--ms-red);
    padding: 14px 22px;
    margin: 2em 0;
    background: #fff;
    border-radius: 0 10px 10px 0;
}
.article-body blockquote p {
    font-size: 16px;
    font-style: italic;
    color: #555;
    margin: 0;
}
.article-body figure {
    margin: 2em 0;
}
.article-body img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}
.article-body figure.image_resized img {
    width: 100%;
}
.article-body figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    text-align: center;
}
.article-body figure.table {
    overflow-x: auto;
}
.article-body table {
    width: 100%;
    font-size: 15px;
    line-height: 1.6;
}
.article-body th,
.article-body td {
    border: 1px solid #e8e8e8;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.article-body th {
    background: #f3f3f3;
    font-weight: 700;
    color: #111;
}
.article-body code {
    font-size: 0.9em;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px 5px;
}
.article-body pre {
    margin: 0 0 1.6em;
    padding: 18px 20px;
    overflow-x: auto;
    background: var(--ms-dark);
    color: #eee;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}
.article-body pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

/* ── Yazı: yazar, çağrı kutusu ── */
.author-bio {
    padding: 24px 28px;
    margin-top: 48px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.author-bio__name {
    font-family: var(--ms-font-heading);
    font-weight: 700;
    font-size: 14px;
    color: #111;
    margin-bottom: 4px;
}
.author-bio__text {
    font-size: 13px;
    color: #777;
    line-height: 1.65;
}
.author-bio__text a {
    color: var(--ms-red);
    font-weight: 600;
    border-bottom: 1px solid rgba(186, 0, 19, 0.25);
}
.article-cta {
    background: #111;
    border-radius: 16px;
    padding: 36px;
    margin-top: 48px;
    text-align: center;
}
.article-cta h3 {
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.article-cta p {
    font-size: 14px;
    color: #999;
    line-height: 1.65;
    max-width: 420px;
    margin: 0 auto 22px;
}

/* ── Yazı: ilgili yazılar ── */
.related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #f0f0f0;
}
.related__title {
    font-weight: 800;
    font-size: 18px;
    color: #111;
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}
.related__grid {
    gap: 14px;
}
.related-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
    display: block;
}
.related-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.related-thumb {
    height: 120px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(120deg, var(--ms-dark), var(--ms-red));
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-body {
    padding: 16px;
}
.related-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ms-red);
    margin-bottom: 6px;
}
.related-title {
    font-family: var(--ms-font-heading);
    font-weight: 700;
    font-size: 13px;
    color: #111;
    line-height: 1.4;
    margin-bottom: 6px;
}
.related-date {
    display: block;
    font-size: 11px;
    color: #bbb;
}

/* ── Yazı: yan sütun ── */
.toc-card {
    padding: 20px 24px;
}
.toc-card__title {
    font-family: var(--ms-font-heading);
    font-weight: 800;
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    counter-reset: toc;
}
.toc-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    transition: all 0.15s;
    border-left: 2px solid transparent;
    font-family: var(--ms-font-heading);
}
.toc-link::before {
    counter-increment: toc;
    content: counter(toc, decimal-leading-zero) " — ";
}
.toc-link:hover,
.toc-link.active {
    color: var(--ms-red);
    background: rgba(186, 0, 19, 0.05);
    border-left-color: var(--ms-red);
}
.nl-box {
    background: #111;
    border-radius: 16px;
    padding: 22px;
}
.nl-box__icon {
    font-size: 18px;
    margin-bottom: 10px;
}
.nl-box__title {
    font-family: var(--ms-font-heading);
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    margin-bottom: 6px;
}
.nl-box__desc {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 14px;
}
.nl-box__success {
    font-size: 12px;
    color: #1aa356;
    font-weight: 600;
    padding: 6px 0;
}
.nl-box__error {
    font-size: 11px;
    color: var(--ms-red);
    margin-bottom: 8px;
}
.nl-input {
    width: 100%;
    margin-bottom: 8px;
    background: #f6f5f5;
    border: none;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    font-family: var(--ms-font-body);
    outline: none;
    transition: box-shadow 0.2s;
}
.nl-input:focus {
    box-shadow: 0 0 0 2px rgba(186, 0, 19, 0.3);
}
.nl-box__btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
}
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.sidebar-cta {
    display: block;
    text-align: center;
    padding: 13px;
}

/* ── Yazı: mobil ── */
@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .article-grid > * {
        min-width: 0;
    }
    .article-grid > aside {
        display: none;
    }
}

/* ── Liste: mobil ── */
@media (max-width: 760px) {
    .featured-card {
        grid-template-columns: minmax(0, 1fr);
    }
    .featured-thumb,
    .featured-thumb img {
        min-height: 220px;
    }
    .featured-body {
        padding: 28px 24px;
    }
    .nl-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 24px;
    }
}
