/* ============================================================
   EcoHost Checker — page-specific styles
   Reuses design tokens from style.css
   ============================================================ */

/* ---- Hero ---- */
.eh-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.eh-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.eh-hero__badge svg { color: var(--accent); }

.eh-hero__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.eh-hero__sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 56ch;
  margin-bottom: 32px;
}

.eh-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.eh-hero__note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-light);
}

/* ---- App section ---- */
.eh-app { padding: 0 0 96px; }

/* ---- Tabs ---- */
.eh-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.eh-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.eh-tab:hover { color: var(--text); }
.eh-tab--active { color: var(--accent); border-bottom-color: var(--accent); }
.eh-tab svg { flex-shrink: 0; }

/* ---- Panels ---- */
.eh-panel { display: none; }
.eh-panel--active { display: block; }

.eh-panel__header { margin-bottom: 32px; }

.eh-panel__title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.eh-panel__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 60ch;
}

.eh-panel__desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   GREEN CHECK PANEL
   ============================================================ */

/* Domain input form */
.eh-url-form__row {
  display: flex;
  gap: 12px;
}

.eh-url-form__input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.15s;
}

.eh-url-form__input:focus { outline: none; border-color: var(--accent); }
.eh-url-form__input::placeholder { color: var(--text-light); }

.eh-url-form__hint {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

/* Result card */
.eh-result {
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
}

.eh-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.eh-result__badge--green {
  background: #d1fae5;
}

.eh-result__badge--grey {
  background: #fee2e2;
}

.eh-result__badge--unknown {
  background: #fef3c7;
}

.eh-result__icon {
  font-size: 28px;
  line-height: 1;
}

.eh-result__status {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eh-result__badge--green .eh-result__status { color: #065f46; }
.eh-result__badge--grey .eh-result__status { color: #991b1b; }
.eh-result__badge--unknown .eh-result__status { color: #92400e; }

.eh-result__domain {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.eh-result__detail {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 60ch;
  margin-bottom: 24px;
}

/* Provider info rows */
.eh-result__info {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.eh-result__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.eh-result__row:last-child { border-bottom: none; }

.eh-result__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.eh-result__value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mid);
}

/* Explainer box */
.eh-result__explainer {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.eh-result__explainer--green {
  background: #f0fdf4;
  color: #166534;
}

.eh-result__explainer--grey {
  background: #fef2f2;
  color: #991b1b;
}

.eh-result__explainer--unknown {
  background: #fffbeb;
  color: #92400e;
}

.eh-result__actions { display: flex; gap: 12px; }

/* ============================================================
   GREEN PROVIDERS PANEL
   ============================================================ */
.eh-providers {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.eh-provider {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.eh-provider:last-child { border-bottom: none; }

.eh-provider__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.eh-provider__body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.eh-provider__body p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.eh-provider__tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

.eh-provider__tag--green { background: #d1fae5; color: #065f46; }

.eh-providers__cta {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-mid);
}

.eh-providers__cta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   WHY IT MATTERS PANEL
   ============================================================ */
.eh-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.eh-fact {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
}

.eh-fact__number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.eh-fact__body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.eh-fact__body p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mid);
}

/* What you can do */
.eh-impact {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}

.eh-impact h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.eh-impact ul {
  list-style: disc;
  padding-left: 20px;
}

.eh-impact li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.eh-impact li:last-child { margin-bottom: 0; }

.eh-impact a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eh-impact strong {
  color: var(--text);
  font-weight: 600;
}

/* Comparison info box */
.eh-comparison {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 14px;
  line-height: 1.6;
}

.eh-comparison svg { flex-shrink: 0; margin-top: 2px; }
.eh-comparison strong { font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 840px) {
  .eh-facts { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .eh-hero { padding: 40px 0 32px; }
  .eh-hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .eh-tab { padding: 12px 16px; font-size: 13px; }
  .eh-tab svg { display: none; }
  .eh-url-form__row { flex-direction: column; }
  .eh-result { padding: 20px; }
  .eh-result__row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
