/**
 * modals.css — Shared modal/overlay base styles for Jobeezy conversion surfaces.
 * Covers: salary widget, apply-assist float, social proof ticker, one-tap overlays.
 * Brand tokens: dark #2F2A28, accent #D6FF3E, sharp (zero border-radius), Inter.
 */

/* ════════════════════════════════════════════════════════════
   APPLY ASSIST FLOAT
   ════════════════════════════════════════════════════════════ */
#jb-apply-assist {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 9970;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
}

#jb-apply-assist.jb-apply-assist-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.jb-apply-assist-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  background: #D6FF3E;
  color: #2F2A28;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.jb-apply-assist-cta:hover  { background: #c4ec30; box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6); }
.jb-apply-assist-cta:active { background: #b0d425; }
.jb-apply-assist-arrow { transition: transform 0.15s; }
.jb-apply-assist-cta:hover .jb-apply-assist-arrow { transform: translateX(3px); }

#jb-apply-assist-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  flex-shrink: 0;
}
#jb-apply-assist-close:hover { background: #131620; color: #fff; }

/* Mobile adjustments */
@media (max-width: 480px) {
  #jb-apply-assist {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    left: 1rem;
  }
  .jb-apply-assist-cta {
    flex: 1;
    justify-content: center;
  }
}


/* ════════════════════════════════════════════════════════════
   SOCIAL PROOF TICKER
   ════════════════════════════════════════════════════════════ */
[data-jb-ticker],
#jb-social-proof-ticker {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(214, 255, 62, 0.06);
  border-left: 3px solid #D6FF3E;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  transition: opacity 0.4s ease;
  overflow: hidden;
}

.jb-ticker-icon { flex-shrink: 0; }

.jb-ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop: 2-line wrap */
@media (min-width: 768px) {
  [data-jb-ticker],
  #jb-social-proof-ticker {
    font-size: 0.9375rem;
    padding: 0.625rem 1rem;
  }
  .jb-ticker-text {
    white-space: normal;
    text-overflow: unset;
    overflow: visible;
    line-height: 1.4;
  }
}


/* ════════════════════════════════════════════════════════════
   SALARY WIDGET
   ════════════════════════════════════════════════════════════ */
.jb-sw-wrap {
  font-family: Inter, system-ui, sans-serif;
  background: #131620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid #D6FF3E;
  padding: 2rem 1.5rem;
  max-width: 680px;
}

.jb-sw-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D6FF3E;
  margin: 0 0 0.5rem;
}

.jb-sw-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

.jb-sw-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.jb-sw-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 180px;
}

.jb-sw-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.jb-sw-select {
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}
.jb-sw-select:focus { border-color: #D6FF3E; }
.jb-sw-select option { background: #131620; color: #fff; }

.jb-sw-btn {
  padding: 0.6875rem 1.25rem;
  background: #D6FF3E;
  color: #2F2A28;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.jb-sw-btn:hover  { background: #c4ec30; }
.jb-sw-btn:disabled { opacity: 0.45; cursor: not-allowed; background: #D6FF3E; }

/* Results area */
.jb-sw-results { min-height: 2rem; }

.jb-sw-result-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.25rem;
}

.jb-sw-loading {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.jb-sw-error {
  font-size: 0.875rem;
  color: #ff6b6b;
  margin: 0.5rem 0 0;
}

/* Chart bars */
.jb-sw-chart { margin-bottom: 1.5rem; }

.jb-sw-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jb-sw-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.jb-sw-bar-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  width: 5rem;
  flex-shrink: 0;
  text-align: right;
}

.jb-sw-bar-track {
  flex: 1;
  height: 0.625rem;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.jb-sw-bar {
  height: 100%;
  transition: width 0.6s ease;
}
.jb-sw-bar-low  { background: rgba(214, 255, 62, 0.35); }
.jb-sw-bar-med  { background: #D6FF3E; }
.jb-sw-bar-high { background: rgba(214, 255, 62, 0.65); }

.jb-sw-bar-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  width: 5.5rem;
  flex-shrink: 0;
}

.jb-sw-sample {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0.75rem 0 0;
}

/* Email gate */
.jb-sw-gate {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.jb-sw-gate-prompt {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.875rem;
  line-height: 1.45;
}

.jb-sw-gate-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.jb-sw-gate-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s;
}
.jb-sw-gate-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.3); }
.jb-sw-gate-form input[type="email"]:focus { border-color: #D6FF3E; }

.jb-sw-gate-btn {
  padding: 0.625rem 1rem;
  background: #D6FF3E;
  color: #2F2A28;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.jb-sw-gate-btn:hover { background: #c4ec30; }
.jb-sw-gate-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.jb-sw-gate-fine {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0.5rem 0 0;
}

.jb-sw-success {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #D6FF3E;
  margin: 0;
  padding: 0.5rem 0;
}


/* ════════════════════════════════════════════════════════════
   GOOGLE ONE TAP / APPLE SIGN-IN
   ════════════════════════════════════════════════════════════ */
#jb-apple-signin {
  display: flex;
  justify-content: center;
}

.jb-apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #1A1816; /* was #000 — softened to warm near-black (seo-design-consistency) */
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 200px;
  transition: background 0.15s;
}
.jb-apple-btn:hover { background: #2F2A28; } /* was #1a1a1a — unified to canonical ink */
.jb-apple-btn-placeholder { opacity: 0.5; cursor: not-allowed; }


/* ════════════════════════════════════════════════════════════
   SHARED UTILITY
   ════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
