/* ============================================================
   JOBSNIPS — LinkedIn Profile Analyzer CSS
   ============================================================ */

/* ── Reuse scorer base styles (scorer.css is already linked) ── */

/* ── Input mode tabs ──────────────────────────────────────────── */
.li-mode-tabs {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto 20px;
}

.li-mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.li-mode-tab svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.li-mode-tab:hover {
  border-color: rgba(41,171,226,0.4);
  color: rgba(255,255,255,0.75);
  background: rgba(41,171,226,0.06);
}

.li-mode-tab:hover svg { opacity: 0.9; }

.li-mode-tab.active {
  border-color: rgba(41,171,226,0.7);
  background: rgba(41,171,226,0.1);
  color: var(--cyan, #29ABE2);
}

.li-mode-tab.active svg { opacity: 1; }

/* ── Textarea ─────────────────────────────────────────────────── */
.li-textarea {
  width: 100%;
  min-height: 200px;
  resize: vertical;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.li-textarea:focus {
  outline: none;
  border-color: rgba(41,171,226,0.5);
  background: rgba(255,255,255,0.07);
}

.li-textarea::placeholder { color: rgba(255,255,255,0.25); }

.li-textarea.error { border-color: #f87171; }

/* Taller textarea for full paste */
.li-textarea--tall { min-height: 280px; }

/* ── Character counter ──────────────────────────────────────────── */
.li-char-count {
  text-align: right;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}
.li-char-count.warn { color: #f59e0b; }

/* ── Section label above textarea ────────────────────────────── */
.li-section-hint {
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  line-height: 1.4;
}

/* ── Paste instructions ─────────────────────────────────────── */
.li-paste-steps {
  background: rgba(41,171,226,0.06);
  border: 1px solid rgba(41,171,226,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.li-paste-steps strong {
  color: rgba(255,255,255,0.85);
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

/* ── Results: section score bars ──────────────────────────────── */
.li-section-scores {
  max-width: 560px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.li-section-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.li-section-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  min-width: 110px;
  flex-shrink: 0;
}

.li-section-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.li-section-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #29ABE2, #3dbef5);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.li-section-bar-fill.score-poor   { background: linear-gradient(90deg, #ef4444, #f87171); }
.li-section-bar-fill.score-fair   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.li-section-bar-fill.score-good   { background: linear-gradient(90deg, #29ABE2, #3dbef5); }
.li-section-bar-fill.score-great  { background: linear-gradient(90deg, #10b981, #34d399); }

.li-section-num {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  min-width: 44px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Section score icon ─────────────────────────────────────── */
.li-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

/* ── Results header ─────────────────────────────────────────── */
.li-result-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}

/* ── Profile verdict ─────────────────────────────────────────── */
.li-verdict {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  margin: 8px 0 4px;
  color: rgba(255,255,255,0.9);
}

/* ── Section scores heading ────────────────────────────────── */
.li-scores-heading {
  max-width: 560px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.li-scores-heading::before,
.li-scores-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ── Analyzing steps (LinkedIn specific) ─────────────────────── */
.li-checklist { max-width: 400px; margin: 0 auto; }

/* ── CTA - LinkedIn specific ─────────────────────────────────── */
.li-cta {
  max-width: 560px;
  margin: 32px auto 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
}

.li-cta-header {
  padding: 24px 24px 0;
  text-align: center;
}

.li-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan, #29ABE2);
  margin-bottom: 8px;
}

.li-cta-title {
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.li-cta-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  line-height: 1.5;
}

.li-cta-tier {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.li-cta-tier:hover { background: rgba(255,255,255,0.04); }

.li-cta-tier-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.li-cta-tier.tier-1 .li-cta-tier-badge {
  background: rgba(41,171,226,0.18);
  color: var(--cyan, #29ABE2);
}
.li-cta-tier.tier-2 .li-cta-tier-badge,
.li-cta-tier.tier-3 .li-cta-tier-badge {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}

.li-cta-tier-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}

.li-cta-tier.tier-1 .li-cta-tier-label { color: var(--cyan, #29ABE2); }

.li-cta-tier-name {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.li-cta-tier-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.li-cta-tier-arrow {
  margin-left: auto;
  font-size: 20px;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
  align-self: center;
  transition: color 0.15s, transform 0.15s;
}

.li-cta-tier:hover .li-cta-tier-arrow {
  color: var(--cyan, #29ABE2);
  transform: translateX(3px);
}

/* ── LinkedIn URL guide ─────────────────────────────────────── */
.li-url-guide {
  background: rgba(41,171,226,0.05);
  border: 1px solid rgba(41,171,226,0.14);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
}

.li-url-guide-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}
.li-url-guide-title svg { color: var(--cyan, #29ABE2); flex-shrink: 0; }

.li-url-steps {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.li-url-steps li {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.li-url-steps strong { color: rgba(255,255,255,0.8); font-weight: 600; }

.li-url-steps code {
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  background: rgba(41,171,226,0.1);
  border: 1px solid rgba(41,171,226,0.2);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--cyan, #29ABE2);
}

.li-url-example {
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
}
.li-url-example span {
  color: var(--cyan, #29ABE2);
  opacity: 0.75;
}

/* "Or fill in sections" link below URL button */
.li-url-or-sections {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 14px;
  margin-bottom: 0;
}

.li-text-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--cyan, #29ABE2);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.li-text-btn:hover { opacity: 1; }

/* URL mode result state */
.li-url-submitted {
  max-width: 480px;
  margin: 0 auto 32px;
  text-align: center;
}

.li-url-submitted-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(41,171,226,0.1);
  border: 2px solid rgba(41,171,226,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
}

.li-url-submitted-title {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.li-url-submitted-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 20px;
}

.li-url-submitted-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(41,171,226,0.08);
  border: 1px solid rgba(41,171,226,0.2);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan, #29ABE2);
  margin-bottom: 24px;
}

/* ── Mobile responsive ─────────────────────────────────────── */
@media (max-width: 520px) {
  .li-mode-tabs { flex-direction: column; }
  .li-section-name { min-width: 80px; font-size: 12px; }
  .li-cta-tier { padding: 14px 16px; }
  .li-cta-header { padding: 18px 16px 0; }
}
