/*!
 * modern-v2.css — Site geneli 2026 modern polish
 * Yorumlar, footer, arama popup, buton, breadcrumb, pagination, haber tipografisi.
 */

/* ── HABER İÇERİĞİ — MODERN OKUMA DENEYİMİ ───────────────── */
.news-detail p, .news-detail-root .news-detail p, .infinite-article .news-detail p {
    font-size: 17px !important;
    line-height: 1.78 !important;
    color: #1a202c !important;
    margin: 0 0 18px !important;
    font-family: "Inter", "Gibson", Georgia, serif !important;
    letter-spacing: -0.005em;
}
/* İlk paragraf artık diğer paragraflarla aynı — özel vurgu kaldırıldı */
.news-detail > p:first-of-type,
.news-detail-root .news-detail > p:first-of-type {
    font-size: 17px !important;
    line-height: 1.78 !important;
    color: #1a202c !important;
    font-weight: 400 !important;
}
/* Drop cap / ilk harf büyütme kalıntılarını kesin kaldır */
.news-detail > p:first-of-type::first-letter,
.news-detail-root .news-detail > p:first-of-type::first-letter,
.infinite-article .news-detail > p:first-of-type::first-letter {
    font-family: inherit !important;
    float: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    vertical-align: baseline !important;
    font-weight: inherit !important;
    background: transparent !important;
    border: 0 !important;
}
.news-detail img, .news-detail figure img {
    border-radius: 10px !important;
    box-shadow: 0 6px 22px rgba(15,23,42,.08);
    margin: 18px 0 !important;
    max-width: 100% !important;
    height: auto !important;
}
.news-detail figcaption {
    text-align: center; color: #64748b;
    font-size: 12.5px; font-style: italic;
    margin: -8px 0 20px; padding: 0 12px;
    line-height: 1.55;
}
.news-detail blockquote, .news-detail-root .news-detail blockquote {
    background: linear-gradient(135deg, #fafbfc, #f1f5f9) !important;
    border-left: 5px solid #dc2626 !important;
    padding: 18px 24px !important;
    margin: 24px 0 !important;
    border-radius: 0 12px 12px 0 !important;
    font-family: Georgia, serif !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: #1a202c !important;
    font-style: italic;
    position: relative;
}
.news-detail blockquote::before {
    content: "\201C";
    position: absolute; left: 8px; top: -6px;
    font-size: 60px; color: rgba(220,38,38,.14);
    font-family: Georgia, serif; line-height: 1;
    pointer-events: none;
}
.news-detail ul, .news-detail ol { padding-left: 26px !important; margin: 14px 0 20px !important; }
.news-detail ul li, .news-detail ol li {
    font-size: 17px !important; line-height: 1.75 !important;
    color: #1a202c !important; margin-bottom: 8px;
}
.news-detail ul li::marker { color: #dc2626; font-weight: 800; }
.news-detail a:not(.hb-related__card):not(.hb-karma__card):not([class*="btn"]) {
    color: #dc2626 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(220,38,38,.4);
    transition: text-decoration-color .12s ease;
}
.news-detail a:not(.hb-related__card):not(.hb-karma__card):not([class*="btn"]):hover {
    text-decoration-color: #dc2626;
    background: rgba(220,38,38,.06);
}
.news-detail table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 6px rgba(15,23,42,.05);
    font-size: 14px;
}
.news-detail table th {
    background: #0f172a; color: #fff; padding: 12px 14px;
    text-align: left; font-weight: 700; letter-spacing: .02em;
}
.news-detail table td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
.news-detail table tr:nth-child(even) td { background: #fafbfc; }

/* ── YORUMLAR — MODERN ───────────────────────────────────── */
.comments-section {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 24px; margin-top: 32px;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.comments-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #eef1f5;
    flex-wrap: wrap; gap: 12px;
}
.comments-title {
    font-size: 18px !important; font-weight: 800 !important;
    color: #0f172a !important; margin: 0 !important;
    display: flex; align-items: center; gap: 8px;
}
.comments-title i { color: #4f46e5; }
.comments-count {
    background: linear-gradient(135deg,#4f46e5,#6366f1); color: #fff;
    padding: 3px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 800;
}
.comments-sort {
    display: flex; gap: 4px;
    background: #f1f5f9; padding: 3px; border-radius: 8px;
}
.comments-sort .cs-btn {
    border: 0; background: transparent; padding: 6px 14px;
    font-size: 12px; font-weight: 700; color: #64748b;
    cursor: pointer; border-radius: 6px; transition: all .12s;
}
.comments-sort .cs-btn.active {
    background: #fff; color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.comment-form-v2 {
    background: #f8fafc; border: 1px solid #eef1f5;
    border-radius: 12px; padding: 18px; margin-bottom: 20px;
}
.comment-form-v2 .cf-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 10px;
}
@media (max-width: 640px) { .comment-form-v2 .cf-row { grid-template-columns: 1fr; } }
.comment-form-v2 .cf-input, .comment-form-v2 .cf-textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; background: #fff; outline: none;
    box-sizing: border-box; font-family: inherit;
    transition: border-color .12s;
}
.comment-form-v2 .cf-input:focus, .comment-form-v2 .cf-textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.comment-form-v2 .cf-textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.comment-form-v2 .cf-actions {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 12px;
}
.comment-form-v2 .cf-submit {
    padding: 10px 22px;
    background: linear-gradient(135deg,#4f46e5,#4338ca);
    color: #fff; border: 0; border-radius: 8px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.comment-form-v2 .cf-submit:hover { background: linear-gradient(135deg,#4338ca,#3730a3); }
.comments-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item {
    background: #fafbfc; border: 1px solid #eef1f5;
    border-radius: 10px; padding: 14px 16px;
    display: flex; gap: 12px; align-items: flex-start;
}
.comment-item .cm-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg,#6366f1,#4f46e5); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.comment-item .cm-body { flex: 1; min-width: 0; }
.comment-item .cm-name { font-size: 13.5px; font-weight: 800; color: #0f172a; }
.comment-item .cm-time { font-size: 11.5px; color: #94a3b8; margin-left: 6px; font-weight: 500; }
.comment-item .cm-text { font-size: 14px; color: #334155; line-height: 1.6; margin: 6px 0 8px; }
.comments-disabled-note { border-radius: 12px !important; }
.comments-loading { color: #64748b; text-align: center; padding: 20px; font-size: 13px; }
.comments-loading i { margin-right: 6px; color: #4f46e5; }

/* ── FOOTER — MODERN ─────────────────────────────────────── */
footer.footer, .site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #cbd5e1;
    margin-top: 40px;
    border-top: 3px solid #dc2626;
}
footer.footer a, .site-footer a { color: #cbd5e1; transition: color .12s ease; }
footer.footer a:hover, .site-footer a:hover { color: #fff; }
.footer-main { padding: 40px 0 24px; }
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.footer-widget h4 {
    color: #fff; font-size: 14px; font-weight: 800;
    margin: 0 0 14px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: .04em;
}
.footer-widget h4::before {
    content: ""; display: inline-block;
    width: 3px; height: 14px; background: #dc2626; border-radius: 2px;
}
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget li { padding: 5px 0; font-size: 13px; }
.footer-widget li a { display: inline-flex; align-items: center; gap: 6px; }
.footer-widget li a:hover { color: #fbbf24; }
.footer-bottom {
    background: rgba(0,0,0,.35); padding: 16px 0; font-size: 12px;
    border-top: 1px solid rgba(255,255,255,.06); color: #94a3b8;
    display: flex; justify-content: center; align-items: center; text-align: center;
}

/* ── ARAMA POPUP — MODERN GLASSMORPH ─────────────────────── */
.search-popup {
    background: rgba(15,23,42,.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.search-popup-inner {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 32px !important;
    max-width: 640px; width: 90%; margin: 15vh auto 0;
    box-shadow: 0 25px 80px rgba(0,0,0,.4);
}
.search-popup-inner h3 {
    font-size: 20px; font-weight: 800; color: #0f172a;
    margin: 0 0 20px; display: flex; align-items: center; gap: 10px;
}
.search-popup-inner h3 i { color: #dc2626; }
.search-popup-form { display: flex; gap: 10px; }
.search-popup-form input {
    flex: 1; padding: 14px 18px;
    border: 2px solid #e2e8f0; border-radius: 10px;
    font-size: 15px; outline: none; transition: border-color .12s;
}
.search-popup-form input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.search-popup-form button {
    padding: 14px 24px;
    background: linear-gradient(135deg,#dc2626,#991b1b);
    color: #fff; border: 0; border-radius: 10px;
    font-size: 14px; font-weight: 800; cursor: pointer;
}

/* ── COOKIE BAR — MODERN ─────────────────────────────────── */
.cookie-consent {
    background: linear-gradient(135deg,#1e293b,#0f172a) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 -6px 20px rgba(0,0,0,.15) !important;
    border-top: 2px solid #dc2626 !important;
}
.cookie-consent a { color: #fbbf24 !important; }

/* ── 404 SAYFASI — MODERN ────────────────────────────────── */
.error-page, .not-found-page, .container.error-container {
    max-width: 640px; margin: 60px auto; padding: 40px;
    text-align: center; background: #fff;
    border-radius: 16px; box-shadow: 0 4px 20px rgba(15,23,42,.06);
}
.error-page h1, .not-found-page h1 {
    font-size: 96px; font-weight: 900; margin: 0 0 12px;
    background: linear-gradient(135deg,#dc2626,#991b1b);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
}

/* ── BUTON MODERNİZASYON ─────────────────────────────────── */
.btn-primary, button.btn-primary, .button-primary {
    background: linear-gradient(135deg,#4f46e5,#4338ca) !important;
    border: 0 !important; color: #fff !important;
    box-shadow: 0 4px 12px rgba(79,70,229,.25);
}
.btn-primary:hover, button.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(79,70,229,.35) !important;
}
.btn-danger {
    background: linear-gradient(135deg,#ef4444,#dc2626) !important;
    border: 0 !important; color: #fff !important;
}
.btn-success {
    background: linear-gradient(135deg,#22c55e,#16a34a) !important;
    border: 0 !important; color: #fff !important;
}

/* ── LOADING SPINNER MODERN ──────────────────────────────── */
@keyframes msRotate { to { transform: rotate(360deg); } }
.spinner, .loading-spinner {
    display: inline-block; width: 28px; height: 28px;
    border: 3px solid #e2e8f0; border-top-color: #4f46e5;
    border-radius: 50%; animation: msRotate .8s linear infinite;
}

/* ── BREADCRUMB — MODERN ─────────────────────────────────── */
.detail-breadcrumb, .breadcrumb-list {
    display: inline-flex; gap: 4px; align-items: center;
    padding: 0; margin: 0; list-style: none;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
}
.detail-breadcrumb li, .breadcrumb-list li { display: inline-flex; align-items: center; }
.detail-breadcrumb li + li::before,
.breadcrumb-list li + li::before {
    content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    color: #cbd5e1; margin: 0 8px; font-size: 10px;
}
.detail-breadcrumb a, .breadcrumb-list a {
    color: #64748b; text-decoration: none; transition: color .12s ease;
}
.detail-breadcrumb a:hover, .breadcrumb-list a:hover { color: #dc2626; }

/* ── PAGINATION — MODERN ─────────────────────────────────── */
.pagination, .page-pagination {
    display: flex; justify-content: center; gap: 6px;
    margin: 32px 0; flex-wrap: wrap; padding: 0; list-style: none;
}
.pagination a, .pagination span,
.page-pagination a, .page-pagination span {
    padding: 9px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 700;
    background: #fff; border: 1px solid #e2e8f0; color: #475569;
    text-decoration: none; min-width: 40px; text-align: center;
    transition: all .12s ease;
}
.pagination a:hover, .page-pagination a:hover { border-color: #4f46e5; color: #4f46e5; }
.pagination .current, .pagination .active,
.page-pagination .current, .page-pagination .active {
    background: linear-gradient(135deg,#4f46e5,#4338ca) !important;
    color: #fff !important; border-color: #4338ca !important;
    box-shadow: 0 3px 10px rgba(79,70,229,.25);
}

/* ── HABER KARTLARI GLOBAL POLİSH ────────────────────────── */
.news-card, .category-page article, .list-page article {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .15s ease;
}
.news-card:hover, .category-page article:hover, .list-page article:hover {
    box-shadow: 0 8px 22px rgba(15,23,42,.08);
}
.news-card__title, .news-card h2, .news-card h3 {
    font-weight: 700; line-height: 1.35;
    color: #0f172a;
}
.news-card__title:hover, .news-card h2:hover, .news-card h3:hover {
    color: #4f46e5;
}

/* ═══════════════════════════════════════════════════════════════
 * HABER İÇERİĞİ — SABIR GAZETESİ TARZI KOMPAKT TİPOGRAFİ
 * Gibson font, 20px / 1.5 line-height, letter-spacing yok.
 * ═══════════════════════════════════════════════════════════════ */
html body .news-detail p,
html body .news-detail-root .news-detail p,
html body .infinite-article .news-detail p,
html body .sub-article-root .news-detail p {
    font-family: Gibson, "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    margin: 0 0 14px !important;
}
html body .news-detail > p:first-of-type,
html body .news-detail-root .news-detail > p:first-of-type {
    font-size: 20px !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}
html body .news-detail ul li,
html body .news-detail ol li {
    font-family: Gibson, "Inter", sans-serif !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    margin-bottom: 6px !important;
}
html body .news-detail blockquote {
    font-family: Georgia, serif !important;
    font-size: 20px !important;
    line-height: 1.55 !important;
    margin: 18px 0 !important;
    padding: 14px 20px !important;
}
/* Mobil: Sabır ile birebir aynı */
@media (max-width: 768px) {
    html body .news-detail p,
    html body .news-detail > p:first-of-type,
    html body .infinite-article .news-detail p,
    html body .sub-article-root .news-detail p,
    html body .news-detail ul li,
    html body .news-detail ol li {
        font-size: 18px !important;
        line-height: 1.5 !important;
        margin: 0 0 12px !important;
    }
    html body .news-detail blockquote {
        font-size: 17px !important;
        padding: 12px 16px !important;
    }
}
/* Başlıklar — kompakt */
html body .news-detail h2,
html body .news-detail h3,
html body .news-detail h4 {
    font-family: Gibson, "Inter", sans-serif !important;
    line-height: 1.3 !important;
    margin: 20px 0 8px !important;
    color: #212529 !important;
}
html body .news-detail h2 { font-size: 24px !important; }
html body .news-detail h3 { font-size: 20px !important; }
html body .news-detail h4 { font-size: 18px !important; }
