/* ============================================
   Oportunidades Hero — B1 "Compacta & Limpa"
   Dark theme, centralizado, mobile-first
   ============================================ */

/* FOUC Prevention: hide original hero until replaced */
[data-loc="client/src/pages/OportunidadesPage.tsx:122"] {
  opacity: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: none !important;
}

/* Show new hero */
.oport-hero-b1 {
  background: linear-gradient(168deg, #111827 0%, #1f2937 100%);
  padding: 14px 14px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.oport-hero-b1 * { box-sizing: border-box; }

/* Background orbs */
.oport-hero-b1::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.oport-hero-b1::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(234,88,12,0.07), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Top row */
.oport-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.oport-back-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 2px;
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
  font-family: inherit;
}
.oport-back-btn:active { color: rgba(255,255,255,0.7); }
.oport-back-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.oport-live-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.oport-live-dot {
  width: 5px;
  height: 5px;
  background: #22c55e;
  border-radius: 50%;
  animation: oport-pulse 1.5s infinite;
}
@keyframes oport-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Title block */
.oport-title-block {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  padding: 0 4px;
}
.oport-hero-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
  color: #fff;
}
.oport-hero-title .oport-hl {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.oport-hero-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  margin: 0;
}

/* Search */
.oport-search-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.oport-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0 10px;
  transition: border-color 0.2s;
  min-height: 42px;
}
.oport-search-wrap:focus-within {
  border-color: rgba(245,158,11,0.5);
}
.oport-search-wrap svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.oport-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
  font-family: inherit;
  text-align: left;
}
.oport-search-input::placeholder {
  color: rgba(255,255,255,0.3);
}
.oport-search-btn {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  min-height: 42px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}
.oport-search-btn:active { opacity: 0.85; }

/* Filter tabs */
.oport-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  justify-content: center;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.oport-ftab {
  flex: 1;
  max-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  -webkit-tap-highlight-color: transparent;
  min-height: 40px;
}
.oport-ftab:active { transform: scale(0.97); }
.oport-ftab.active {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.4);
  color: #fbbf24;
}
.oport-ftab-count {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 5px;
  color: rgba(255,255,255,0.35);
}
.oport-ftab.active .oport-ftab-count {
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
}

/* Stats */
.oport-stats-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  justify-content: center;
}
.oport-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.oport-stat-num {
  font-weight: 800;
  color: #fbbf24;
  font-size: 13px;
}

/* Ticker */
.oport-ticker {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 7px 0;
  overflow: hidden;
  position: relative;
}
.oport-ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(90deg, #ea580c, #f59e0b);
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 0 4px 4px 0;
}
.oport-ticker-label::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(17,24,39,0.8), transparent);
}
.oport-ticker-track {
  display: flex;
  animation: oport-scroll 28s linear infinite;
  padding-left: 72px;
}
@keyframes oport-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.oport-ticker-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 0 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}
.oport-ticker-disc {
  color: #4ade80;
  font-weight: 700;
  font-size: 10px;
}
.oport-ticker-price {
  color: #4ade80;
  font-weight: 700;
}
.oport-ticker-sep {
  color: rgba(255,255,255,0.08);
}

/* CTA */
.oport-cta-section {
  background: linear-gradient(180deg, #111827 0%, transparent 100%);
  padding: 16px 14px 12px;
  text-align: center;
}
.oport-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 46px;
}
.oport-cta-btn:active { transform: scale(0.97); }
.oport-cta-btn svg {
  width: 14px;
  height: 14px;
  animation: oport-bounce 1.8s infinite;
}
@keyframes oport-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.oport-cta-sub {
  font-size: 10px;
  color: #999;
  margin-top: 6px;
}

/* ===== TABLET (min 600px) ===== */
@media (min-width: 600px) {
  .oport-hero-b1 { padding: 18px 24px 0; }
  .oport-hero-title { font-size: 22px; }
  .oport-hero-sub { font-size: 12px; }
  .oport-search-row { max-width: 460px; }
  .oport-filter-tabs { max-width: 420px; }
  .oport-ftab { max-width: 140px; padding: 10px 8px; }
  .oport-cta-section { padding: 18px 24px 14px; }
}

/* ===== DESKTOP (min 900px) ===== */
@media (min-width: 900px) {
  .oport-hero-b1 { padding: 20px 32px 0; }
  .oport-hero-title { font-size: 26px; }
  .oport-hero-sub { font-size: 13px; }
  .oport-search-row { max-width: 500px; }
  .oport-search-wrap { min-height: 44px; }
  .oport-search-btn { min-height: 44px; padding: 0 20px; font-size: 13px; }
  .oport-filter-tabs { max-width: 440px; }
  .oport-ftab { padding: 10px 10px; font-size: 13px; }
  .oport-stats-row { gap: 20px; }
  .oport-stat { font-size: 12px; }
  .oport-stat-num { font-size: 14px; }
  .oport-cta-btn { padding: 12px 32px; font-size: 14px; }
}

/* ===== SMALL PHONES (max 360px) ===== */
@media (max-width: 360px) {
  .oport-hero-b1 { padding: 12px 10px 0; }
  .oport-hero-title { font-size: 16px; }
  .oport-hero-sub { font-size: 10px; }
  .oport-search-input { font-size: 12px; }
  .oport-search-btn { padding: 0 12px; font-size: 11px; }
  .oport-ftab { padding: 8px 4px; font-size: 11px; gap: 3px; }
  .oport-ftab-count { font-size: 8px; padding: 1px 4px; }
  .oport-stat { font-size: 10px; }
  .oport-stat-num { font-size: 12px; }
  .oport-ticker-item { font-size: 9px; padding: 0 10px; }
  .oport-cta-btn { padding: 11px 20px; font-size: 13px; }
}
