/* =========================
   01 - Reading Progress
========================= */

.reading-progress {
    position: fixed;
    top: 74px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    z-index: 80;
}


/* =========================
   02 - Article Hero
========================= */

.article-container {
    width: 100%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.article-hero {
    padding: 34px 0 22px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.article-category {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--primary);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.article-hero h1 {
    max-width: 880px;
    margin: 0;
    color: var(--title);
    font-size: 42px;
    line-height: 1.1;
    font-weight: 550;
    letter-spacing: -.04em;
}

.article-summary {
    max-width: 760px;
    margin: 15px 0 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    color: var(--primary);
    font-size: 14px;
    line-height: 1;
}


/* =========================
   03 - Cover Image
========================= */

.article-cover-section {
    padding: 8px 0 30px;
}

.article-cover-container {
    max-width: 1080px;
}

.article-cover {
    width: 100%;
    max-height: 540px;
    display: block;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 20px;
}


/* =========================
   04 - Article Layout
========================= */

.article-section {
    padding: 8px 0 36px;
}

.article-layout {
    display: block;
    width: 100%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.article-main {
    width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}


/* =========================
   05 - İçindekiler
========================= */

.toc-box {
    width: 100%;
    margin: 0 auto 34px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #faf9fc;
}

.toc-box h2 {
    margin: 0 0 14px;
    color: var(--title);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 550;
}

.toc-list {
    display: grid;
    gap: 8px;
}

.toc-box a {
    display: block;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
}

.toc-box a:hover {
    color: var(--primary);
}

.toc-box .toc-level-3 {
    padding-left: 18px;
    color: var(--muted);
    font-size: 12.5px;
}


/* =========================
   06 - Article Content
========================= */

.article-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    color: #2c2935;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    font-weight: 400;
}

/*
| Copy-paste ile gelen inline font tanımlarını normalize eder.
*/
.article-content p,
.article-content span,
.article-content div,
.article-content li,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content strong,
.article-content em,
.article-content b,
.article-content i {
    font-family: 'Outfit', sans-serif !important;
}

.article-content p,
.article-content span,
.article-content div,
.article-content li {
    font-size: inherit !important;
    line-height: inherit !important;
}

.article-content h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 42px 0 17px;
    color: var(--title);
    font-family: 'Outfit', sans-serif !important;
    font-size: 29px !important;
    line-height: 1.22 !important;
    font-weight: 550 !important;
    letter-spacing: -.035em;
}

.article-content h2::before {
    content: "";
    flex: 0 0 5px;
    width: 5px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--danger), var(--primary));
}

.article-content h3 {
    margin: 32px 0 13px;
    color: var(--title);
    font-family: 'Outfit', sans-serif !important;
    font-size: 23px !important;
    line-height: 1.3 !important;
    font-weight: 550 !important;
    letter-spacing: -.025em;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(138, 80, 252, .28);
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 22px 24px;
    border-left: 5px solid var(--primary);
    border-radius: 0 16px 16px 0;
    background: var(--primary-soft);
    color: var(--title);
    font-size: 18px;
    line-height: 1.7;
}

.article-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 28px 0;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.article-content h2,
.article-content h3 {
    scroll-margin-top: 105px;
}


/* =========================
   07 - Share
========================= */

.article-share {
    width: 100%;
    max-width: none;
    margin: 38px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-share > span {
    margin-right: 6px;
    color: var(--title);
    font-size: 13px;
    font-weight: 550;
}

.article-share a {
    min-height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    text-decoration: none;
    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.article-share a:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}


/* =========================
   08 - Author Box
========================= */

.article-author-section {
    padding: 4px 0 34px;
}

.editor-box {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(138, 80, 252, .14),
            transparent 22%
        ),
        var(--primary-soft);
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.editor-avatar {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 500;
    overflow: hidden;
}

.editor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-box span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.editor-box h3 {
    margin: 6px 0 8px;
    color: var(--title);
    font-size: 20px;
    font-weight: 550;
}

.editor-box p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   09 - Related
========================= */

.related-section {
    padding: 26px 0 42px;
}

.related-section > .container {
    width: 100%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.related-section .home-section-head {
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 252px));
    justify-content: center;
    gap: 18px;
}

.related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 80, 252, .35);
    box-shadow: 0 12px 28px rgba(26, 18, 44, .05);
}

.related-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 18%,
            rgba(138, 80, 252, .16),
            transparent 34%
        ),
        var(--primary-soft);
}

.related-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.025);
}

.related-body {
    padding: 16px 16px 17px;
}

.related-body h3 {
    margin: 0 0 10px;
    color: var(--title);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 550;
    letter-spacing: -.015em;
}

.related-body small {
    color: var(--muted);
    font-size: 11px;
}


/* =========================
   10 - Responsive
========================= */

@media (max-width: 1050px) {

    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 252px));
    }

}

@media (max-width: 680px) {

    .article-container,
    .article-layout {
        width: 100%;
    }

    .reading-progress {
        top: 66px;
    }

    .article-hero {
        padding: 28px 0 20px;
    }

    .article-hero h1 {
        font-size: 31px;
    }

    .article-summary {
        font-size: 15px;
    }

    .article-meta {
        gap: 10px 16px;
        font-size: 12px;
    }

    .article-cover {
        border-radius: 16px;
    }

    .toc-box {
        padding: 18px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.82;
    }

    .article-content h2 {
        font-size: 24px !important;
    }

    .article-content h3 {
        font-size: 20px !important;
    }

    .article-share {
        margin-top: 30px;
    }

    .editor-box {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .related-card {
        width: 100%;
    }

}
