/* Blog İçerik Stilleri */
.blog-content-body .prose {
    line-height: 1.2;
    color: #374151;
    font-size: 1.1rem;
}

/* Excerpt (Özet) Kutusu */
.blog-excerpt-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid #059669;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}

.blog-excerpt {
    font-size: 1.25rem !important;
    line-height: 1.7 !important;
    color: #1f2937 !important;
    font-style: italic;
    margin-bottom: 0 !important;
    font-weight: 500;
    text-align: left !important;
}

.blog-excerpt::before {
    content: '📝 ';
    margin-right: 0.5rem;
}

/* Başlıklar */
.blog-content-body .prose h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    border-bottom: 3px solid #059669;
    padding-bottom: 0.75rem;
}

.blog-content-body .prose h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    position: relative;
    padding-left: 1rem;
}

.blog-content-body .prose h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #059669, #34d399);
    border-radius: 2px;
}

.blog-content-body .prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content-body .prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content-body .prose h5,
.blog-content-body .prose h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Paragraflar */
.blog-content-body .prose p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
    line-height: 1.2;
}


/* Strong ve Bold */
.blog-content-body .prose strong,
.blog-content-body .prose b {
    font-weight: 700;
    color: #1f2937;
}

/* Em ve Italic */
.blog-content-body .prose em,
.blog-content-body .prose i {
    font-style: italic;
    color: #059669;
}

/* Listeler */
.blog-content-body .prose ul,
.blog-content-body .prose ol {
    margin: 1.5rem 0;
    padding-left: 0;
}

.blog-content-body .prose ul {
    list-style: none;
}

.blog-content-body .prose ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.blog-content-body .prose ul li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #059669, #34d399);
    border-radius: 50%;
}

.blog-content-body .prose ol {
    counter-reset: list-counter;
}

.blog-content-body .prose ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    counter-increment: list-counter;
}

.blog-content-body .prose ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #059669, #34d399);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* İç içe listeler */
.blog-content-body .prose ul ul,
.blog-content-body .prose ol ol,
.blog-content-body .prose ul ol,
.blog-content-body .prose ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.blog-content-body .prose ul ul li::before {
    width: 6px;
    height: 6px;
    background: #6b7280;
}

/* Blockquote */
.blog-content-body .prose blockquote {
    border-left: 4px solid #059669;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #1f2937;
    position: relative;
}

.blog-content-body .prose blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: #059669;
    opacity: 0.3;
    font-family: serif;
}

.blog-content-body .prose blockquote p {
    margin-bottom: 0;
}

/* Code */
.blog-content-body .prose code {
    background: #f3f4f6;
    color: #e11d48;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border: 1px solid #e5e7eb;
}

.blog-content-body .prose pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #374151;
}

.blog-content-body .prose pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Tablolar - Ultra Minimal ve Temiz */
.blog-content-body .prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border: none;
    background: transparent !important;
}

.blog-content-body .prose thead {
    border-bottom: 2px solid #d1d5db;
    background: transparent !important;
}

.blog-content-body .prose thead tr {
    background: transparent !important;
}

.blog-content-body .prose th {
    padding: 0.5rem 1rem;
    text-align: left;
    border: none;
    background: transparent !important;
    color: #111827 !important;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.blog-content-body .prose tbody {
    background: transparent !important;
}

.blog-content-body .prose tbody tr {
    background: transparent !important;
}

.blog-content-body .prose td {
    padding: 0.5rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    background: transparent !important;
    color: #374151;
    line-height: 1.4;
}

.blog-content-body .prose tbody tr:last-child td {
    border-bottom: none;
}


/* Linkler */
.blog-content-body .prose a {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.blog-content-body .prose a:hover {
    color: #047857;
    border-bottom-color: #059669;
}

/* Görsellerinne içerik içinde */
.blog-content-body .prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-content-body .prose img:hover {
    transform: scale(1.02);
}

/* Horizontal Rule */
.blog-content-body .prose hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #059669, transparent);
    margin: 3rem 0;
}

/* Vurgu kutuları */
.blog-content-body .prose .highlight-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.blog-content-body .prose .info-box {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.blog-content-body .prose .warning-box {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* =============================================
   TOC (İçindekiler)
   SADECE .toc-box ve .toc-wrapper etkiler,
   .blog-content-body dışında tutulmuştur.
   ============================================= */

.toc-box {
    background-color: #f8f9fa;
    border-color: #dee2e6 !important;
}

.toc-toggle-btn {
    background: #ffffff;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
}

.toc-toggle-btn:hover {
    background-color: rgba(5, 150, 105, 0.05) !important;
}

.toc-icon {
    color: #059669;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* İçerik wrapper – tüm override'lar burada */
.toc-wrapper * {
    box-sizing: border-box;
}

.toc-wrapper ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.toc-wrapper li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* prose'un ekleyebileceği ::before bullet'larını iptal et */
.toc-wrapper li::before {
    display: none !important;
    content: none !important;
}

/* Boş span'leri gizle (library artifact) */
.toc-wrapper li > span:empty {
    display: none;
}

/* Ana seviye – H2 */
.toc-wrapper > ul > li > ul > li > a,
.toc-wrapper .menu_level_1 > li > a {
    display: block;
    padding: 0.5rem 1rem;
    color: #111827;
    font-weight: 600;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    border-bottom: none !important;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
}

.toc-wrapper > ul > li > ul > li > a:hover,
.toc-wrapper .menu_level_1 > li > a:hover {
    color: #059669;
    background-color: rgba(5, 150, 105, 0.07);
    border-left-color: #059669;
    padding-left: 1.25rem;
    border-bottom: none !important;
}

/* Alt seviye – H3 */
.toc-wrapper .menu_level_2 {
    padding-left: 1.25rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.375rem !important;
}

.toc-wrapper .menu_level_2 > li > a {
    display: block;
    padding: 0.375rem 1rem;
    color: #374151;
    font-weight: 500;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    border-bottom: none !important;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.2rem 0;
    border-radius: 0.375rem;
}

.toc-wrapper .menu_level_2 > li > a:hover {
    color: #059669;
    background-color: rgba(5, 150, 105, 0.07);
    border-left-color: rgba(5, 150, 105, 0.6);
    padding-left: 1.25rem;
    border-bottom: none !important;
}

/* Alt seviye – H4 */
.toc-wrapper .menu_level_3 {
    padding-left: 1.25rem !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
}

.toc-wrapper .menu_level_3 > li > a {
    display: block;
    padding: 0.3rem 1rem;
    color: #4b5563;
    font-weight: 400;
    text-decoration: none !important;
    border-left: 2px solid transparent;
    border-bottom: none !important;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    line-height: 1.4;
    border-radius: 0.375rem;
}

.toc-wrapper .menu_level_3 > li > a:hover {
    color: #059669;
    background-color: rgba(5, 150, 105, 0.07);
    border-left-color: rgba(5, 150, 105, 0.4);
    padding-left: 1.125rem;
    border-bottom: none !important;
}

/* Aktif bağlantı (scroll takibi) */
.toc-wrapper a.active {
    color: #059669 !important;
    background-color: rgba(5, 150, 105, 0.1) !important;
    border-left-color: #059669 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-content-body .prose {
        font-size: 1rem;
    }

    .blog-excerpt-box {
        padding: 1.25rem 1.5rem;
        margin-bottom: 2rem;
    }

    .blog-excerpt {
        font-size: 1.1rem !important;
    }

    .blog-content-body .prose h1 {
        font-size: 2rem;
    }

    .blog-content-body .prose h2 {
        font-size: 1.7rem;
    }

    .blog-content-body .prose h3 {
        font-size: 1.4rem;
    }

    .blog-content-body .prose ul li,
    .blog-content-body .prose ol li {
        padding-left: 1.5rem;
    }

    .blog-content-body .prose blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }

    /* Tablo responsive - horizontal scroll */
    .blog-content-body .prose table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog-content-body .prose th,
    .blog-content-body .prose td {
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        line-height: 1.4;
    }
}
