/* ==========================================================================
   AI Salary Insights & Market Benchmark Calculator Styles
   Modern Dark Glassmorphism, Neon Highlights, Interactive Sliders & Cards
   ========================================================================== */

.salary-calc-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.salary-hero-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(37, 99, 235, 0.15) 50%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.salary-hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.salary-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--tx-emerald);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.salary-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.salary-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 800px;
  line-height: 1.6;
}

/* 2-Column Interactive Workspace */
.salary-grid-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .salary-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Control Panel Card */
.salary-control-panel {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}

.salary-panel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.salary-panel-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.salary-form-group {
  margin-bottom: 1.35rem;
}

.salary-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
}

.salary-select, .salary-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
  outline: none;
}

.salary-select:focus, .salary-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Slider Controls */
.salary-slider-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.salary-range-slider {
  flex: 1;
  accent-color: #10b981;
  cursor: pointer;
  height: 6px;
}

.salary-slider-val {
  min-width: 80px;
  text-align: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--tx-emerald);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
}

/* Segmented Buttons */
.salary-segmented-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.salary-segment-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  padding: 0.65rem 0.5rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.salary-segment-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: var(--tx-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Live Results Output Container */
.salary-results-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}

/* Top Primary Figure Highlight */
.salary-primary-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.salary-primary-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.salary-primary-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #34d399 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.salary-primary-period {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 700;
}

/* 3-Tier Distribution Grid (Min, Median, Top 10%) */
.salary-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .salary-tiers-grid {
    grid-template-columns: 1fr;
  }
}

.salary-tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.salary-tier-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

.salary-tier-card.featured {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

.salary-tier-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.salary-tier-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.salary-tier-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Strategic Insights: Skills & Negotiation */
.salary-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .salary-insights-grid {
    grid-template-columns: 1fr;
  }
}

.salary-insight-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.35rem;
}

.salary-insight-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.salary-skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.salary-skill-tag {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--tx-indigo);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.salary-negotiation-script {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-soft);
  position: relative;
}

.salary-action-cta-row {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
/* Light theme surfaces */
[data-theme="light"] .salary-control-panel,
[data-theme="light"] .salary-results-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .salary-select,
[data-theme="light"] .salary-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="light"] .salary-negotiation-script { background: #f8fafc; border-color: #e2e8f0; }
[data-theme="light"] .salary-hero-card { box-shadow: 0 12px 35px -14px rgba(15, 23, 42, 0.15); }
