/* ============================================
   BLOG SAYFALARI STİLLERİ
   Medium/Substack tarzı okuma deneyimi
   ============================================ */

/* Blog Sayfası Genel Yapı */
.blog-page {
    padding-top: calc(var(--header-height) + 40px);
    min-height: 100vh;
    background-color: var(--bg-primary);
}

/* Breadcrumb */
.blog-breadcrumb {
    padding: 1rem 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.blog-breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: var(--primary-color);
}

.blog-breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
    opacity: 0.4;
}

.blog-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   BLOG LİSTELEME SAYFASI
   ============================================ */
.blog-hero {
    text-align: center;
    padding: 2.5rem 0 3rem;
}

.blog-hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.blog-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Blog Kart Grid */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.blog-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card-meta i {
    margin-right: 0.3rem;
    color: var(--primary-color);
    font-size: 0.72rem;
}

.blog-card-body h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-body h2 {
    color: var(--primary-color);
}

.blog-card-body .blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.2rem;
    flex: 1;
}

.blog-card-body .blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.88rem;
    transition: gap 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.blog-card:hover .blog-read-more {
    gap: 0.8rem;
}

/* ============================================
   BLOG YAZI SAYFASI (ARTICLE)
   Kitap/Dergi okuma deneyimi
   ============================================ */
.blog-article-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 5rem;
}

/* === Başlık Alanı === */
.blog-article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: none;
    text-align: center;
}

.blog-article-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    letter-spacing: 0.02em;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-article-meta i {
    margin-right: 0.35rem;
    color: var(--primary-color);
    font-size: 0.78rem;
}

/* === Makale İçerik === */
.blog-article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* İlk paragraf — drop cap efekti ve daha büyük giriş */
.blog-article-content > p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.blog-article-content > p:first-of-type::first-letter {
    font-size: 3.2rem;
    font-weight: 800;
    float: left;
    line-height: 1;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: var(--primary-color);
}

/* H2 — Bölüm başlığı, numara efektli */
.blog-article-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding: 0;
    border-bottom: none;
    display: block;
    position: relative;
    padding-left: 1rem;
    letter-spacing: -0.02em;
}

.blog-article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color, var(--primary-color)));
    border-radius: 4px;
}

/* H3 — Alt başlık */
.blog-article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

/* Paragraflar */
.blog-article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.blog-article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Listeler — daha geniş alan ve görsel işaretler */
.blog-article-content ul,
.blog-article-content ol {
    margin: 1.2rem 0 1.8rem 0;
    padding-left: 0;
    color: var(--text-secondary);
    list-style: none;
}

.blog-article-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    padding-left: 1.8rem;
    position: relative;
}

.blog-article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
}

.blog-article-content ol {
    counter-reset: blog-counter;
}

.blog-article-content ol li {
    counter-increment: blog-counter;
}

.blog-article-content ol li::before {
    content: counter(blog-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* === Info Box — Premium callout kutusu === */
.blog-info-box {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.06), rgba(76, 201, 240, 0.04));
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1.4rem 1.6rem;
    margin: 2rem 0;
    position: relative;
}

.blog-info-box::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -12px;
    left: 16px;
    background: var(--primary-color);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.blog-info-box p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.75;
}

.blog-info-box p:last-child {
    margin-bottom: 0;
}

/* === Paragraflar arası bölüm ayırıcı (h2'den önce) === */
.blog-article-content h2 + p,
.blog-article-content h3 + p {
    margin-top: 0;
}

/* ============================================
   FAQ BÖLÜMÜ (Yazı İçi)
   ============================================ */
.blog-faq-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
}

.blog-faq-section h2 {
    display: block;
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-left: 0;
    text-align: center;
}

.blog-faq-section h2::before {
    display: none;
}

.blog-faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(67, 97, 238, 0.08);
}

.blog-faq-question {
    padding: 1.1rem 1.3rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.blog-faq-question h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.45;
}

.blog-faq-toggle {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.blog-faq-item.active .blog-faq-toggle {
    transform: rotate(45deg);
}

.blog-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.3rem;
}

.blog-faq-item.active .blog-faq-answer {
    max-height: 500px;
    padding: 0 1.3rem 1.1rem;
}

.blog-faq-answer p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ============================================
   CTA BÖLÜMÜ (Premium & Dönüşüm Odaklı)
   ============================================ */
.blog-cta-section {
    margin-top: 4rem;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border-radius: var(--border-radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(58, 12, 163, 0.2);
}

.blog-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.blog-cta-section h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.blog-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 16px 36px;
    background-color: #ffffff;
    color: #4361ee !important;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.blog-cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: #f8f9fa;
    color: #3a0ca3 !important;
}

.blog-cta-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.blog-cta-btn:hover i {
    transform: translateX(5px);
}

/* ============================================
   İLGİLİ YAZILAR
   ============================================ */
.blog-related-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
}

.blog-related-section h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.blog-related-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

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

.blog-related-card h4 {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.45;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-related-card:hover h4 {
    color: var(--primary-color);
}

.blog-related-card span {
    font-size: 0.76rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .blog-page {
        padding-top: calc(var(--header-height) + 20px);
    }

    .blog-hero h1 {
        font-size: 1.7rem;
    }

    .blog-hero p {
        font-size: 0.95rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .blog-article-wrapper {
        padding: 0 16px 4rem;
    }

    .blog-article-header h1 {
        font-size: 1.65rem;
    }

    .blog-article-content {
        font-size: 1.05rem;
    }

    .blog-article-content > p:first-of-type {
        font-size: 1.1rem;
    }

    .blog-article-content > p:first-of-type::first-letter {
        font-size: 2.8rem;
    }

    .blog-article-content h2 {
        font-size: 1.35rem;
        margin-top: 2.5rem;
    }

    .blog-article-content h3 {
        font-size: 1.1rem;
    }

    .blog-cta-section {
        padding: 1.5rem;
    }

    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    /* Tablo Mobilde Kaydırma */
    .blog-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 2rem -1rem;
        padding: 0 1rem;
    }

    .blog-comparison-table th, 
    .blog-comparison-table td {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
        min-width: 140px;
    }
}

/* ============================================
   KARŞILAŞTIRMA TABLOLARI (AIO Odaklı)
   ============================================ */
.blog-table-wrapper {
    margin: 2.5rem 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.blog-comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--bg-secondary);
    font-size: 0.95rem;
}

.blog-comparison-table thead th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--primary-color);
}

[data-theme="light"] .blog-comparison-table thead th {
    background-color: #f8f9fa;
    color: #121212;
}

.blog-comparison-table tbody td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
}

.blog-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.blog-comparison-table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.03);
}

.blog-comparison-table .feature-name {
    font-weight: 600;
    color: var(--text-primary);
    width: 30%;
}

.blog-comparison-table .status-yes {
    color: #2ec4b6;
    font-weight: 700;
}

.blog-comparison-table .status-no {
    color: #e71d36;
    font-weight: 500;
    opacity: 0.8;
}

.blog-comparison-table .highlight-cell {
    background-color: rgba(67, 97, 238, 0.05);
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.45rem;
    }

    .blog-article-header {
        text-align: left;
    }

    .blog-article-header h1 {
        font-size: 1.4rem;
    }

    .blog-article-meta {
        justify-content: flex-start;
        gap: 1rem;
    }

    .blog-article-content {
        font-size: 1rem;
        line-height: 1.85;
    }

    .blog-article-content > p:first-of-type::first-letter {
        font-size: 2.5rem;
    }

    .blog-article-content h2 {
        font-size: 1.25rem;
    }

    .blog-card-body {
        padding: 1.2rem;
    }

    .blog-article-wrapper {
        padding: 0 12px 3rem;
    }

    .blog-cta-section {
        padding: 1.2rem;
    }

    .blog-cta-btn {
        width: 100%;
        text-align: center;
    }
}
