/* ITER 277 — Generic empty-state component CSS (BS-parity).
 *
 * Pairs with: frontend/mobile/assets/js/components/empty-state.js
 *
 * Namespace: .bs-empty-card (avoids collision with existing classes)
 *   - .empty-state              (slot-deep-fixes.css; old slot grid empty)
 *   - .search-panel__empty      (search-instant.js inline; old search empty)
 *   - .notification-drawer__error (footer.js inline; old notification error)
 *   - .provider-search-empty-state (slot-deep-fixes.css ITER 276; provider drawer)
 *
 * Visual: same as ITER 276 .provider-search-empty-state but generalized so
 * it works in any context — dropdown, drawer, full-page panel, search results.
 *
 * Variants modify color/spacing intent, not the layout.
 * ============================================================= */

.bs-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px 36px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  user-select: none;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

.bs-empty-card[hidden] { display: none; }

/* Compact variant — inline empty state inside small panels (e.g. dropdown body) */
.bs-empty-card--compact {
  padding: 24px 16px 20px;
  gap: 8px;
}

.bs-empty-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.92;
  flex-shrink: 0;
}

.bs-empty-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bs-empty-card__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
  max-width: 320px;
}

.bs-empty-card__desc {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
  max-width: 320px;
  /* Keep <strong> for query highlight readable */
}

.bs-empty-card__desc strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

/* ===== Variants ===== */

/* Error: warm tinge for triangle + text */
.bs-empty-card--error .bs-empty-card__icon {
  color: rgba(255, 158, 119, 0.72);
}
.bs-empty-card--error .bs-empty-card__title {
  color: rgba(255, 200, 180, 0.78);
}

/* Search-empty: slightly muted (default neutral state) */
.bs-empty-card--search-empty .bs-empty-card__icon {
  color: rgba(255, 255, 255, 0.42);
}

/* Info: instructional, blends with background */
.bs-empty-card--info .bs-empty-card__icon {
  color: rgba(255, 255, 255, 0.38);
}
.bs-empty-card--info .bs-empty-card__title {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
}

/* ITER 304-INT — notification-drawer error state via __BS.EmptyState */
#notificationDrawerList .bs-empty-card {
  margin: 18px 12px;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}
#notificationDrawerList .bs-empty-card--error .bs-empty-card__icon {
  color: #ff6b6b;
}
.notification-drawer__time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.02em;
}

/* =============================================================
 * ITER 514 (2026-05-17) — BS-paralel slot-page empty state.
 *
 * BS extract from m.bahissende303.com (slot page invalid search):
 *   <p class="emptyTextBc">Kullanılabilir oyun yok</p>
 *   Container: 392×100px (full-row of grid), display:flex, center
 *   Font: 16px/400 Roboto, color rgba(255,255,255,0.7)
 *   NO icon, NO description — single-line centered text only
 *
 * MR keeps the .bs-empty-card 3-element DOM (icon + title + desc)
 * for the generic component contract; this rule collapses it visually
 * to a single-row BS-paralel layout WHEN rendered inside #game-grid.
 *
 * Selector specificity:
 *   #game-grid .bs-empty-card → (1,1,0)  ← wins over (0,1,0) base
 *   #game-grid .bs-empty-card .bs-empty-card__title → (1,2,0)
 *
 * Hata kaynağı: User 2026-05-17 — "geçersiz bir oyun ismi aratılınca
 * ne oluyor şuan meritroyalde" → BS shows minimal single-line text,
 * MR was showing oversized 3-element card (icon + uppercase title +
 * desc) inside 1 grid column (177×223). Per rule #160 EXACT KLONLA
 * the visual must match BS exactly.
 * ============================================================= */

#game-grid .bs-empty-card,
.slot-page-root #game-grid .bs-empty-card {
  /* Full-row span inside CSS grid (defeats single-column 177px) */
  grid-column: 1 / -1;
  /* Match BS: row layout, transparent bg, zero padding, 100px tall */
  flex-direction: row;
  min-height: 100px;
  padding: 0;
  gap: 0;
  background: transparent;
  border-radius: 0;
  margin: 0;
}

/* Hide icon — BS empty state has none */
#game-grid .bs-empty-card .bs-empty-card__icon {
  display: none;
}

/* Hide description — BS has a single line, no secondary text */
#game-grid .bs-empty-card .bs-empty-card__desc {
  display: none;
}

/* Title rendered like BS .emptyTextBc (16px / 400 / 0.7 opacity, no-caps) */
#game-grid .bs-empty-card .bs-empty-card__title {
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  max-width: none;
  margin: 0;
  padding: 0;
}
