/* ==========================================================================
   TYPOGRAPHY.CSS - Entry Content Tipografik Elementler
   ========================================================================== */

/* Entry Content Tipografik Reset ve Base Styles */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 0 0 16px 0;
    padding: 0;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--theme-transition);
}

.entry-content h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}

.entry-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.entry-content h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 12px;
}

.entry-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: 18px;
    margin-bottom: 10px;
}

.entry-content h5 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 16px;
    margin-bottom: 8px;
}

.entry-content h6 {
    font-size: 1rem;
    color: var(--light-text);
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Liste Elementleri - Mobil Optimized */
.entry-content ul,
.entry-content ol {
    margin: 16px 0;
    padding-left: 24px; /* Sol kenara uygun padding */
    line-height: 1.6;
    color: var(--text-color);
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 8px;
    padding-left: 4px; /* Liste marker'dan biraz uzaklık */
    line-height: 1.6;
}

.entry-content li:last-child {
    margin-bottom: 0;
}

/* İç içe listeler */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 8px 0;
    padding-left: 20px;
}

.entry-content ul ul {
    list-style-type: circle;
}

.entry-content ul ul ul {
    list-style-type: square;
}

/* Blockquote Elementleri */
.entry-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--light-text);
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -5px;
    left: 16px;
    line-height: 1;
    opacity: 0.3;
}

.entry-content blockquote p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Text Formatting */
.entry-content strong,
.entry-content b {
    font-weight: 700;
    color: var(--text-color);
}

.entry-content em,
.entry-content i {
    font-style: italic;
    color: var(--light-text);
}

.entry-content code {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

.entry-content pre {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-color);
}

/* Table Elementleri */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.entry-content th,
.entry-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.entry-content th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--primary-color);
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content tr:nth-child(even) {
    background: rgba(241, 248, 233, 0.3);
}

/* Horizontal Rule */
.entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 24px 0;
}

/* ==========================================================================
   MOBİL RESPONSİVE DÜZENLEMELER
   ========================================================================== */

@media (max-width: 768px) {
    /* Typography mobil düzenlemeleri - !important ile güçlendirildi */
    .entry-content h1 {
        font-size: 1.4rem !important;
        margin-bottom: 16px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .entry-content h2 {
        font-size: 1.3rem !important;
        margin-top: 20px !important;
        margin-bottom: 14px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .entry-content h3 {
        font-size: 1.2rem !important;
        margin-top: 18px !important;
        margin-bottom: 12px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .entry-content h4 {
        font-size: 1.1rem !important;
        margin-top: 16px !important;
        margin-bottom: 10px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .entry-content h5 {
        font-size: 1.05rem !important;
        margin-top: 14px !important;
        margin-bottom: 8px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .entry-content h6 {
        font-size: 1rem !important;
        margin-top: 12px !important;
        margin-bottom: 6px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Mobil liste düzenlemeleri - Çözüm */
    .entry-content ul,
    .entry-content ol {
        margin: 14px 0;
        padding-left: 20px !important; /* Mobilde daha az padding */
        margin-left: 0 !important; /* Margin sıfırla */
    }
    
    .entry-content li {
        margin-bottom: 6px;
        padding-left: 6px !important; /* Biraz daha fazla padding */
        margin-left: 0 !important; /* Li margin sıfırla */
        line-height: 1.5;
    }
    
    /* İç içe listeler mobilde */
    .entry-content ul ul,
    .entry-content ol ol,
    .entry-content ul ol,
    .entry-content ol ul {
        margin: 6px 0;
        padding-left: 16px !important;
    }
    
    /* Blockquote mobil */
    .entry-content blockquote {
        margin: 16px 0;
        padding: 12px 16px;
        margin-left: 0 !important;
        padding-left: 16px !important;
    }
    
    .entry-content blockquote::before {
        top: -3px;
        left: 12px;
        font-size: 2.5rem;
    }
    
    /* Table responsive */
    .entry-content table {
        font-size: 0.9rem;
        margin: 12px 0;
    }
    
    .entry-content th,
    .entry-content td {
        padding: 8px 10px;
    }
    
    /* Code mobil */
    .entry-content pre {
        padding: 12px;
        margin: 12px 0;
        font-size: 0.85rem;
        margin-left: 0 !important;
        padding-left: 12px !important;
    }
}

@media (max-width: 480px) {
    /* Çok küçük ekranlar için ekstra düzenlemeler */
    .entry-content h1 {
        font-size: 1.3rem;
    }
    
    .entry-content h2 {
        font-size: 1.2rem;
    }
    
    .entry-content h3 {
        font-size: 1.1rem;
    }
    
    /* Liste elementleri çok küçük ekranlarda */
    .entry-content ul,
    .entry-content ol {
        padding-left: 18px !important;
        margin: 12px 0;
    }
    
    .entry-content li {
        padding-left: 4px !important;
        margin-bottom: 5px;
    }
    
    /* İç içe listeler çok küçük ekranlarda */
    .entry-content ul ul,
    .entry-content ol ol,
    .entry-content ul ol,
    .entry-content ol ul {
        padding-left: 14px !important;
    }
    
    /* Blockquote çok küçük ekranlarda */
    .entry-content blockquote {
        padding: 10px 12px;
        margin: 12px 0;
    }
    
    /* Table çok küçük ekranlarda */
    .entry-content table {
        font-size: 0.85rem;
    }
    
    .entry-content th,
    .entry-content td {
        padding: 6px 8px;
    }
}

/* ==========================================================================
   PARAGRAPH SPACING DÜZELTMELERİ
   ========================================================================== */

/* Entry content paragraf düzenlemeleri */
.entry-content p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: var(--text-color);
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* Mobil paragraf düzenlemeleri */
@media (max-width: 768px) {
    .entry-content p {
        margin: 0 0 14px 0 !important;
        padding-left: 0 !important; /* Problemli padding'i sıfırla */
        margin-left: 0 !important; /* Problemli margin'i sıfırla */
        line-height: 1.6;
    }
}

/* ==========================================================================
   LİNK STİLLERİ - ENTRY CONTENT İÇİNDE
   ========================================================================== */

.entry-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: var(--transition);
    padding: 1px 2px;
    border-radius: 2px;
}

.entry-content a:hover {
    color: var(--secondary-color);
    border-bottom-style: solid;
    background: var(--primary-5);
}

.entry-content a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
