/* ==========================================================================
   SMART4TALENT COMPONENTS STYLESHEET
   Buttons, Badges, Form Controls, Job Cards, Kanban ATS, Pricing, Quiz, ATS Meter
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
  color: var(--neutral-0) !important;
  box-shadow: 0 4px 12px rgba(13, 59, 110, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
  box-shadow: 0 6px 18px rgba(13, 59, 110, 0.4);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-800) 100%);
  color: var(--neutral-0) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-700) 100%);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-700) !important;
  border-color: var(--primary-700);
}

.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-800);
}

.btn-ghost {
  background: var(--neutral-100);
  color: var(--neutral-700) !important;
  border-color: var(--neutral-200);
}

.btn-ghost:hover {
  background: var(--neutral-200);
  color: var(--neutral-900) !important;
}

.btn-white {
  background: var(--neutral-0);
  color: var(--primary-700) !important;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--neutral-50);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: 0.02em;
}

.badge-primary { background: var(--primary-50); color: var(--primary-700); border: 1px solid var(--primary-200); }
.badge-accent  { background: var(--accent-50);  color: var(--accent-700);  border: 1px solid var(--accent-200); }
.badge-success { background: var(--success-50); color: var(--success-700); border: 1px solid var(--success-100); }
.badge-warning { background: var(--warning-50); color: var(--warning-700); border: 1px solid var(--warning-100); }
.badge-purple  { background: var(--purple-50);  color: var(--purple-700);  border: 1px solid var(--purple-100); }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-700); border: 1px solid var(--neutral-200); }

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.form-label {
  font-size: 0.84rem;
  font-weight: var(--fw-bold);
  color: var(--neutral-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--neutral-200);
  background-color: var(--neutral-0);
  color: var(--neutral-900);
  font-size: 0.9375rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(13, 59, 110, 0.12);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-error-msg {
  font-size: 0.78rem;
  color: var(--accent-600);
  font-weight: var(--fw-medium);
  margin-top: 0.2rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-left: 2.6rem;
}

.input-icon-slot {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   JOB CARD COMPONENT
   ========================================================================== */
.job-card {
  background: var(--neutral-0);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--neutral-200);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-lg);
}

.job-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: space-between;
}

.job-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: var(--neutral-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-extrabold);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.job-card-info {
  flex: 1;
}

.job-title {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  color: var(--neutral-900);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  cursor: pointer;
}

.job-title:hover {
  color: var(--primary-700);
}

.job-company-name {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8125rem;
  color: var(--neutral-500);
  padding: 0.6rem 0;
  border-top: 1px dashed var(--neutral-200);
  border-bottom: 1px dashed var(--neutral-200);
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.job-salary-tag {
  color: var(--success-700);
  font-weight: var(--fw-bold);
}

.job-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  background: var(--neutral-100);
  color: var(--neutral-700);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  border: 1px solid var(--neutral-200);
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.match-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: var(--fw-extrabold);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.match-score-high   { background: #dcfce7; color: #15803d; }
.match-score-medium { background: #e0f2fe; color: #0369a1; }
.match-score-good   { background: #fef3c7; color: #b45309; }

/* ==========================================================================
   STAT CARDS
   ========================================================================== */
.stat-card {
  background: var(--neutral-0);
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-300);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: var(--fw-black);
  color: var(--neutral-900);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--neutral-500);
  font-weight: var(--fw-medium);
}

/* ==========================================================================
   PRICING CARDS
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background: var(--neutral-0);
  border-radius: var(--radius-2xl);
  border: 2px solid var(--neutral-200);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card.popular {
  border-color: var(--primary-700);
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-700), var(--accent-600));
  color: var(--neutral-0);
  font-size: 0.75rem;
  font-weight: var(--fw-extrabold);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-plan-name {
  font-size: 1.35rem;
  font-weight: var(--fw-bold);
  color: var(--neutral-900);
  margin-bottom: 0.35rem;
}

.pricing-plan-desc {
  font-size: 0.84rem;
  color: var(--neutral-500);
  margin-bottom: 1.5rem;
}

.pricing-amount-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.pricing-currency-symbol {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--neutral-900);
}

.pricing-price-val {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: var(--fw-black);
  color: var(--neutral-900);
  line-height: 1;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--neutral-500);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--neutral-700);
}

.pricing-feature-item svg {
  color: var(--success-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   KANBAN ATS BOARD
   ========================================================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.kanban-column {
  background: var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 250px;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--neutral-200);
}

.kanban-col-title {
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  color: var(--neutral-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kanban-count-pill {
  background: var(--neutral-200);
  color: var(--neutral-700);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
}

.kanban-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 150px;
}

.kanban-candidate-card {
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-xs);
  cursor: grab;
  transition: all var(--transition-fast);
}

.kanban-candidate-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-300);
}

/* ==========================================================================
   ATS RESUME ANALYZER METER
   ========================================================================== */
.ats-score-meter-wrap {
  background: var(--neutral-0);
  border-radius: var(--radius-2xl);
  border: 1.5px solid var(--neutral-200);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.score-circle-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  background: conic-gradient(var(--score-color, #22c55e) calc(var(--score-pct, 85) * 1%), var(--neutral-200) 0);
  padding: 12px;
}

.score-circle-inner {
  width: 100%;
  height: 100%;
  background: var(--neutral-0);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--neutral-900);
}

.score-label {
  font-size: 0.75rem;
  color: var(--neutral-500);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
}

/* ==========================================================================
   QUIZ COMPONENT
   ========================================================================== */
.quiz-box {
  background: var(--neutral-0);
  border-radius: var(--radius-2xl);
  border: 1.5px solid var(--neutral-200);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--neutral-200);
  background: var(--neutral-0);
  color: var(--neutral-800);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  margin-bottom: 0.75rem;
}

.quiz-option-btn:hover {
  border-color: var(--primary-700);
  background: var(--primary-50);
}

.quiz-option-btn.selected {
  border-color: var(--primary-700);
  background: var(--primary-50);
  color: var(--primary-700);
}

.quiz-option-letter {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--neutral-100);
  color: var(--neutral-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 0.8125rem;
  flex-shrink: 0;
}
