/* BMI Calculator — Tool Styles */
/* Extends /style.css — Health theme overrides */

/* ── Ad slots hidden ── */
.ad-slot,
.ad-leaderboard,
.ad-in-article,
.ad-anchor,
.ad-placeholder,
[class*='ad-slot'] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Page hero ── */
.tool-hero {
  background: linear-gradient(135deg, #059669 0%, #06b6d4 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}

.tool-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tool-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ── Main layout ── */
.tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Calculator card ── */
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.calc-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-card h2 svg {
  color: #10b981;
}

/* ── Form fields & Inputs ── */
.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.input-addon-group {
  display: flex;
  position: relative;
  width: 100%;
}

.input-addon-group input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-right: none;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
  font-weight: 500;
}

.input-addon-group input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.input-addon-group .select-wrapper {
  position: relative;
  display: flex;
}

.input-addon-group select {
  background: var(--border);
  border: 1.5px solid var(--border);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0 1.5rem 0 1rem;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: all 0.2s;
  min-width: 80px;
}

.input-addon-group .select-wrapper::after {
  content: "▼";
  font-size: 0.65rem;
  color: var(--text-muted);
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Submit Button */
.calc-btn {
  background: linear-gradient(135deg, #059669, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.calc-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.25);
}

/* ── Results Panel ── */
.results-container {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.result-card.highlight {
  grid-column: span 2;
  background: #eff6ff;
  border-color: #bfdbfe;
}

[data-theme="dark"] .result-card.highlight {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(96, 165, 250, 0.3);
}

@media (max-width: 600px) {
  .result-card.highlight {
    grid-column: span 1;
  }
}

.result-card .label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: block;
}

.result-card .value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.result-card .desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Color Tags */
.bmi-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.bmi-tag.underweight {
  background: #e0f2fe;
  color: #0369a1;
}

.bmi-tag.normal {
  background: #d1fae5;
  color: #065f46;
}

.bmi-tag.overweight {
  background: #fef3c7;
  color: #92400e;
}

.bmi-tag.obese {
  background: #fee2e2;
  color: #991b1b;
}

[data-theme="dark"] .bmi-tag.underweight {
  background: rgba(3, 105, 161, 0.2);
  color: #38bdf8;
}

[data-theme="dark"] .bmi-tag.normal {
  background: rgba(6, 95, 70, 0.2);
  color: #34d399;
}

[data-theme="dark"] .bmi-tag.overweight {
  background: rgba(146, 64, 14, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .bmi-tag.obese {
  background: rgba(153, 27, 27, 0.2);
  color: #f87171;
}

/* ── Interactive Gauge Track ── */
.gauge-wrapper {
  margin-top: 1.5rem;
  position: relative;
  width: 100%;
}

.gauge-track {
  height: 14px;
  border-radius: 50px;
  background: linear-gradient(to right, #38bdf8 0%, #38bdf8 25%, #34d399 25%, #34d399 50%, #fbbf24 50%, #fbbf24 75%, #f87171 75%, #f87171 100%);
  position: relative;
  width: 100%;
}

.gauge-marker {
  position: absolute;
  top: -8px;
  width: 12px;
  height: 30px;
  background: var(--text);
  border: 2.5px solid #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
  transition: left 0.5s ease-out;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 0.25rem;
}

/* ── Content section ── */
.content-section {
  margin-top: 2.5rem;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  border-left: 3px solid #10b981;
  padding-left: 0.75rem;
}

.content-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Steps Box */
.steps-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  counter-reset: steps;
}

.steps-box li {
  list-style: none;
  padding: 0.5rem 0 0.5rem 2.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.steps-box li:last-child {
  border-bottom: none;
}

.steps-box li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 24px;
  height: 24px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 24px;
  text-align: center;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-pill {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 1.25rem;
}

[data-theme="dark"] .feature-pill {
  background: rgba(16, 185, 129, 0.05);
}

.feature-pill strong {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.feature-pill p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* FAQ items */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* Related list */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.related-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #10b981;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

.related-list a:hover {
  color: var(--text);
}

.related-list a::before {
  content: "→";
  color: #10b981;
  font-weight: 800;
  margin-right: 0.1rem;
}

/* ── "People Also Use" section ── */
.related-tools-section {
  margin: 2.5rem 0;
}

.related-tools-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .related-tools-grid {
    grid-template-columns: 1fr;
  }
}

.result-card a {
  text-decoration: none;
  color: inherit;
}