/* ==========================================================================
   landing-hero.css - Hero visual (HTML real, nao SVG)
   Mockup do app com cards de vagas, badge APLICADO pulsando, card de outcome,
   status bar com live-dot. Tilt 3D + float idle no mouse.
   ========================================================================== */

/* Perspective no inner para tilt 3D */
.hero__inner {
  perspective: 1200px;
}

/* Visual container */
.hero__visual {
  position: relative;
  transform-style: preserve-3d;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Sombra ambiental neutra abaixo (ancora vertical) */
.hero__visual::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -2%;
  height: 38px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(28, 32, 48, 0.20) 0%,
    rgba(28, 32, 48, 0.06) 55%,
    rgba(28, 32, 48, 0) 80%
  );
  filter: blur(16px);
  opacity: 0.7;
}

/* ========================================================================
   Mockup container (substitui o <img> antigo)
   ======================================================================== */
.mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(28, 32, 48, 0.04),
    0 8px 16px rgba(28, 32, 48, 0.06),
    0 24px 48px rgba(28, 32, 48, 0.12);
  transform: rotateY(-4deg) rotateX(2deg);
  transform-origin: center center;
  transition: transform 400ms var(--ease-out);
  animation: hero-float 6s ease-in-out infinite alternate;
  border: 1px solid rgba(28, 32, 48, 0.06);
}

@keyframes hero-float {
  0%   { translate: 0 -5px; }
  100% { translate: 0  5px; }
}

/* JS toma controle do transform durante tilt manual */
.hero__visual.is-tilting .mockup {
  transition: none;
  will-change: transform;
}

/* ========================================================================
   Browser chrome (barra superior)
   ======================================================================== */
.mockup__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f7f8fa 0%, #f1f3f6 100%);
  border-bottom: 1px solid rgba(28, 32, 48, 0.06);
}

.mockup__lights {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mockup__lights .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green  { background: #28c940; }

.mockup__url {
  flex: 1;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #8a93a3;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(28, 32, 48, 0.06);
  letter-spacing: 0.02em;
  max-width: 280px;
  margin: 0 auto;
}

/* ========================================================================
   Body: lista de cards
   ======================================================================== */
.mockup__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
}

/* ---------- Card base ---------- */
.job-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(28, 32, 48, 0.08);
  border-radius: 10px;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}

/* Avatar quadrado colorido */
.job-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--avatar-bg, #888);
  color: var(--avatar-fg, #fff);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  font-family: var(--font-body);
}

.job-info {
  flex: 1;
  min-width: 0;
}
.job-info__title {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: #1B2A4E;
  margin: 0 0 2px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-info__sub {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: #6b7280;
  margin: 0;
  line-height: 1.3;
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex-shrink: 0;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pill--match {
  background: #d1fae5;
  color: #065f46;
}
.pill--match-mid {
  background: #fef3c7;
  color: #92400e;
}
.pill--match-low {
  background: #fff4e6;
  color: #b85a1c;
}
.pill--applied {
  background: var(--color-primary, #FF6B35);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  animation: pill-pulse 2.6s ease-in-out infinite;
}
.pill--new {
  background: #1A8754;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 9.5px;
  padding: 3px 8px;
}

@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 107, 53, 0); }
}

/* ---------- Card APLICADO (highlight) ---------- */
.job-card--applied {
  background: linear-gradient(180deg, #fff8f4 0%, #ffffff 100%);
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.15);
}

/* ---------- Card de notificacao (outcome) ---------- */
.job-card--notify {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-color: rgba(26, 135, 84, 0.25);
  position: relative;
}
.job-card--notify::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: #1A8754;
  border-radius: 0 2px 2px 0;
}

/* ========================================================================
   Footer status bar
   ======================================================================== */
.mockup__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f7f8fa;
  border-top: 1px solid rgba(28, 32, 48, 0.06);
  font-family: var(--font-body);
  font-size: 11px;
  color: #6b7280;
  flex-wrap: wrap;
}
.mockup__footer strong {
  color: #1B2A4E;
  font-weight: 700;
}
.footer-text--muted { color: #9ca3af; }
.footer-sep { color: #d1d5db; }

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary, #FF6B35);
  display: inline-block;
  animation: live-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 4px rgba(255, 107, 53, 0); }
}

/* ========================================================================
   Stagger entry dos cards (dispara quando .hero ganha .hero--ready)
   ======================================================================== */
.is-stagger {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out);
  transition-delay: calc(180ms + var(--i, 0) * 90ms);
}
.hero--ready .is-stagger {
  opacity: 1;
  transform: none;
}

/* ========================================================================
   Mobile: desliga tilt, reduz sombra, mockup centralizado
   ======================================================================== */
@media (max-width: 900px) {
  .hero__visual { justify-content: center; }
  .mockup { max-width: 460px; }
}
@media (max-width: 768px) {
  .hero__inner { perspective: none; }
  .mockup {
    transform: none;
    animation: none;
  }
  .hero__visual::after { opacity: 0.5; }
}

/* ========================================================================
   Typewriter effect na headline
   ghost reserva largura (visibility hidden), live escreve por cima
   ======================================================================== */
.hero__headline .tw-row {
  position: relative;
  display: inline-block;
  vertical-align: top;
}
.hero__headline .tw-ghost {
  visibility: hidden;
}
.hero__headline .tw-live {
  position: absolute;
  inset: 0;
  white-space: pre;
  display: inline-block;
}
.hero__headline .tw-live.is-active::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  color: currentColor;
  animation: tw-blink 0.85s step-end infinite;
  transform: translateY(-2px);
}
@keyframes tw-blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ========================================================================
   Reduced motion
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mockup {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  .pill--applied,
  .live-dot {
    animation: none !important;
  }
  .is-stagger {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__headline .tw-live {
    position: static !important;
  }
  .hero__headline .tw-ghost {
    visibility: hidden !important;
  }
  .hero__headline .tw-live::after { display: none !important; }
}
