/**
 * Haber detay sayfasi stilleri — themes/haber61_v2/post.blade.php
 *
 * Daha once bu dosyanin tamami sablonun icinde <style> blogu olarak duruyordu;
 * her haber sayfasi ayni ~320 satiri tekrar tekrar tasiyordu. Harici dosyaya
 * alindi: tarayici bir kez indirip cache'liyor, HTML kucululuyor.
 *
 * Yuklenme yeri: post.blade.php -> @section('custom_css')
 * Degisiklik yaparsan sablondaki ?v= numarasini artir (cache kirma).
 */

/* ===== Mobil "Bu Haber İlginizi Çekebilir" (2x2) — SADECE mobil. Görünürlük Tailwind'e değil,
               bu @media kurallarına bağlı (üretimde derlenmiş CSS'te eksik utility riski yok). ===== */
.m-suggest {
    display: none;
}

@media (max-width: 767.98px) {
    .desktop-suggest-block {
        display: none !important;
    }

    .m-suggest {
        display: block;
    }

    /* Sağ sidebar "Çok Okunanlar" ve "Son Haberler" kutuları mobilde gizli */
    .m-hide-mobile {
        display: none !important;
    }
}

.m-suggest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.m-suggest-card {
    display: block;
}

.m-suggest-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #e5e7eb;
}

.m-suggest-card h3 {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-live-div img {
    width: 35px !important;
    height: 35px !important;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #e30613;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

.article-content {
    font-family: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    font-size: 17.6px;
    line-height: 24.64px;
    font-weight: 400;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content p:first-of-type::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 1;
    font-weight: 700;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: #e30613;
    font-family: 'Georgia', serif;
}

/* İçerik medyası: kartın kenarına kadar tam genişlik (full-bleed).
               Kart iç boşluğunu (p-6 / sm:p-8) negatif margin ile telafi eder.
               16:9 oran, object-fit: cover; mobil-masaüstü responsive. */
.article-content img,
.article-content video,
.article-content iframe,
.article-content figure,
.article-content figure.media,
.article-content .image,
.article-content .image_resized,
.article-content .video-wrapper {
    width: calc(100% + 3rem) !important;
    /* mobil: 2 × 1.5rem (p-6) */
    max-width: calc(100% + 3rem) !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    float: none !important;
}

/* Görsel + video + iframe: 16:9 oran (1280×720), tam genişlik, object-fit: cover */
.article-content img,
.article-content video,
.article-content iframe {
    aspect-ratio: 16 / 9;
    height: auto !important;
    max-height: 720px;
    min-height: 0 !important;
    object-fit: cover;
    border-radius: 0;
    display: block;
    border: 0;
}

/* Fotoğraflar: köşe yuvarlatma + kenara yapışmasın (sağ/sol biraz boşluk) */
.article-content img {
    border-radius: 1.5rem;
}

/* Sarmalayıcı (figure) zaten full-bleed; içindeki medya tekrar taşmasın */
.article-content figure img,
.article-content figure video,
.article-content figure iframe,
.article-content .video-wrapper video,
.article-content .video-wrapper iframe {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (min-width: 640px) {

    .article-content img,
    .article-content video,
    .article-content iframe,
    .article-content figure,
    .article-content figure.media,
    .article-content .image,
    .article-content .image_resized,
    .article-content .video-wrapper {
        width: calc(100% + 4rem) !important;
        /* sm+: 2 × 2rem (sm:p-8) */
        max-width: calc(100% + 4rem) !important;
        margin-left: -2rem !important;
        margin-right: -2rem !important;
    }
}

/* Video / iframe: kenara yapışmasın — sağ/sol 3px boşluk kalsın */
.article-content video,
.article-content iframe,
.article-content .video-wrapper {
    width: calc(100% + 3rem - 6px) !important;
    max-width: calc(100% + 3rem - 6px) !important;
    margin-left: calc(-1.5rem + 3px) !important;
    margin-right: calc(-1.5rem + 3px) !important;
}

@media (min-width: 640px) {

    .article-content video,
    .article-content iframe,
    .article-content .video-wrapper {
        width: calc(100% + 4rem - 6px) !important;
        max-width: calc(100% + 4rem - 6px) !important;
        margin-left: calc(-2rem + 3px) !important;
        margin-right: calc(-2rem + 3px) !important;
    }
}

.article-content figure figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    padding: 0 1.5rem;
}

.article-content h2 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.article-content h3 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: #fef2f2;
    border-left: 4px solid #e30613;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #6b7280;
}

.article-content blockquote p {
    margin-bottom: 0.5rem;
}

.article-content blockquote cite {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: normal;
    font-weight: 600;
}

.article-content a {
    color: #e30613;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* İlişkili haber kartı: makale içeriğinin full-bleed görsel ve
   kırmızı/altı çizili link kurallarından muaf tutulur. */
.article-content .related-news-card a {
    color: inherit;
    text-decoration: none;
}

.article-content .related-news-card img {
    width: 7rem !important;      /* w-28 */
    max-width: 7rem !important;
    height: 6rem !important;     /* h-24 */
    aspect-ratio: auto !important;
    margin: 0 !important;
    float: none !important;
    object-fit: cover;
    border-radius: 0.75rem;      /* rounded-xl */
    display: block;
}

/* Liste kurallari (ul / ol / li) bilerek burada DEGIL:
   article-lists.css'te tanimli ve type'a duyarli surumleri var (ol[type=a] vb.).
   Ikisi de async yuklendigi icin yukleme sirasi garanti degil; kural tekrari
   olmasin diye bu dosyadan cikarildi. */

#liteArticleContent iframe {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    min-height: 500px;
}

.lite-video-embed iframe {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .article-content p:first-of-type::first-letter {
        font-size: 3rem;
    }
}

body.dark-mode .article-content {
    color: #cbd5e1;
}

body.dark-mode .article-content h2,
body.dark-mode .article-content h3 {
    color: #f1f5f9;
}

body.dark-mode .article-content blockquote {
    background: rgba(227, 6, 19, 0.08);
    border-left-color: #e30613;
    color: #94a3b8;
}

body.dark-mode .article-content blockquote cite {
    color: #64748b;
}

body.dark-mode .article-content h2 {
    border-bottom-color: #334155;
}

/* ===== Inline style="" yerine gecen yardimci siniflar =====
   Daha once sablonda style="background:#e30613" / style="color:#e30613" olarak
   yaziliydi; marka rengi tek yerden yonetilsin diye buraya alindi. */
.post-brand-bar {
    background: #e30613;
}

.post-brand-text {
    color: #e30613;
}

/* Mobil geri butonu — konumlandirma daha once inline style ile veriliyordu.
   .post-back-btn i { pointer-events:none } ikona tiklaninca olayin butona
   ulasmasini garanti eder (eskiden ikonun kendi inline style'iydi). */
.post-back-btn {
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    touch-action: manipulation;
}

.post-back-btn i {
    pointer-events: none;
}

