/*
 * Sunucu Merkezi Blog - içerik alanı stilleri
 * Header/footer ve banner stilleri ana sitenin CSS dosyalarından gelir
 * (config/site.php > styles). Bu dosya yalnızca blog içeriğini biçimlendirir;
 * tüm kurallar body.smb altında.
 */
body.smb {
    --smb-navy: #03256c;
    --smb-navy-dark: #021a4d;
    --smb-teal: #00c9b7;
    --smb-teal-ink: #00877b;
    --smb-ink: #172033;
    --smb-text: #374151;
    --smb-muted: #6b7280;
    --smb-line: #e5e8ef;
    --smb-soft: #f5f7fb;
    --smb-radius: 14px;
    color: var(--smb-text);
}

.smb .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.smb .smb-main { display: block; }
.smb .smb-section { padding-top: 40px; padding-bottom: 64px; }
.smb .smb-center { text-align: center; }

/* ---------------------------------------------------------------- Hero */
.smb .smb-hero { margin-bottom: 0; }
.smb .smb-hero .modern-banner-slide { padding: 18px 0 10px; }
.smb .smb-hero-search {
    display: flex; align-items: center; max-width: 520px; margin-top: 6px;
    background: #fff; border-radius: 12px; padding: 5px 5px 5px 16px;
    box-shadow: 0 10px 30px rgba(2, 18, 60, .25);
}
.smb .smb-hero-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; color: var(--smb-ink);
    background: transparent; padding: 9px 0;
}
.smb .smb-hero-search input::-webkit-search-cancel-button { cursor: pointer; }
.smb .smb-hero-search button {
    flex: 0 0 auto; width: 44px; height: 40px; border: 0; border-radius: 9px; cursor: pointer;
    display: grid; place-items: center; color: #fff; background: var(--smb-navy);
    transition: background-color .2s;
}
.smb .smb-hero-search button:hover { background: var(--smb-teal-ink); }

.smb .smb-hero--post .modern-banner-title { font-size: 34px; line-height: 1.25; }
.smb .smb-hero--post .modern-banner-title::after { display: none; }
.smb .smb-hero--post a.banner-badge { text-decoration: none; }
.smb .smb-hero--post a.banner-badge:hover { background: rgba(255, 255, 255, .3); }
.smb .smb-hero-meta {
    display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255, 255, 255, .85);
    font-size: 14px; font-weight: 500;
}
.smb .smb-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.smb .smb-hero-meta i { color: var(--smb-teal); }

/* -------------------------------------------------------------- Kategoriler */
.smb .smb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.smb .smb-chip {
    display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none;
    color: var(--smb-navy); background: #eaf0fb; transition: background-color .2s, color .2s;
}
.smb .smb-chip:hover { background: var(--smb-navy); color: #fff; }
.smb .smb-chips .smb-chip { padding: 8px 16px; font-size: 14px; background: #fff; border: 1px solid var(--smb-line); }
.smb .smb-chips .smb-chip:hover, .smb .smb-chips .smb-chip.is-active { background: var(--smb-navy); border-color: var(--smb-navy); color: #fff; }

/* ------------------------------------------------------------ Öne çıkan */
.smb .smb-featured {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-bottom: 36px;
    border: 1px solid var(--smb-line); border-radius: var(--smb-radius); overflow: hidden; background: #fff;
}
.smb .smb-featured__media { display: block; background: var(--smb-soft); min-height: 280px; }
.smb .smb-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smb .smb-featured__body { padding: 32px 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.smb .smb-featured__body p { margin: 0; font-size: 16px; line-height: 1.7; }
.smb .smb-featured__title { font-size: 26px; line-height: 1.3; font-weight: 800; margin: 0; color: var(--smb-ink); }
.smb .smb-featured__title a { color: inherit; text-decoration: none; }
.smb .smb-featured__title a:hover { color: var(--smb-navy); }
.smb .smb-featured .smb-btn { margin-top: 6px; }
.smb .smb-label {
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--smb-teal-ink);
}

/* ---------------------------------------------------------------- Kartlar */
.smb .smb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.smb .smb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smb .smb-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--smb-line);
    border-radius: var(--smb-radius); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.smb .smb-card:hover { border-color: #c9d4ea; box-shadow: 0 12px 30px rgba(3, 37, 108, .08); transform: translateY(-2px); }
.smb .smb-card__media { display: block; aspect-ratio: 16 / 9; background: var(--smb-soft); overflow: hidden; }
.smb .smb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.smb .smb-card:hover .smb-card__media img { transform: scale(1.03); }
.smb .smb-card__placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, #eef3fc 0%, #e6faf8 100%);
}
.smb .smb-card__placeholder img { width: 46% !important; height: auto !important; object-fit: contain !important; opacity: .5; transform: none !important; }
.smb .smb-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.smb .smb-card__title { font-size: 19px; line-height: 1.35; font-weight: 700; margin: 0; color: var(--smb-ink); }
.smb .smb-card__title a { color: inherit; text-decoration: none; }
.smb .smb-card__title a:hover { color: var(--smb-navy); }
.smb .smb-card__excerpt { font-size: 15px; line-height: 1.65; margin: 0; color: var(--smb-text); flex: 1; }
.smb .smb-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--smb-muted); }

/* ------------------------------------------------------------- Butonlar */
.smb .smb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 700; line-height: 1;
    color: #fff; background: var(--smb-navy); text-decoration: none; border: 0; cursor: pointer;
    transition: background-color .2s;
}
.smb .smb-btn:hover { background: var(--smb-teal-ink); color: #fff; }

/* ------------------------------------------------------- Yerleşim + Kenar */
.smb .smb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.smb .smb-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.smb .smb-box { background: #fff; border: 1px solid var(--smb-line); border-radius: var(--smb-radius); padding: 22px; }
.smb .smb-box__title { font-size: 16px; font-weight: 800; color: var(--smb-ink); margin: 0 0 14px; }
.smb .smb-box p { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.smb .smb-box--cta { background: linear-gradient(135deg, #03256c 0%, #03256c 55%, #00a99a 100%); border: 0; color: rgba(255, 255, 255, .9); }
.smb .smb-box--cta .smb-box__title { color: #fff; }
.smb .smb-box--cta .smb-btn { background: #fff; color: var(--smb-navy); }
.smb .smb-box--cta .smb-btn:hover { background: var(--smb-teal); color: var(--smb-navy-dark); }

.smb .smb-search { display: flex; gap: 8px; }
.smb .smb-search input {
    flex: 1; min-width: 0; border: 1px solid var(--smb-line); border-radius: 10px; padding: 10px 12px; font-size: 14px;
}
.smb .smb-search input:focus { outline: 2px solid rgba(0, 201, 183, .35); border-color: var(--smb-teal); }
.smb .smb-search button {
    border: 0; border-radius: 10px; padding: 0 14px; font-weight: 700; font-size: 14px;
    background: var(--smb-navy); color: #fff; cursor: pointer;
}
.smb .smb-catlist { list-style: none; margin: 0; padding: 0; }
.smb .smb-catlist li + li { border-top: 1px solid var(--smb-line); }
.smb .smb-catlist a {
    display: flex; justify-content: space-between; gap: 10px; padding: 10px 0;
    color: var(--smb-ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.smb .smb-catlist a:hover, .smb .smb-catlist a.is-active { color: var(--smb-teal-ink); }
.smb .smb-catlist a.is-empty { color: var(--smb-muted); font-weight: 500; }
.smb .smb-catlist a.is-active .smb-count { background: var(--smb-navy); color: #fff; }
.smb .smb-count {
    min-width: 28px; text-align: center; font-size: 12px; font-weight: 700; line-height: 22px;
    border-radius: 999px; background: var(--smb-soft); color: var(--smb-muted);
}

/* ------------------------------------------------------------ Sayfalama */
.smb .smb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.smb .smb-pagination a, .smb .smb-pagination span {
    min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--smb-line); font-weight: 600; font-size: 14px;
    color: var(--smb-ink); text-decoration: none; background: #fff;
}
.smb .smb-pagination a:hover { border-color: var(--smb-navy); color: var(--smb-navy); }
.smb .smb-pagination .is-current { background: var(--smb-navy); border-color: var(--smb-navy); color: #fff; }
.smb .smb-pagination .is-disabled { color: #b8bfcc; }
.smb .smb-pagination .is-gap { border: 0; background: none; }

.smb .smb-empty {
    text-align: center; padding: 60px 20px; border: 1px dashed #cdd5e4; border-radius: var(--smb-radius); background: var(--smb-soft);
}
.smb .smb-empty h2 { font-size: 22px; color: var(--smb-ink); margin: 0 0 8px; }
.smb .smb-empty p { margin: 0; }

/* ---------------------------------------------------------------- Yazı */
.smb .smb-preview-bar {
    background: #fff7e0; color: #7a5300; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600;
}
.smb .smb-preview-bar a { color: inherit; text-decoration: underline; margin-left: 8px; }
.smb .smb-article { min-width: 0; }
.smb .smb-article__cover { margin: 0 0 32px; border-radius: var(--smb-radius); overflow: hidden; background: var(--smb-soft); }
.smb .smb-article__cover img { display: block; width: 100%; height: auto; }

.smb .smb-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.smb .smb-toc li { margin: 0; }
.smb .smb-toc li.lvl-3 { padding-left: 16px; }
.smb .smb-toc a {
    display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--smb-line);
    color: var(--smb-text); font-size: 14px; line-height: 1.45; text-decoration: none;
}
.smb .smb-toc a:hover, .smb .smb-toc a.is-active { color: var(--smb-navy); border-left-color: var(--smb-teal); }
.smb .smb-toc a.is-active { font-weight: 700; }
.smb .smb-toc--inline { display: none; }
.smb .smb-toc--inline summary { cursor: pointer; font-weight: 800; color: var(--smb-ink); }
.smb .smb-toc--inline[open] summary { margin-bottom: 10px; }

/* Okuma tipografisi */
.smb .smb-prose { font-size: 17px; line-height: 1.8; color: var(--smb-text); overflow-wrap: break-word; }
.smb .smb-prose > :first-child { margin-top: 0; }
.smb .smb-prose p { margin: 0 0 1.25em; }
.smb .smb-prose h2, .smb .smb-prose h3, .smb .smb-prose h4 { color: var(--smb-ink); font-weight: 800; line-height: 1.3; scroll-margin-top: 110px; }
.smb .smb-prose h2 { font-size: 27px; margin: 1.9em 0 .7em; }
.smb .smb-prose h3 { font-size: 21px; margin: 1.6em 0 .6em; }
.smb .smb-prose h4 { font-size: 18px; margin: 1.4em 0 .5em; }
.smb .smb-prose a { color: var(--smb-navy); text-decoration: underline; text-decoration-color: rgba(0, 201, 183, .7); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.smb .smb-prose a:hover { color: var(--smb-teal-ink); }
.smb .smb-prose strong { color: var(--smb-ink); }
.smb .smb-prose ul, .smb .smb-prose ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.smb .smb-prose ul { list-style: disc; }
.smb .smb-prose ol { list-style: decimal; }
.smb .smb-prose ul ul { list-style: circle; }
.smb .smb-prose li { display: list-item; }
.smb .smb-prose li { margin: .35em 0; }
.smb .smb-prose li::marker { color: var(--smb-teal-ink); }
.smb .smb-prose blockquote {
    margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid var(--smb-teal);
    background: var(--smb-soft); border-radius: 0 10px 10px 0; color: var(--smb-ink);
}
.smb .smb-prose blockquote p:last-child { margin-bottom: 0; }
.smb .smb-prose img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 1.6em auto; }
.smb .smb-prose figure { margin: 1.6em 0; }
.smb .smb-prose figure img { margin: 0 auto; }
.smb .smb-prose figcaption { text-align: center; font-size: 14px; color: var(--smb-muted); margin-top: 8px; }
.smb .smb-prose hr { border: 0; border-top: 1px solid var(--smb-line); margin: 2.4em 0; }
.smb .smb-prose .smb-table { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--smb-line); border-radius: 10px; }
.smb .smb-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.smb .smb-prose th, .smb .smb-prose td { padding: 10px 14px; border-bottom: 1px solid var(--smb-line); text-align: left; vertical-align: top; }
.smb .smb-prose th { background: var(--smb-soft); color: var(--smb-ink); font-weight: 700; }
.smb .smb-prose tr:last-child td { border-bottom: 0; }

/* Kod: ana site tüm öğelere Plus Jakarta Sans uyguluyor; kodda eş aralıklı font kalsın */
.smb .smb-prose code, .smb .smb-prose pre, .smb .smb-prose pre *, .smb .smb-prose kbd {
    font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace !important;
}
.smb .smb-prose :not(pre) > code {
    font-size: .88em; padding: .15em .45em; border-radius: 6px; background: #eef2f9; color: #a8155c;
}
.smb .smb-prose pre {
    position: relative; margin: 1.6em 0; padding: 18px 20px; border-radius: 12px; overflow-x: auto;
    background: #0d1b3d; color: #e6edf7; font-size: 14px; line-height: 1.65; tab-size: 4;
}
.smb .smb-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.smb .smb-copy-code {
    position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08); color: #cfd8ea; font-size: 12px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .2s;
}
.smb .smb-prose pre:hover .smb-copy-code, .smb .smb-copy-code:focus { opacity: 1; }

.smb .smb-share {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 22px;
    border-top: 1px solid var(--smb-line); font-weight: 700; color: var(--smb-ink); font-size: 14px;
}
.smb .smb-share a, .smb .smb-share button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-width: 38px; padding: 0 10px;
    border-radius: 10px; border: 1px solid var(--smb-line); background: #fff; color: var(--smb-navy);
    text-decoration: none; cursor: pointer; font-weight: 600; font-size: 13px;
}
.smb .smb-share a:hover, .smb .smb-share button:hover { border-color: var(--smb-navy); background: var(--smb-navy); color: #fff; }
.smb .smb-share svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }

.smb .smb-related { margin-top: 64px; }
.smb .smb-section-title { font-size: 24px; font-weight: 800; color: var(--smb-ink); margin: 0 0 22px; }

/* ----------------------------------------------------------- Responsive */
@media (max-width: 1199px) {
    .smb .smb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .smb .smb-layout { grid-template-columns: minmax(0, 1fr); }
    .smb .smb-sidebar { position: static; }
    .smb .smb-toc--side { display: none; }
    .smb .smb-toc--inline { display: block; margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--smb-line); border-radius: 12px; background: var(--smb-soft); }
    .smb .smb-featured { grid-template-columns: 1fr; }
    .smb .smb-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
    .smb .smb-hero--post .modern-banner-title { font-size: 28px; }
}
@media (max-width: 767px) {
    .smb .smb-section { padding-top: 28px; padding-bottom: 48px; }
    .smb .smb-grid, .smb .smb-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .smb .smb-featured__body { padding: 22px 20px; }
    .smb .smb-featured__title { font-size: 22px; }
    .smb .smb-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -12px; margin-right: -12px; padding: 0 12px 4px; scrollbar-width: none; }
    .smb .smb-chips::-webkit-scrollbar { display: none; }
    .smb .smb-chips .smb-chip { flex: 0 0 auto; }
    .smb .smb-prose { font-size: 16px; }
    .smb .smb-prose h2 { font-size: 23px; }
    .smb .smb-prose h3 { font-size: 19px; }
    .smb .smb-prose pre { margin-left: -12px; margin-right: -12px; border-radius: 0; font-size: 13px; }
    .smb .smb-hero--post .modern-banner-title { font-size: 24px; }
    .smb .smb-copy-code { opacity: 1; }
    .smb .smb-prose pre { padding-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .smb .smb-card, .smb .smb-card__media img { transition: none; }
    .smb .smb-card:hover { transform: none; }
    .smb .smb-card:hover .smb-card__media img { transform: none; }
}

/* Editör hizalama sınıfları */
.smb .smb-prose .text-left { text-align: left; }
.smb .smb-prose .text-center { text-align: center; }
.smb .smb-prose .text-right { text-align: right; }
.smb .smb-prose img.text-center, .smb .smb-prose figure.text-center img { margin-left: auto; margin-right: auto; }
.smb .smb-prose img.text-right { margin-left: auto; margin-right: 0; }
.smb .smb-prose img.text-left { margin-left: 0; margin-right: auto; }
.smb .smb-prose figure.image { display: table; margin-left: auto; margin-right: auto; }
.smb .smb-prose figure.image figcaption { display: table-caption; caption-side: bottom; }
