/* ============================================================
   article.css — Alt klasördeki makale sayfaları için
   Kullanım: <link rel="stylesheet" href="../article.css">
   Bu dosya style.css'e ek olarak yüklenir, onu ezmez.
   ============================================================ */

/* --- HEADER: Siyah zemin + beyaz logo --- */
.main-header {
    background-color: #0a0a0a;
}

/* --- ANA İÇERİK ALANI --- */
/* archive-main ile aynı padding → başlık hizası eşit */
.article-content {
    background-color: #f4f7f8;
    padding: 60px 0 100px 0;
    min-height: 70vh;
}

/* --- METİN BLOĞU: Sağ kenar header nav sağ kenarıyla hizalı --- */
/* !important: style.css'teki * { padding: 0 } kuralını ezmek için gerekli */
.article-text {
    width: 100%;
    padding-right: 18% !important;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* --- BAŞLIK: .page-title zaten style.css'te tanımlı, burada sadece bottom margin --- */
.article-text .page-title {
    margin-bottom: 40px;
}

/* --- H2: Mor sol çizgili bölüm başlıkları --- */
.article-text h2 {
    color: #0a0a0a;
    margin: 30px 0 15px 0;
    border-left: 6px solid #7d31ff;
    padding-left: 12px;
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

/* --- H3: Alt başlıklar --- */
.article-text h3 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
    font-weight: 700;
    font-size: 1.15rem;
}

/* --- PARAGRAFLAR --- */
.article-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

/* --- LİSTELER --- */
.article-text ul,
.article-text ol {
    margin: 15px 0 15px 20px;
    line-height: 1.8;
}
.article-text li {
    margin-bottom: 8px;
    color: #444;
}

/* --- ALINTI BLOK --- */
.article-text blockquote {
    border-left: 4px solid #7d31ff;
    padding: 15px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* --- KOD --- */
.article-text code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

/* --- YAN YANA GÖRSEL BLOĞU --- */
.image-flex-container {
    display: flex;
    gap: 20px;
    margin: 25px 0 30px 0;
    align-items: flex-start;
}
.article-image-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.article-image-box img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    transition: transform 0.3s ease;
}
.article-image-box img:hover {
    transform: scale(1.02);
}
.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

/* --- KARŞILAŞTIRMA TABLOSU --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.comparison-table th {
    background-color: #7d31ff;
    color: #ffffff;
    padding: 12px;
    text-align: left;
    font-weight: 700;
    border: 1px solid #7d31ff;
}
.comparison-table td {
    border: 1px solid #e1e8ed;
    padding: 12px;
    background-color: #ffffff;
}
.comparison-table tbody tr:nth-child(even) { background-color: #f8f9fa; }
.comparison-table tbody tr:hover { background-color: #f0e6ff; }

/* --- GERİ DÖN BUTONU --- */
.back-nav {
    display: inline-flex;
    align-items: center;
    margin-top: 40px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    color: #7d31ff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.back-nav i { margin-right: 8px; }
.back-nav:hover {
    background-color: #7d31ff;
    color: #ffffff;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(125, 49, 255, 0.2);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .article-text {
        padding-right: 0 !important;
    }
    .article-content { padding: 40px 0 60px 0; }
    .image-flex-container { flex-direction: column; }
    .article-image-box { min-width: 100%; }
    .article-image-box img { max-height: 300px; }
    .comparison-table { font-size: 0.85rem; }
    .comparison-table th, .comparison-table td { padding: 8px; }
    .article-text h2 { font-size: 1.1rem; }
    .article-text h3 { font-size: 1rem; }
}
@media (max-width: 480px) {
    .article-text { font-size: 1rem; }
    .article-image-box img { max-height: 200px; }
    .back-nav { width: 100%; justify-content: center; }
    .article-text h2 { font-size: 1rem; margin: 20px 0 10px 0; }
}
