/* ─────────────────────────────────────────
   BLOG V3 — Psikoloji Türkiye
   Inspired by Finder Theme, Adapted to Project Design
   ───────────────────────────────────────── */

:root {
    --fn-aspect-ratio: 50%;
}

.blog-v3-header {
    padding-top: 100px;
    /* Space for fixed nav */
    padding-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 1rem;
    list-style: none;
    font-size: 0.85rem;
}

.breadcrumb-item+.breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    color: var(--ink3);
    content: "›";
}

.breadcrumb-item a {
    color: var(--ink3);
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--brand);
}

.breadcrumb-item.active {
    color: var(--ink);
    font-weight: 600;
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink3);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.post-meta .author-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--ink);
}

.post-meta .author-link img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.bullet-sep {
    font-style: normal;
    opacity: 0.4;
}

.badge-cat {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.35em 0.8em;
    border-radius: 100px;
    background: var(--bg2);
    color: var(--brand);
    text-decoration: none;
    transition: all 0.2s;
}

.badge-cat:hover {
    background: var(--brand);
    color: #fff;
}

/* Main Image */
.main-post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg2);
    margin-bottom: 3rem;
    box-shadow: 0 20px 50px rgba(26, 10, 46, 0.1);
}

.main-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layout Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Content Area */
.post-content {
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--ink);
}

.post-content h2,
.post-content h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--ink);
    margin: 2.5rem 0 1.25rem;
    font-weight: 800;
}

.post-content h2 {
    font-size: 1.75rem;
}

.post-content h3 {
    font-size: 1.4rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--brand);
    background: var(--bg2);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.25rem;
    border-radius: 0 16px 16px 0;
    color: var(--ink2);
}

.post-content blockquote footer {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand);
    font-style: normal;
}

/* ---  İçindekiler (TOC)  --- */

.toc-box {
    position: relative;
    background: linear-gradient(135deg, #faf8ff 0%, #f3eeff 100%);
    border: 1.5px solid #e0d0ff;
    border-radius: 24px;
    padding: 1.6rem 1.8rem;
    margin: 2.5rem 0;
    max-width: 100%;
}

/* Sidebar içindeyken standart kutu stiline bürün */
.sidebar .toc-box {
    background: #fff;
    border: 1px solid var(--bg3);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 2.5rem;
    box-shadow: none;
}

.sidebar .toc-box::before { display: none; } /* Yan süsü kaldır */

.sidebar .toc-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1.1rem;
}

.sidebar .toc-header::before {
    display: none; /* Sidebar-box h4 stiline yaklaştırmak için */
}

.sidebar .toc-toggle {
    background: var(--bg2);
    border: 1px solid var(--bg3);
}

.sidebar .toc-item {
    font-size: 0.88rem;
    padding: 0.5rem 0.6rem;
}

/* Arkaplan dekor */
.toc-box::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(155, 0, 255, .12), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1.5px solid rgba(155, 0, 255, .15);
    letter-spacing: -.01em;
}

/* Sol mor çizgi */
.toc-header::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #9b00ff, #c266ff);
    border-radius: 4px;
    flex-shrink: 0;
}

/* Başlık metni sola yaslı kalsın, buton sağa gitsin */
.toc-header span {
    flex: 1;
}

/* Aç/kapat butonu */
.toc-toggle {
    margin-left: auto;
    background: rgba(155, 0, 255, .08);
    border: 1.5px solid rgba(155, 0, 255, .2);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9b00ff;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
    padding: 0;
}

.toc-toggle:hover {
    background: rgba(155, 0, 255, .16);
    border-color: rgba(155, 0, 255, .4);
}

.toc-chevron {
    display: block;
    transition: transform 0.3s ease;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
    /* max-height ve opacity JS tarafından yönetilir */
}

.toc-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .6rem .65rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink2, #4a2870);
    font-size: .92rem;
    font-weight: 600;
    transition: background .18s, color .18s, transform .18s;
    line-height: 1.3;
}

.toc-item:hover {
    background: rgba(155, 0, 255, .08);
    color: #7b00cc;
    transform: translateX(3px);
}

.toc-item.active {
    background: linear-gradient(90deg, rgba(155, 0, 255, .13), rgba(155, 0, 255, .04));
    color: #7b00cc;
    font-weight: 700;
}

/* Numara balonu */
.toc-number {
    width: 26px;
    height: 26px;
    background: white;
    color: #9b00ff;
    border: 1.5px solid rgba(155, 0, 255, .25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 900;
    flex-shrink: 0;
    transition: background .18s, color .18s, border-color .18s;
    font-family: 'Outfit', sans-serif;
}

.toc-item:hover .toc-number,
.toc-item.active .toc-number {
    background: #9b00ff;
    color: #fff;
    border-color: #9b00ff;
}

/* Başlık metni */
.toc-text {
    flex: 1;
}

/* Sağ ok ikonu — hover/aktif durumda görünür */
.toc-arrow {
    opacity: 0;
    flex-shrink: 0;
    transition: opacity .18s, transform .18s;
    transform: translateX(-4px);
}

.toc-item:hover .toc-arrow,
.toc-item.active .toc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* H2 alt başlık (isteğe bağlı, eski uyumluluk) */
.toc-h2 {
    padding-left: 1.2rem;
    font-size: .87em;
    opacity: .87;
    font-weight: 500;
}

/* H3 daha alt başlık */
.toc-h3 {
    padding-left: 2.2rem;
    font-size: .82em;
    opacity: .72;
    font-weight: 400;
}


/* 2. Bilgi / Araştırma Kutusu */
.info-card {
    background: #fff;
    border: 1px solid var(--bg3);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--bg2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
    font-size: 1.25rem;
}

.info-body {
    flex-grow: 1;
}

.info-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.info-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    margin: 0;
}

.info-text strong {
    color: var(--brand-dark);
}

/* 3. Horizontal Table of Contents (SEO Uyumlu) */
.toc-horizontal {
    background: #f8f6ff;
    /* Hafif morumsu arka plan */
    border: 1px solid #eee5ff;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    display: none;
    /* JS ile doldurulunca görünecek */
}

.toc-horizontal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand);
    letter-spacing: 0.05em;
}

.toc-horizontal-header::before {
    content: '';
    width: 3px;
    height: 15px;
    background: var(--brand);
    border-radius: 2px;
}

.toc-horizontal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* İki sütun */
    gap: 1rem 2rem;
}

@media (max-width: 768px) {
    .toc-horizontal-grid {
        grid-template-columns: 1fr;
    }
}

.toc-horizontal-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.2s;
}

.toc-horizontal-item:hover {
    color: var(--brand);
    transform: translateX(4px);
}

.toc-horizontal-num {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--ink3);
    flex-shrink: 0;
}

.toc-horizontal-item:hover .toc-horizontal-num {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* 4. Yazar Hakkında (Alt Kısım) */
.post-author-bio {
    background: #fff;
    border: 1px solid var(--bg3);
    border-radius: 24px;
    padding: 2rem;
    margin: 4rem 0 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 600px) {
    .post-author-bio {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.bio-avatar-box {
    width: 80px;
    height: 80px;
    background: var(--brand);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(155, 0, 255, 0.2);
}

.bio-body {
    flex-grow: 1;
}

.bio-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.bio-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--ink);
}

.bio-titles {
    font-size: 0.9rem;
    color: var(--ink3);
    margin-bottom: 1.25rem;
}

.bio-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink2);
    margin-bottom: 1.5rem;
}

.bio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--brand);
    text-decoration: none;
    transition: opacity 0.2s;
}

.bio-link:hover {
    opacity: 0.8;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-box {
    margin-bottom: 2.5rem;
}

.sidebar-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-box h4::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--brand);
    border-radius: 4px;
}

.author-widget {
    background: var(--white);
    border: 1px solid var(--bg3);
    padding: 1.25rem;
    border-radius: 20px;
}

.author-widget div,
.author-widget img {
    margin-bottom: 0.75rem !important;
}

.author-widget h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.author-widget p {
    font-size: 0.85rem;
    color: var(--ink3);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

/* Related Articles List */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
}

.related-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-item:hover .related-thumb img {
    transform: scale(1.1);
}

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-info h6 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-info span {
    font-size: 0.75rem;
    color: var(--ink3);
}

/* Bottom Carousel Section */
.also-read-section {
    padding: 5rem 0;
    border-top: 1px solid var(--bg3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--ink);
    transition: all 0.2s;
}

.control-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.tag-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink2);
    background: var(--bg);
    border: 1px solid var(--bg3);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--bg2);
}

/* Swiper overrides for premium feel */
.swiper-slide {
    height: auto;
}

.blog-card-v3 {
    background: var(--white);
    border: 1px solid var(--bg3);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card-v3:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(155, 0, 255, 0.1);
    border-color: var(--brand-light);
}

.card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.card-footer {
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--bg3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--ink3);
}

/* ─── Özet paragraf (post-excerpt) ─── */
.post-excerpt {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink2);
    border-left: 3px solid var(--brand);
    padding: .5rem 0 .5rem 1.25rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.toc-item:hover .toc-number,
.toc-item.active .toc-number {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ─── Önerilen Yazılar Bölümü ─── */
.onerilen-yazilar-section {
    padding: 5rem 0 4rem;
    border-top: 1px solid var(--bg3);
    background: var(--bg);
}

.onerilen-header {
    text-align: center;
    margin-bottom: 3rem;
}

.onerilen-badge {
    display: inline-block;
    background: var(--bg2);
    color: var(--brand);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .35rem 1rem;
    border-radius: 100px;
    margin-bottom: .85rem;
}

.onerilen-baslik {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 .5rem;
    line-height: 1.15;
}

.onerilen-baslik em {
    font-style: normal;
    color: var(--brand);
}

.onerilen-desc {
    font-size: .95rem;
    color: var(--ink3);
    margin: 0;
}

.onerilen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .onerilen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .onerilen-grid {
        grid-template-columns: 1fr;
    }
}

.onerilen-kart {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1.5px solid var(--bg3);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all .3s;
}

.onerilen-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(155, 0, 255, .1);
    border-color: #c266ff;
}

.onerilen-kart-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg2);
}

.onerilen-kart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.onerilen-kart:hover .onerilen-kart-img img {
    transform: scale(1.05);
}

.onerilen-kart-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--brand);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: .25rem .65rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.onerilen-kart-body {
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.onerilen-kart-baslik {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .6rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.onerilen-kart-ozet {
    font-size: .83rem;
    color: var(--ink3);
    line-height: 1.5;
    margin: 0 0 1rem;
    flex: 1;
}

.onerilen-kart-meta {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--ink3);
    border-top: 1px solid var(--bg3);
    padding-top: .75rem;
    margin-top: auto;
}