/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 60, 52, 0.15);
}

.btn-terracotta {
  background-color: var(--secondary-accent);
  color: var(--white);
}

.btn-terracotta:hover {
  background-color: var(--secondary-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 90, 58, 0.15);
}

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

.btn-outline:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-accent);
  transform: translateY(-2px);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary-accent);
  padding: 8px 12px;
  font-size: 15px;
}

.btn-text:hover {
  color: var(--secondary-accent);
  padding-left: 16px;
}

/* Soft UI Cards */
.card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-diffused);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid rgba(26, 60, 52, 0.1);
}

.card-icon-terracotta {
  background-color: var(--terracotta-light);
  color: var(--secondary-accent);
  border-color: rgba(200, 90, 58, 0.1);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Interactive Components / Mockups */

/* 1. Attrition Risk Gauge */
.attrition-gauge-wrapper {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-diffused);
  max-width: 480px;
  margin: 0 auto;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.gauge-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.gauge-container {
  position: relative;
  width: 200px;
  height: 100px;
  margin: 20px auto 30px;
  overflow: hidden;
}

.gauge-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 20px solid var(--bg-secondary);
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}

.gauge-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 20px solid var(--secondary-accent);
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(35deg); /* Dynamic rotation for alert */
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-value {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-accent);
  line-height: 1;
}

.gauge-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.playbook-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.playbook-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playbook-list {
  list-style: none;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playbook-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.playbook-list li::before {
  content: "•";
  color: var(--secondary-accent);
  font-weight: bold;
}

/* 2. Before/After Obfuscation (Bias-Shielding) */
.obfuscation-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-diffused);
}

.obfuscation-header {
  background-color: var(--bg-secondary);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.obfuscation-switch-container {
  display: flex;
  background-color: var(--border-color);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.obfuscation-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.obfuscation-btn.active {
  background-color: var(--white);
  color: var(--primary-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.profile-card-mockup {
  padding: 32px;
  transition: all 0.5s ease;
}

.profile-header-mockup {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.profile-avatar-mockup {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-secondary);
  transition: all 0.5s ease;
}

.profile-info-mockup h4 {
  font-size: 18px;
  color: var(--primary-accent);
  transition: all 0.5s ease;
}

.profile-info-mockup p {
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.5s ease;
}

.obfuscated .profile-avatar-mockup {
  background: var(--accent-light);
  color: var(--primary-accent);
  border: 1px dashed var(--border-color);
}

.obfuscated-text {
  display: inline-block;
  background-color: #E2E8F0;
  color: transparent;
  border-radius: 4px;
  user-select: none;
  filter: blur(4px);
  opacity: 0.7;
}

.obfuscated .obfuscated-text {
  background-color: #E2D8C3;
  filter: blur(6px);
}

.obfuscated .profile-info-mockup h4::after {
  content: "Candidate #8492";
}

/* Forms */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-accent);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus {
  border-color: var(--primary-accent);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(26, 60, 52, 0.08);
}

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