/* ========================================= */
/* Metashift – Infrastructure Analyzer Style */
/* Matches index.html palette + card style   */
/* ========================================= */

:root {
  /* fallback if index.css isn't loaded */
  --charcoal: #2d3436;
  --slate: #636e72;
  --steel: #b2bec3;
  --silver: #dfe6e9;
  --white: #ffffff;
  --accent-teal: #25445c;
  --accent-orange: #e17055;
  --light-bg: #f8f9fa;
}

.metashift-infra {
  padding: 6rem 2rem 4rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--light-bg) 100%);
}

.infra-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.infra-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-teal);
}

.infra-card h1 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
  letter-spacing: -1px;
}

.infra-subtitle {
  text-align: center;
  margin: 0 auto 2rem;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
}

/* form layout */
.infra-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.infra-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 768px) {
  .metashift-infra {
    padding: 5.5rem 1.5rem 3rem;
  }

  .infra-card {
    padding: 2rem 1.5rem;
  }

  .infra-row {
    grid-template-columns: 1fr;
  }
}

.infra-card label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
}

.infra-card select,
.infra-card input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--silver);
  border-radius: 6px;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.infra-card select:focus,
.infra-card input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(37, 68, 92, 0.15);
}

.infra-help {
  margin-top: -0.5rem;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
}

/* CTA button matches your .btn-primary feel */
.infra-card button {
  width: 100%;
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  background: var(--accent-teal);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.infra-card button:hover {
  background: #1f3a50; /* slightly darker teal */
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 68, 92, 0.18);
}

.infra-card button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* results/status */
.infra-card .status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
}

/* optional results panel (if you show output) */
.infra-result {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem;
  border: 1px solid var(--silver);
  background: var(--light-bg);
  border-radius: 6px;
  color: var(--charcoal);
}

.infra-result h3 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--charcoal);
}

.infra-result ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--slate);
  line-height: 1.7;
}

.infra-badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--silver);
  color: var(--accent-teal);
  background: rgba(37, 68, 92, 0.06);
}
