/* ============================================================
   Zeo Geo-Radar · Modül stili: Brand Hub (P9, brand-hub.js)
   Sahip olduğu sınıf önekleri: .bh-*, .brand-hub-*
   Ortak iskelet: .zr-drawer-* (radar.css) — burada yeniden
   tanımlanmaz, yalnızca çekmece İÇİ stillenir.
   Kurallar: yalnızca var(--*) token; radar.css primitifleri
   (.btn .badge .overlay .modal .icon-btn ...) yeniden stillenmez.
   ============================================================ */

/* ---------- Sayfa iskeleti ---------- */
.brand-hub-page { padding-top: 18px; }

.brand-hub-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.brand-hub-header h2 { font-family: var(--font-head); font-size: 21px; letter-spacing: -.01em; color: var(--ink); }
.brand-hub-header .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }

/* Alt sekmeler: uygulamadaki .tabs/.tab çizgi-altı desenini modül içinde yansıtır */
.brand-hub-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border-soft); margin-top: 18px; }
.brand-hub-tab-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 2px 11px; font-size: 13.5px; font-weight: 500;
  color: var(--ink-3); border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.brand-hub-tab-btn:hover { color: var(--ink); }
.brand-hub-tab-btn.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.brand-hub-tab-btn svg { width: 14px; height: 14px; opacity: .75; }
.brand-hub-tab-btn.active svg { opacity: 1; }

/* ---------- Arama + eylem çubuğu ---------- */
.brand-hub-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.brand-hub-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--panel); border-radius: 9px;
  padding: 7px 12px; width: 320px; max-width: 100%;
}
.brand-hub-search:focus-within { border-color: var(--accent); }
.brand-hub-search input { flex: 1; border: none; outline: none; box-shadow: none; background: transparent; font-size: 13px; color: var(--ink); min-width: 0; }
.brand-hub-search input:focus,
.brand-hub-search input:focus-visible { border: none; outline: none; box-shadow: none; }
.brand-hub-search input::placeholder { color: var(--ink-4); }
.brand-hub-search-icon { display: inline-flex; color: var(--ink-4); }
.brand-hub-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Tablo kartı ---------- */
.brand-hub-content { margin-top: 14px; }
.brand-hub-table-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.brand-hub-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.brand-hub-table th {
  text-align: left; color: var(--ink-3); font-weight: 500; font-size: 12.5px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-soft);
  background: var(--hover); white-space: nowrap;
}
.brand-hub-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.brand-hub-table tbody tr:last-child td { border-bottom: none; }
.brand-hub-table tbody tr:hover td { background: var(--hover); }

.brand-hub-name-cell { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.brand-hub-title-link { font-weight: 600; color: var(--ink); text-decoration: none; }
.brand-hub-title-link:hover { color: var(--accent); }
.brand-hub-url-badge {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink-3); font-size: 12px; font-family: var(--mono);
}
.brand-hub-url-badge svg { width: 11px; height: 11px; opacity: .7; }

/* ---------- Boş durum ---------- */
.brand-hub-empty { text-align: center; padding: 48px 20px 44px; }
.brand-hub-empty-icon {
  width: 42px; height: 42px; border-radius: 99px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-100); color: var(--accent);
}
.brand-hub-empty h3 { font-size: 15px; color: var(--ink); }
.brand-hub-empty p { color: var(--ink-3); font-size: 13px; max-width: 420px; margin: 6px auto 0; line-height: 1.5; }

/* ---------- Sayfalama ---------- */
.brand-hub-pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-top: 1px solid var(--border-soft);
  color: var(--ink-3); font-size: 12.5px;
}
.bh-page-range { white-space: nowrap; }
.bh-page-controls { display: flex; align-items: center; gap: 6px; }
.bh-page-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--ink); padding: 0 6px; white-space: nowrap;
}

/* ---------- Çekmece içi (iskelet: .zr-drawer-* radar.css'te) ---------- */
.bh-drawer-backdrop { cursor: default; }
.bh-drawer-panel { overflow: hidden; } /* kaydırma gövdede kalsın; başlık/altlık sabit */
.bh-drawer-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--border-soft); flex: none;
}
.bh-drawer-header h3 { font-family: var(--font-head); font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.bh-drawer-body {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px; padding: 18px 20px;
}
.bh-drawer-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--border-soft);
  background: var(--panel); flex: none;
}

/* Form alanları */
.bh-form-group { display: flex; flex-direction: column; gap: 6px; }
.bh-form-group label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.bh-input, .bh-textarea {
  width: 100%; box-sizing: border-box;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 9px 12px; font-size: 13.5px; font-family: var(--font);
  outline: none;
}
.bh-input:focus, .bh-textarea:focus,
.bh-input:focus-visible, .bh-textarea:focus-visible { border-color: var(--accent); outline: none; }
.bh-input:disabled { background: var(--chip-bg); color: var(--ink-3); }
.bh-input::placeholder, .bh-textarea::placeholder { color: var(--ink-4); }
.bh-textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.bh-hint { font-size: 12px; color: var(--ink-4); line-height: 1.45; }
.bh-char-counter { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-4); }
.bh-char-counter.limit-exceeded { color: var(--red); font-weight: 700; }

/* URL tarama kutusu + dönen simge */
.bh-crawl-box {
  background: var(--chip-bg); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.bh-crawl-box:first-child { text-align: left; }
.bh-crawl-spinner {
  width: 22px; height: 22px; margin: 2px auto 4px; border-radius: 99px;
  border: 2px solid var(--pink-200); border-top-color: var(--accent);
  animation: bh-spin .7s linear infinite;
}
@keyframes bh-spin { to { transform: rotate(360deg); } }

/* LLM kaynak hapları */
.bh-llm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bh-llm-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); border-radius: 99px; background: var(--panel);
  padding: 4px 11px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; white-space: nowrap; user-select: none;
}
.bh-llm-pill:hover { background: var(--hover); }
.bh-llm-pill.selected { background: var(--pink-100); border-color: var(--accent); color: var(--accent); }

/* ---------- Silme onayı (iskelet: .overlay/.modal.card radar.css'te) ---------- */
.bh-confirm-overlay { align-items: center; }
.bh-confirm-modal { max-width: 430px; padding: 22px 24px 20px; margin-bottom: 0; }
.bh-confirm-title { font-family: var(--font-head); font-size: 16.5px; letter-spacing: -.01em; color: var(--ink); }
.bh-confirm-text { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.bh-confirm-text b { color: var(--ink); }
.bh-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* Section heading inside drawer */
.bh-section-header {
  padding-bottom: 8px; margin-bottom: 2px;
  border-bottom: 1px solid var(--border-soft);
}
.bh-section-title {
  font-family: var(--font-head); font-size: 14.5px; font-weight: 600;
  letter-spacing: -.01em; color: var(--ink); margin: 0 0 3px 0;
}
.bh-section-sub {
  font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.45;
}

/* ---------- Sağ alt köşe bildirimi ---------- */
.bh-toast-container {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none;
}
.bh-toast {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--bg);
  border-radius: 10px; padding: 10px 14px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-pop); pointer-events: auto;
  animation: bh-toast-in .25s ease;
  transition: opacity .3s, transform .3s;
}
.bh-toast-icon { color: var(--green); font-size: 13px; font-weight: 800; line-height: 1; }
.bh-toast-dismiss {
  background: transparent; border: none; color: var(--bg);
  opacity: .65; font-size: 12px; cursor: pointer; padding: 0 0 0 6px;
  margin-left: 4px; line-height: 1; display: inline-flex; align-items: center;
  transition: opacity .15s ease;
}
.bh-toast-dismiss:hover { opacity: 1; }
@keyframes bh-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

