/*
 * carrier-page.css — Tek bir kargo firması (Aras, Yurtiçi, Sürat vb.) için
 * /aras-kargo/ benzeri sayfaların stil dosyası.
 *
 * Sayfanın amacı: Ziyaretçi belirli bir taşıyıcının sayfasına geldiğinde
 * (SEO long-tail "aras kargo takip" araması), takip numarasını girip
 * hızlıca sorgu yapabilsin. Sayfa, formun yanı sıra firmanın iletişim,
 * çalışma saatleri, hizmet listesi ve SSS gibi destek bilgilerini içerir.
 *
 * Class prefix: .carrier-page-* — sadece bu sayfanın kapsam alanı.
 *   .carrier-page-wrapper  → en dış sayfa wrapper'ı
 *   .carrier-page-header   → logo + başlık satırı
 *   .carrier-page-card     → takip formu kart container'ı
 *   .carrier-page-input    → takip numarası input
 *   .carrier-page-submit   → "Kargomu Bul" butonu
 *   .carrier-page-faq      → SSS (FAQPage schema'lı)
 *   .carrier-page-history  → Son aramalar (localStorage)
 *
 * Diğer dosyalardan ayrım: site.css = global stil, home-hero.css = anasayfa
 * hero, tracking-result.css = takip sonuç sayfası. Bu dosya sadece carrier
 * sayfaları yüklendiğinde async olarak çekilir (main.php bundle config).
 */

/* ──────────────────────────────────────────────
   PAGE WRAPPER
   ────────────────────────────────────────────── */
.carrier-page-wrapper {
  padding: 1.5rem 0 4rem;
  position: relative;
  background: var(--bg);
  min-height: 70vh;
}

/* Sidebar yok — içerik tek kolonlu, ortalanmış (max 920px optimal okuma) */
.carrier-page-shell {
  display: block;
}
.carrier-page-main {
  min-width: 0;
  max-width: 920px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────────
   HEADER (logo + intro)
   ────────────────────────────────────────────── */
.carrier-page-header {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.carrier-page-logo {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  position: relative;
  background: transparent;
}
@media (min-width: 1024px) {
  .carrier-page-logo {
    width: 128px;
    height: 128px;
  }
}

/* Sadece harf-fallback durumunda renkli arkaplan + border */
.carrier-page-logo--initials {
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(21, 101, 192, 0.25);
}

/* Logo SVG/img kutuyu tamamen kaplar (kendi içinde rounded bg var) */
.carrier-page-logo svg,
.carrier-page-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.carrier-page-intro {
  flex: 1;
  min-width: 0;
}

.carrier-page-eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.carrier-page-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  font-weight: 800;
}

.carrier-page-lead {
  margin: 0;
  color: var(--secondary-text-color);
  line-height: 1.65;
  font-size: 1rem;
}

.carrier-page-lead strong {
  color: var(--primary-text-color);
  font-weight: 600;
}

/* ──────────────────────────────────────────────
   FORM CARD
   ────────────────────────────────────────────── */
.carrier-page-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 32px 24px;
  box-shadow: 0 6px 18px rgba(16, 35, 58, 0.05);
  overflow: hidden;
}

@media (max-width: 640px) {
  .carrier-page-card { padding: 22px 18px 20px; border-radius: 14px; }
}

/* Üst kenarda gradient şerit — marka rengi → standart mavi */
.carrier-page-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--carrier-accent, var(--primary)), var(--primary));
}

.carrier-page-form-title {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading-color);
  position: relative;
  padding-left: 14px;
}

.carrier-page-form-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}

.carrier-page-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  height: 60px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Form-row içindeki input — sağ köşeleri düz (butonla bütünleşsin) */
.carrier-page-form-row .carrier-page-input-wrap {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.carrier-page-input-wrap:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: none;
}

.carrier-page-input-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--secondary-text-color);
}

.carrier-page-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  font-size: 1.4rem;
  color: var(--primary-text-color);
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: none;
}

/* HTML5 :invalid state browser default outline'ını bastır
   (wrap zaten focus-within border + box-shadow gösteriyor; çift border olmasın). */
.carrier-page-input:focus,
.carrier-page-input:focus-visible,
.carrier-page-input:invalid,
.carrier-page-input:focus:invalid {
  outline: none;
  outline: 0;
  border: 0;
  box-shadow: none;
}

.carrier-page-input::placeholder {
  /* WCAG AA: gri arkaplan üzerinde 4.5:1+ kontrast için Tailwind gray-500 */
  color: #6b7280;
  opacity: 1;
  font-family: var(--font-base, system-ui, -apple-system, sans-serif);
  letter-spacing: normal;
  font-size: 1.05rem;
  font-weight: 400;
}

html[data-theme="dark"] .carrier-page-input::placeholder {
  color: #9ca3af; /* dark mode: gray-400, dark bg üzerinde okunaklı */
  opacity: 1;
}

/* Form satırı: desktop'ta input + buton sıfır gap'le bütünleşik, mobilde alt alta */
.carrier-page-form-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  flex-wrap: wrap;
}

.carrier-page-form-row .carrier-page-input-wrap {
  flex: 1 1 60%;
  min-width: 0;
  order: 1;
}

.carrier-page-form-row .carrier-page-submit {
  order: 2;
}

/* Helper text desktop'ta tüm satırı kaplar (input+button altında) */
.carrier-page-form-row .carrier-page-format-help {
  flex: 1 1 100%;
  order: 3;
}

@media (max-width: 640px) {
  .carrier-page-form-row {
    flex-direction: column;
    gap: 12px;
  }

  /* Önemli: flex: 1 1 100% YANLIŞ — column flex'te elementler 60px height'ini koruyamaz.
     flex: 0 0 auto ile her eleman intrinsic height (60px) korur. */
  .carrier-page-form-row .carrier-page-input-wrap,
  .carrier-page-form-row .carrier-page-submit {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  /* Sıralama: input → helper → button */
  .carrier-page-form-row .carrier-page-input-wrap {
    order: 1;
    /* Tüm köşeleri tekrar yuvarla — desktop rule'larını longhand ile override */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-right: 1px solid var(--line);
  }

  .carrier-page-form-row .carrier-page-format-help { order: 2; margin: 0 4px; }

  .carrier-page-form-row .carrier-page-submit {
    order: 3;
    /* Tüm köşeleri tekrar yuvarla — desktop'ta sol köşeler 0 idi */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
}

/* Submit button */
.carrier-page-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  min-width: 200px;
  height: 60px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2271d8, var(--primary-strong));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.005em;
  box-shadow: 0 12px 26px rgba(21, 101, 192, 0.22);
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.15s ease;
}

/* Form-row içindeki buton — sol köşeleri düz (input ile birleşsin).
   SADECE desktop'ta uygula — mobilde buton input'un ALTINA iniyor,
   sol köşeleri yuvarlanmalı. Aksi halde mobil rule (line 284-291) bu
   rule tarafından override edilirdi (aynı specificity, source'ta sonra). */
@media (min-width: 641px) {
  .carrier-page-form-row .carrier-page-submit {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: none;
  }
}

.carrier-page-form-row .carrier-page-submit:hover {
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.18);
}

.carrier-page-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(21, 101, 192, 0.28);
  transform: translateY(-1px);
}

.carrier-page-submit:active {
  transform: translateY(0) scale(0.985);
}

.carrier-page-submit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   FORMAT HELPER TEXT (Material 3 Supporting Text)
   ────────────────────────────────────────────── */
.carrier-page-format-help {
  margin: 8px 4px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  column-gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--secondary-text-color);
  background: transparent;
  border: 0;
}

.carrier-page-format-help-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--secondary-text-color);
  opacity: 0.75;
  display: block;
  vertical-align: middle;
}

.carrier-page-format-help strong {
  color: var(--primary-text-color);
  font-weight: 600;
}

.carrier-page-format-help code {
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--primary-text-color);
  background: var(--surface-soft);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.carrier-page-format-help-sep {
  opacity: 0.4;
  margin: 0 2px;
}

.carrier-page-format-example code {
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--primary-text-color);
  user-select: all;
  letter-spacing: 0.03em;
}

/* ──────────────────────────────────────────────
   SIDEBAR (right column — info card)
   ────────────────────────────────────────────── */
.carrier-page-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 92px;
}

.carrier-page-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 12px rgba(16, 35, 58, 0.04);
}

.carrier-page-info-card h3 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.carrier-page-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.carrier-page-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.carrier-page-info-row-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary);
  display: inline-grid;
  place-items: center;
}

.carrier-page-info-row-icon svg { width: 18px; height: 18px; }

.carrier-page-info-row-body {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
}

.carrier-page-info-row-label {
  display: block;
  color: var(--secondary-text-color);
  font-size: 0.875rem;
  margin-bottom: 3px;
  font-weight: 500;
}

.carrier-page-info-row-value {
  display: block;
  font-weight: 600;
  color: var(--primary-text-color);
  word-break: break-word;
  font-size: 1rem;
  line-height: 1.4;
}

.carrier-page-info-row-value a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

.carrier-page-info-row-value a:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────
   SERVICES + FAQ (below form)
   ────────────────────────────────────────────── */
.carrier-page-section {
  margin-top: 36px;
}

.carrier-page-section-title {
  margin: 0 0 18px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
}

/* "Sunulan Hizmetler" CSS kaldırıldı (.carrier-page-services, .carrier-page-service-chip) */

.carrier-page-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carrier-page-faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}

.carrier-page-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-text-color);
  font-size: 0.96rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.carrier-page-faq-item summary::-webkit-details-marker { display: none; }

.carrier-page-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.carrier-page-faq-item[open] summary::after { content: "−"; }

.carrier-page-faq-item p {
  margin: 12px 0 0;
  color: var(--secondary-text-color);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ──────────────────────────────────────────────
   DARK MODE
   ────────────────────────────────────────────── */
html[data-theme="dark"] .carrier-page-wrapper {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 320px);
}

html[data-theme="dark"] .carrier-page-card,
html[data-theme="dark"] .carrier-page-info-card,
html[data-theme="dark"] .carrier-page-faq-item {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .carrier-page-input-wrap,
html[data-theme="dark"] .carrier-page-format {
  background: var(--surface-soft);
  border-color: var(--line);
}

html[data-theme="dark"] .carrier-page-format-chip {
  background: rgba(122, 184, 255, 0.15);
  color: var(--link-color);
}

html[data-theme="dark"] .carrier-page-format-example code {
  background: var(--surface);
  border-color: var(--line);
}

html[data-theme="dark"] .carrier-page-info-row-icon,
html[data-theme="dark"] .carrier-page-format-icon {
  background: rgba(122, 184, 255, 0.12);
  color: var(--link-color);
}

html[data-theme="dark"] .carrier-page-info-row-value a {
  color: var(--link-color);
}

html[data-theme="dark"] .carrier-page-eyebrow {
  color: var(--link-color);
}

/* =========================================================================
   Carrier Page — Status Terms tablosu, Services Detailed, About paragraflar
   ========================================================================= */

/* Section lead — H2 altı 1-2 satır açıklama */
.carrier-page-section-lead {
  margin: 0.4rem 0 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
}

/* "Sunulan Hizmetler" CSS'leri kaldırıldı (.carrier-page-services-grid, -service-card, -service-icon, -service-body, -service-name, -service-desc) */

/* "Durum Kodları ve Anlamları" tablosu kaldırıldı —
   status açıklamaları sonuç sayfasında (.result-status-meaning) dinamik gösterilir */

/* About prose (DB description) */
.carrier-page-about p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text);
}
.carrier-page-about p:last-child { margin-bottom: 0; }

/* =========================================================================
   Carrier Page — İletişim Bilgileri (Solid mavi icon + arrow + live status)
   - Modern card UI: filled primary icon, üst-sağda external arrow
   - "Çalışma" kartında live AÇIK/KAPALI status badge (Europe/Istanbul TZ)
   - Mobile-first: dikey, tablet+ 2 sütun, desktop auto-fit
   ========================================================================= */

.carrier-page-contact-block {
  margin-top: 1.8rem;
}
.carrier-page-contact-block .carrier-page-section-title {
  margin-bottom: 1rem;
}

/* Section title — solunda 4px primary bar (Adam'ın istediği görsel: "|" şerit) */
.carrier-page-section-title--bar {
  position: relative;
  padding-left: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--heading-color);
}
.carrier-page-section-title--bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 4px;
  background: var(--primary);
  border-radius: 999px;
}
html[data-theme="dark"] .carrier-page-section-title--bar::before {
  background: var(--link-color);
}

.carrier-page-info-list--inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .carrier-page-info-list--inline {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
}
@media (min-width: 1024px) {
  .carrier-page-info-list--inline {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
  }
}
.carrier-page-info-list--inline > li { list-style: none; margin: 0; }

/* Card — beyaz bg, soft border, hover'da subtle lift */
.carrier-page-info-list--inline .carrier-page-info-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease;
  min-height: 76px;
}
.carrier-page-info-list--inline .carrier-page-info-row--linked {
  cursor: pointer;
}
.carrier-page-info-list--inline .carrier-page-info-row--linked:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(21, 101, 192, 0.10);
}
html[data-theme="dark"] .carrier-page-info-list--inline .carrier-page-info-row--linked:hover {
  border-color: var(--link-color);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Icon — SOLID PRIMARY arka plan, beyaz icon */
.carrier-page-info-list--inline .carrier-page-info-row-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background .2s ease;
}
.carrier-page-info-list--inline .carrier-page-info-row--linked:hover .carrier-page-info-row-icon {
  background: var(--primary-strong);
  transform: scale(1.06);
}
.carrier-page-info-list--inline .carrier-page-info-row-icon svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}
html[data-theme="dark"] .carrier-page-info-list--inline .carrier-page-info-row-icon {
  background: var(--link-color);
}
html[data-theme="dark"] .carrier-page-info-list--inline .carrier-page-info-row-icon svg {
  color: var(--bg);
}

/* Body — label + value */
.carrier-page-info-list--inline .carrier-page-info-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.carrier-page-info-list--inline .carrier-page-info-row-label {
  /* Label sol, badge sağa (justify-content: space-between) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
  width: 100%;
  /* Çalışma kartında sağ üstte arrow yok — badge için yer aç */
  padding-right: 0.2rem;
}
.carrier-page-info-list--inline .carrier-page-info-row-value {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--heading-color);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-feature-settings: "tnum"; /* Tabular numerals — telefon/saat hizalaması */
}
.carrier-page-info-list--inline .carrier-page-info-row--linked .carrier-page-info-row-value {
  color: var(--primary);
}
html[data-theme="dark"] .carrier-page-info-list--inline .carrier-page-info-row--linked .carrier-page-info-row-value {
  color: var(--link-color);
}

/* External arrow — sağ üst köşe */
.carrier-page-info-list--inline .carrier-page-info-row-arrow {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  width: 14px;
  height: 14px;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity .2s ease, color .2s ease, transform .2s cubic-bezier(.16,1,.3,1);
}
.carrier-page-info-list--inline .carrier-page-info-row--linked:hover .carrier-page-info-row-arrow {
  opacity: 1;
  color: var(--primary);
  transform: translate(2px, -2px);
}
html[data-theme="dark"] .carrier-page-info-list--inline .carrier-page-info-row--linked:hover .carrier-page-info-row-arrow {
  color: var(--link-color);
}

/* Status badge — AÇIK (yeşil dot) / KAPALI (kırmızı dot)
   Sağa yaslı (label flex justify-content: space-between ile) */
.carrier-page-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.18rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.carrier-page-status-badge--open {
  color: var(--success, #0f8d4e);
}
.carrier-page-status-badge--closed {
  color: var(--danger, #d13232);
}
.carrier-page-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}
.carrier-page-status-badge--open .carrier-page-status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.55;
  animation: carrier-page-status-pulse 2s ease-out infinite;
}
@keyframes carrier-page-status-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .carrier-page-status-badge--open .carrier-page-status-dot::after {
    animation: none;
  }
}

.carrier-page-info-empty {
  font-style: italic;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

/* Aside boş kalırsa (iletişim main'e taşındı) gizle */
.carrier-page-aside:empty {
  display: none;
}

/* Mobile: padding biraz daralt, value bold kalsın */
@media (max-width: 540px) {
  .carrier-page-info-list--inline .carrier-page-info-row {
    padding: 0.9rem 1.05rem;
    gap: 0.85rem;
    min-height: 70px;
  }
  .carrier-page-info-list--inline .carrier-page-info-row-icon {
    width: 44px;
    height: 44px;
  }
  .carrier-page-info-list--inline .carrier-page-info-row-value {
    font-size: 1.02rem;
  }
}

/* =========================================================================
   CARRIER PAGE — "Son Aramalar" widget'ı (pill/chip — kompakt minimal)
   Sadece bu carrier'a ait localStorage geçmişi pill rozetler hâlinde.
   Tasarım: rakipten esinli ama daha modern; hover lift + stage renk noktası.
   ========================================================================= */
.carrier-page-history {
  margin: 14px 0 0;
}
.carrier-page-history[hidden] { display: none; }

.carrier-page-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.carrier-page-history-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-text-color);
  letter-spacing: -0.005em;
}
.carrier-page-history-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  opacity: 0.55;
}
.carrier-page-history-clear:hover {
  background: var(--surface-soft);
  color: #b91c1c;
  opacity: 1;
}
.carrier-page-history-clear svg { width: 14px; height: 14px; }

/* Pill listesi — flex wrap, doğal sığma */
.carrier-page-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Pill (chip) — kompakt rozet */
.carrier-page-history-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--surface-soft);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  text-decoration: none;
  color: var(--heading-color);
  font-size: 0.84rem;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.carrier-page-history-item:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--carrier-accent, var(--primary)) 30%, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(16, 35, 58, 0.06);
}

/* Sol başta küçük status noktası — stage rengiyle */
.carrier-page-history-item-icon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.carrier-page-history-item-icon svg { display: none; }

/* Takip numarası — # prefix CSS ile eklenir */
.carrier-page-history-item-no {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
}
.carrier-page-history-item-no::before {
  content: "#";
  margin-right: 1px;
  color: var(--muted);
  font-weight: 400;
}

/* Stage label/time chip içinde gizlenir; tooltip'te title attr ile gösterilir */
.carrier-page-history-item-time,
.carrier-page-history-item-stage {
  display: none;
}

/* Stage'e göre nokta rengi — :has() ile pill içindeki gizli stage span'ı oku */
.carrier-page-history-item:has(.carrier-page-history-item-stage[data-stage="1"]) .carrier-page-history-item-icon { background: #9ca3af; }
.carrier-page-history-item:has(.carrier-page-history-item-stage[data-stage="2"]) .carrier-page-history-item-icon { background: #2271b1; }
.carrier-page-history-item:has(.carrier-page-history-item-stage[data-stage="3"]) .carrier-page-history-item-icon { background: #8b5cf6; }
.carrier-page-history-item:has(.carrier-page-history-item-stage[data-stage="4"]) .carrier-page-history-item-icon { background: #f59e0b; }
.carrier-page-history-item:has(.carrier-page-history-item-stage[data-stage="5"]) .carrier-page-history-item-icon { background: #10b981; }

/* :has() desteklemeyen browser fallback — JS data-stage attribute set eder */
.carrier-page-history-item[data-stage="1"] .carrier-page-history-item-icon { background: #9ca3af; }
.carrier-page-history-item[data-stage="2"] .carrier-page-history-item-icon { background: #2271b1; }
.carrier-page-history-item[data-stage="3"] .carrier-page-history-item-icon { background: #8b5cf6; }
.carrier-page-history-item[data-stage="4"] .carrier-page-history-item-icon { background: #f59e0b; }
.carrier-page-history-item[data-stage="5"] .carrier-page-history-item-icon { background: #10b981; }

html[data-theme="dark"] .carrier-page-history-item {
  background: rgba(255, 255, 255, 0.03);
}
html[data-theme="dark"] .carrier-page-history-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
