/* ============================================================
   Lightcraft Banner — banner.css
   Colours: dark navy bg · laser blue data · green = our numbers
   ============================================================ */

/* ── Reset ── */
.lcb-wrap *, .lcb-wrap *::before, .lcb-wrap *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

/* ── Outer container ── */
.lcb-wrap {
  background: #07101a;
  border: 1px solid #0d3d5c;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   TICKER
   ============================================================ */
.lcb-ticker {
  background: #030d14;
  border-bottom: 1px solid #0a2535;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.lcb-live-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .06em;
  border: 1px solid #2a80a8;
  color: #5adcff;
  flex-shrink: 0;
}
.lcb-ticker-track { overflow: hidden; flex: 1; }
.lcb-ticker-inner {
  display: flex;
  gap: 22px;
  white-space: nowrap;
  animation: lcb-tick 50s linear infinite;
}
@keyframes lcb-tick { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.lct-item        { font-size: 14px; color: #7abcce; display: inline-flex; align-items: center; gap: 4px; }
.lct-item strong { font-weight: 500; color: #c8eeff; }
.lct-up          { font-size: 10px; color: #e05555; }
.lct-dn          { font-size: 10px; color: #22c97a; }
.lct-sep         { color: #1a4a60; }

/* ============================================================
   BODY & 4-COL FLEX GRID  (30 | 30 | 20 | 20, wraps when tight)
   ============================================================ */
.lcb-body {
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lcb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: start;
  width: 100%;
}
/* flex: grow  shrink  basis
   3:3:2:2 grow ratio keeps the 30|30|20|20 target at full width.
   Basis is the point at which the column stops fitting and wraps. */
.lcb-col--rate-pair { flex: 3 1 260px; padding: 0; margin: 0; }
.lcb-col--info      { flex: 3 1 200px; }
.lcb-col--pills     { flex: 2 1 160px; }
.lcb-col--search    { flex: 2 1 160px; }

.lcb-col          { display: flex; flex-direction: column; gap: 8px; }
.lcb-col-label {
  font-size: 10px;
  font-weight: 600;
  color: #2a7090;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
/* Rate pair — 2 cards side by side, stay horizontal on mobile too */
.lcb-rate-cards          { display: flex; flex-direction: row; gap: 8px; width: 100%; }
.lcb-rate-cards .lcb-card { flex: 1 1 0; min-width: 0; }
.lcb-card {
  background: #060f18;
  border: 1px solid #0d3d5c;
  border-radius: 8px;
  padding: 10px 14px;
}
.lcb-card--ours   { border-color: #0e5a3a; }
.lcb-card-label   { font-size: 12px; color: #4a9aba; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.lcb-card-val     { font-size: 26px; font-weight: 600; color: #d0eeff; line-height: 1; }
.lcb-val--green   { color: #22d48a; }
.lcb-unit         { font-size: 14px; font-weight: 400; color: #3a7a90; }
.lcb-unit--green  { color: #1a6a40; }
.lcb-card-sub     { font-size: 12px; color: #3a7a90; margin-top: 3px; }
.lcb-save-tag {
  display: inline-block;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid #1a6040;
  color: #30e898;
  margin-left: 5px;
  vertical-align: middle;
}

/* ============================================================
   INFO ROW
   ============================================================ */
.lcb-info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.lcb-info-item  { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.lcb-dot        { width: 4px; height: 4px; border-radius: 50%; background: #2a6a88; flex-shrink: 0; }
.lcb-info-key   { color: #4a9aba; }
.lcb-info-val   { color: #a8d8ec; }

/* ============================================================
   FEATURED PILLS
   ============================================================ */
.lcb-pills          { display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; min-height: 24px; }
.lcb-pills-loading  { font-size: 12px; color: #2a6a88; font-style: italic; }
.lcb-pill {
  background: #050f1a;
  border: 1px solid #0d3d5c;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lcb-pname  { font-weight: 500; color: #88cce4; }
.lcb-pprice { font-weight: 500; color: #30e898; }

/* ============================================================
   SEARCH
   ============================================================ */
.lcb-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #040c14;
  border: 1px solid #0d3d5c;
  border-radius: 8px;
  padding: 5px 10px;
  transition: border-color .2s;
}
.lcb-search-wrap:focus-within { border-color: #1a6080; }
.lcb-search-icon  { font-size: 13px; color: #2a7a98; flex-shrink: 0; }
.lcb-search-input {
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: #c8eeff;
  flex: 1;
  font-family: inherit;
}
.lcb-search-input::placeholder { color: #2a6070; }

/* ── Search results ── */
.lcb-results  { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.lcb-sr-pill {
  background: #040c14;
  border: 1px solid #0a3550;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  animation: lcb-fade .2s ease;
}
@keyframes lcb-fade { from{opacity:0;transform:translateY(3px)} to{opacity:1;transform:translateY(0)} }
.lcb-sr-name  { color: #88cce4; }
.lcb-sr-price { font-weight: 500; color: #30e898; }
.lcb-sr-cat   { font-size: 9px; color: #2a6a7a; }
.lcb-sr-empty { font-size: 11px; color: #2a6070; font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
.lcb-footer {
  font-size: 12px;
  color: #2a5570;
  text-align: right;
  font-style: italic;
  border-top: 1px solid #0a2030;
  padding-top: 6px;
}

/* ============================================================
   MOBILE — stack 3 cols vertically
   ============================================================ */
/* lcb-grid wrapping is now handled by flexbox — no media query needed for it.
   Natural wrap points:
     ~820px  → all 4 columns in one row
     ~480px  → rate-pair alone / info alone / pills+search together
     ~360px  → each section gets its own row
*/
@media (max-width: 640px) {
  /* Info items wrap horizontally on narrow screens */
  .lcb-info-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
}