/* ============================================
   YuHaber Editör İçerik Stilleri
   Haber detay sayfasında editör bloklarının render'ı
   ============================================ */

/* --- Bilgi Kutuları --- */
.info-box {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.7;
}
.info-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05em;
}
.info-box-info {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
}
.info-box-warning {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
}
.info-box-danger {
    background: #fde8e8;
    border-left: 4px solid #f44336;
}
.info-box-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

/* --- İlgili Haber Kartı --- */
.related-news-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
    background: #fafafa;
    transition: box-shadow .2s, transform .2s;
}
.related-news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.related-news-card strong {
    color: var(--tg-primary-color, #e74e33);
    font-size: 0.85em;
    letter-spacing: 0.5px;
}
.related-news-card a {
    color: #1a73e8;
    font-weight: 600;
    font-size: 1.05em;
    text-decoration: none;
    transition: color .2s;
}
.related-news-card a:hover {
    color: var(--tg-primary-color, #e74e33);
    text-decoration: underline;
}
.related-news-card p {
    color: #666;
    font-size: 0.9em;
    margin: 8px 0 0;
}

/* --- Blockquote (Alıntı) --- */
.news-content blockquote,
.post-details-content blockquote,
article blockquote {
    border-left: 4px solid var(--tg-primary-color, #e74e33);
    margin: 24px 0;
    padding: 16px 24px;
    background: #f9f9f9;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
}
.news-content blockquote::before,
.post-details-content blockquote::before {
    content: '\201C';
    font-size: 4em;
    color: var(--tg-primary-color, #e74e33);
    opacity: .15;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}
.news-content blockquote cite,
.post-details-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.9em;
    color: #666;
    font-style: normal;
    font-weight: 600;
}

/* --- Tablo Stilleri --- */
.news-content table,
.post-details-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
}
.news-content table th,
.post-details-content table th {
    background: var(--tg-primary-color, #e74e33);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}
.news-content table td,
.post-details-content table td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
}
.news-content table tr:nth-child(even),
.post-details-content table tr:nth-child(even) {
    background: #f9f9f9;
}
.news-content table.table-striped tr:nth-child(odd),
.post-details-content table.table-striped tr:nth-child(odd) {
    background: #fff;
}
.news-content table.table-bordered,
.post-details-content table.table-bordered {
    border: 2px solid #e0e0e0;
}

/* --- Link Stilleri --- */
.news-content a.btn-link,
.post-details-content a.btn-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s, box-shadow .2s;
}
.news-content a.btn-link:hover,
.post-details-content a.btn-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.news-content a.btn-link-primary,
.post-details-content a.btn-link-primary {
    background: var(--tg-primary-color, #e74e33);
    color: #fff !important;
}
.news-content a.btn-link-secondary,
.post-details-content a.btn-link-secondary {
    background: #333;
    color: #fff !important;
}
.news-content a.highlight-link,
.post-details-content a.highlight-link {
    background: linear-gradient(180deg, transparent 60%, #ffeaa7 60%);
    text-decoration: none;
    transition: background .2s;
}
.news-content a.highlight-link:hover,
.post-details-content a.highlight-link:hover {
    background: linear-gradient(180deg, transparent 40%, #ffeaa7 40%);
}

/* --- Kod Bloğu --- */
.news-content pre,
.post-details-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Fira Code', 'JetBrains Mono', 'Source Code Pro', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 20px 0;
}
.news-content code,
.post-details-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e74e33;
}
.news-content pre code,
.post-details-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* --- Video Embed --- */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 24px 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Heading Stilleri --- */
.news-content h2,
.post-details-content h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid var(--tg-primary-color, #e74e33);
    padding-bottom: 10px;
}
.news-content h3,
.post-details-content h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}
.news-content h4,
.post-details-content h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

/* --- Genel İçerik --- */
.news-content img,
.post-details-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}
.news-content figure,
.post-details-content figure {
    margin: 24px 0;
    text-align: center;
}
.news-content figcaption,
.post-details-content figcaption {
    font-size: 0.85em;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

/* --- Dark Mode Uyumluluğu --- */
[tg-theme="dark"] .info-box-info { background: #1a3a4f; }
[tg-theme="dark"] .info-box-warning { background: #3d3520; }
[tg-theme="dark"] .info-box-danger { background: #3d1a1a; }
[tg-theme="dark"] .info-box-success { background: #1a3d1f; }
[tg-theme="dark"] .related-news-card { background: #1e222d; border-color: #3a3f4b; }
[tg-theme="dark"] .related-news-card p { color: #aaa; }
[tg-theme="dark"] .news-content blockquote,
[tg-theme="dark"] .post-details-content blockquote { background: #1e222d; }
[tg-theme="dark"] .news-content code,
[tg-theme="dark"] .post-details-content code { background: #2d2d2d; color: #ff6b6b; }
[tg-theme="dark"] .news-content table th,
[tg-theme="dark"] .post-details-content table th { background: #2d2d2d; }
[tg-theme="dark"] .news-content table td,
[tg-theme="dark"] .post-details-content table td { border-color: #3a3f4b; }
[tg-theme="dark"] .news-content table tr:nth-child(even),
[tg-theme="dark"] .post-details-content table tr:nth-child(even) { background: #1e222d; }
