/* NetOpenX İçerik İyileştirmeleri */

/* Kod blokları için geliştirilmiş styling */
.article-post {
    /* Mevcut kod */
}

/* Kod bloklarına satır numarası ekle */
pre[class*="language-"] {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 2rem 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Line numbers için ek stil */
pre[class*="language-"].line-numbers {
    padding-left: 3.8em;
    counter-reset: linenumber;
}

pre[class*="language-"].line-numbers > code {
    position: relative;
    white-space: inherit;
}

.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    letter-spacing: -1px;
    border-right: 2px solid #40FFDC;
    user-select: none;
    background: rgba(64, 255, 220, 0.1);
}

.line-numbers-rows > span {
    pointer-events: none;
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows > span:before {
    content: counter(linenumber);
    color: #40FFDC;
    display: block;
    padding-right: 0.8em;
    text-align: right;
    font-weight: bold;
}

/* Kod blokları için başlık */
.code-header {
    background: #2d3748;
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    margin-bottom: -2px;
}

.code-header::before {
    content: "📄";
    margin-right: 0.5rem;
}

/* C# kod blokları için özel stil */
.code-header.csharp::before {
    content: "🔷";
}

/* Responsive kod blokları */
@media (max-width: 768px) {
    pre[class*="language-"] {
        margin: 1rem 0;
        border-radius: 8px;
        font-size: 13px;
        overflow-x: auto;
        max-width: 100%;
    }
    
    .code-header {
        margin: 1rem 0 0;
        border-radius: 8px 8px 0 0;
    }
}

/* Genel container düzeltmeleri */
.article-post {
    max-width: 100%;
    overflow-x: hidden;
}

.article-post * {
    max-width: 100%;
    box-sizing: border-box;
}

/* İçerik bölümleri için styling */
.content-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #40FFDC;
}

.content-section h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.content-section h3::before {
    content: "⚡";
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* Parametre listesi için styling */
.param-list {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.param-list h4 {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1.1em;
}

.param-list ul {
    list-style: none;
    padding: 0;
}

.param-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
}

.param-list li:last-child {
    border-bottom: none;
}

.param-name {
    font-weight: 600;
    color: #2b6cb0;
    min-width: 150px;
    margin-right: 1rem;
}

.param-desc {
    color: #4a5568;
    flex: 1;
}

/* Uyarı kutuları */
.alert-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.alert-box.warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-box.info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-box.success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.alert-box::before {
    font-weight: 600;
    margin-right: 0.5rem;
}

.alert-box.warning::before {
    content: "⚠️ Dikkat: ";
}

.alert-box.info::before {
    content: "ℹ️ Bilgi: ";
}

.alert-box.success::before {
    content: "✅ Başarılı: ";
}

/* TOC iyileştirmeleri */
.toc {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    max-width: 100%;
}

.toc h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.toc h4::before {
    content: "📋";
    margin-right: 0.5rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin: 0.5rem 0;
}

.toc a {
    color: #4a5568;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: block;
    transition: all 0.2s;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.toc a:hover {
    background: #e2e8f0;
    color: #2b6cb0;
    text-decoration: none;
}

/* TOC Responsive */
@media (max-width: 768px) {
    .toc {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .toc h4 {
        font-size: 1.1em;
        margin-bottom: 0.5rem;
    }
    
    .toc ul {
        margin: 0;
    }
    
    .toc li {
        margin: 0.25rem 0;
    }
    
    .toc a {
        padding: 0.5rem;
        font-size: 0.9em;
    }
}

/* NetOpenX özel ikonlar */
.netopenx-category .card-title::before {
    content: "🔧";
    margin-right: 0.5rem;
}

/* Kod örneği bölümleri */
.code-example {
    margin: 2rem 0;
}

.code-example-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    margin-bottom: 0;
}

.code-example pre {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
}