/* haberpro — köşe yazıları, resmi ilanlar, kurumsal sayfalar ve okur etkileşimi ek stilleri.
   Tasarımın sınıfları style.css'te; burada yalnızca veritabanına bağlanırken gereken küçük eklemeler var. */

/* Bal küpü alanı (botlar için; okura görünmez) */
.hp-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Sayfalama: tasarımdaki .il-pages düğmelerinin bağlantı karşılığı */
.il-pages a, .il-pages span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; font: 600 13.5px var(--f-head); color: var(--text-2); transition: border-color .15s, color .15s; }
.il-pages a:hover { border-color: var(--text-2); color: var(--text); }
.il-pages .is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.il-pages .is-disabled { opacity: .4; cursor: default; }
.il-pages .is-gap { border-color: transparent; }

/* Resmi ilanlar: il listesi ve tür sekmeleri bağlantı olarak */
.il-cities a { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; font: 600 13.5px var(--f-head); color: var(--text-2); transition: border-color .15s, color .15s; }
.il-cities a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.il-cities a:hover { border-color: var(--text-2); color: var(--text); }
.il-cities a.is-active { border-color: var(--brand); color: var(--brand); }
.il-clear a { font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  [data-il-page] .cb-subs a { padding: 11px 13px 12px; }
  [data-il-page] .cb-subs a:first-child { padding-left: 0; }
  [data-il-page] .cb-subs a:first-child::after { left: 0; }
}

/* Son tarih durumu: Süresi doldu / Bugün son gün / 3 gün kaldı */
.il-left { margin-top: 2px; font: 600 12px var(--f-body); font-style: normal; white-space: nowrap; }
.il-left.is-danger, .il-state.is-danger { color: var(--brand); }
.il-left.is-warning, .il-state.is-warning { color: #B7791F; }
.il-left.is-success, .il-state.is-success { color: var(--c-cevre); }
.il-left.is-gray { color: var(--muted); }
.ild-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ild-expired { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); font-size: 14px; line-height: 1.5; color: var(--text); }
.ild-expired i { margin-top: 3px; color: var(--brand); }
.ild-figure { margin: 0 0 16px; }
.ild-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.gd-pn > span { display: block; }
@media (max-width: 760px) {
  .il-dead .il-left { margin: 0 0 0 4px; }
}

/* Kurumsal: iletişim kutusunda WhatsApp satırı */
.kr-contact a.kr-wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; }
.kr-wa i { color: #1FAF54; }

/* Yorumlar: yanıtlar, editör rozeti, daha fazla yorum */
.cm-replies { grid-column: 2; margin-top: -4px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.cm-replies .cm { grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; }
.cm-replies .cm:last-child { border-bottom: 0; }
.cm-replies .cm-av { width: 32px; height: 32px; font-size: 12px; }
.cm-staff { padding: 1px 7px; border-radius: 3px; background: var(--brand); color: #fff; font: 600 11px var(--f-body); letter-spacing: .02em; }
.cm-body p { white-space: pre-line; overflow-wrap: anywhere; }
.cm-list > .cm.is-more { display: none; }
.cm-list.show-all > .cm.is-more { display: grid; }
.cm-empty { padding: 18px 0 2px; font-size: 14px; color: var(--muted); }
.cm-closed { margin-top: 4px; }
.cm-form .cf-error, .cm-form .cf-done { margin: 0; }
.cm-reply-to { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.cm-reply-to[hidden] { display: none; }
.cm-reply-to button { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cm-actions button[disabled] { opacity: .6; cursor: default; }

/* E-bülten sonuç / ayrılma sayfası (404 kartı düzeninde) */
.nl-ic { font-size: 64px; line-height: 1; }
.nl-ic i { display: block; }
.nl-form { display: flex; gap: 8px; max-width: 520px; margin: 22px auto 0; }
.nl-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); font: 400 15px var(--f-body); outline: 0; }
.nl-form input:focus { border-color: var(--text-2); }
.nl-form .btn { height: 44px; padding: 0 20px; }
.nl-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.nl-error { max-width: 520px; margin: 14px auto 0; }
@media (max-width: 760px) {
  .nl-form { flex-direction: column; }
}
.nl-actions { justify-content: center; }
