/* =========================================
   HR NextGen Solutions v2 - Components
   Light Theme Rewrite
   ========================================= */

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 26px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

/* Primary gradient */
.btn-primary {
  background: var(--gradient-brand);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow-btn);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(37,99,235,0.45);
  color: #FFFFFF;
}
.btn-primary:active { transform: translateY(0); }

/* Ghost — for light backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(233,30,122,0.04);
  transform: translateY(-2px);
}

/* Ghost on dark backgrounds */
.btn-ghost-white {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Text link button */
.btn-link {
  background: none;
  color: var(--color-primary);
  border: none;
  padding: 0;
  font-weight: var(--weight-semibold);
  gap: var(--space-1);
}
.btn-link:hover { gap: var(--space-3); }

/* Sizes */
.btn-sm  { padding: 9px 18px; font-size: var(--text-xs); }
.btn-lg  { padding: 16px 32px; font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn-xl  { padding: 18px 40px; font-size: var(--text-lg); border-radius: var(--radius-lg); }

/* Icon inside button */
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--transition-fast); }
.btn:hover svg { transform: translateX(3px); }
.btn-link:hover svg { transform: translateX(3px); }

/* Button group */
.btn-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* =========================================
   CARDS
   ========================================= */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
  border-color: var(--border-primary);
}

/* Feature card with gradient top border */
.card--feature {
  border-top: 3px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                    var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-top: none;
  position: relative;
}
.card--feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.card--feature:hover::before { opacity: 1; }

/* =========================================
   ICON WRAP
   ========================================= */

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(233,30,122,0.15);
  margin-bottom: var(--space-5);
  transition: all var(--transition-base);
  flex-shrink: 0;
}
.icon-wrap svg { width: 24px; height: 24px; color: var(--color-primary); }
.card:hover .icon-wrap {
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow: var(--shadow-glow-primary);
}
.card:hover .icon-wrap svg { color: #FFFFFF; }

.icon-wrap--lg { width: 64px; height: 64px; border-radius: var(--radius-lg); }
.icon-wrap--lg svg { width: 30px; height: 30px; }

.icon-wrap--circle { border-radius: 50%; }

/* =========================================
   SECTION HEADER
   ========================================= */

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 14px;
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(233,30,122,0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.ic-page .ic-section--dark .section-label {
	border: 1px solid #ffffff66;
	color: var(--color-white);
}

.ic-page .ic-section--dark .section-label-dot{
	background: var(--color-white);
}
.section-label-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Gradient underline divider */
.divider-gradient {
  width: 48px; height: 3px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  margin: var(--space-4) 0;
}
.divider-gradient--center { margin: var(--space-4) auto; }
.divider-gradient--wide { width: 100%; height: 1px; }

/* =========================================
   BADGES / TAGS
   ========================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}
.badge-primary {
  background: rgba(233,30,122,0.08);
  color: var(--color-primary);
  border: 1px solid rgba(233,30,122,0.20);
}
.badge-secondary {
  background: rgba(106,27,154,0.08);
  color: var(--color-secondary);
  border: 1px solid rgba(106,27,154,0.20);
}
.badge-neutral {
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tech-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tech-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.tech-tag:hover {
  background: rgba(233,30,122,0.06);
  border-color: rgba(233,30,122,0.20);
  color: var(--color-primary);
}

/* =========================================
   FORM ELEMENTS
   ========================================= */

.form-group    { margin-bottom: var(--space-5); }
.form-label    { display: block; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); margin-bottom: var(--space-2); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: inherit;
  transition: all var(--transition-base);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(233,30,122,0.10);
}
.form-input.error, .form-textarea.error, .form-select.error {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.10);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237A7A9D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}
.form-error { display: block; font-size: var(--text-xs); color: #E53E3E; margin-top: 4px; min-height: 16px; }

/* =========================================
   STAT BLOCK
   ========================================= */

.stat-block { text-align: center; }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
}
.stat-label { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2); font-weight: var(--weight-medium); }

/* =========================================
   RESULT METRIC
   ========================================= */

.result-metric { text-align: center; padding: var(--space-4); }
.result-metric__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.result-metric__label { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

/* =========================================
   STAR RATING
   ========================================= */

.star-rating { display: flex; gap: 2px; }
.star-rating svg { width: 16px; height: 16px; fill: var(--color-primary); color: var(--color-primary); }

/* =========================================
   BACK TO TOP
   ========================================= */

.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-sticky);
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow-primary);
  border: none;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top svg { width: 20px; height: 20px; }

/* =========================================
   STEP/PROCESS BADGE
   ========================================= */

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow-primary);
}

/* =========================================
   CTA STRIP — gradient background section
   ========================================= */

.cta-strip {
  background: var(--gradient-brand);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-strip h2 { color: #FFFFFF; margin-bottom: var(--space-4); }
.cta-strip p  { color: rgba(255,255,255,0.85); font-size: var(--text-lg); margin-bottom: var(--space-8); }
