/* =========================================================
   STRUCTURAL & THERMAL — CONTENT ONLY
   (Hero & Footer untouched)
========================================================= */

/* ---------- PAGE LAYOUT CONTROL ---------- */

body {
  height: 100vh;
  overflow: hidden; /* body never scrolls */
}

/* Scrollable middle content only */
.content-scroll {
  position: absolute;
  top: 220px;      /* below hero */
  bottom: 60px;    /* above footer */
  left: 0;
  right: 0;
  overflow-y: auto;
  padding: 50px 0 70px;
}

/* ---------- MAIN CONTENT WRAPPER ---------- */

#structural-content {
  display: flex;
  justify-content: center;
}

/* ---------- LINEAR ANALYSIS BOX ---------- */

.analysis-box {
  width: 72%;
  max-width: 1100px;
  background: #ffffff;
  border: 2px solid #1e1e1e;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  padding: 40px 36px 48px;
  text-align: center;
}

/* ---------- TITLE ---------- */

.analysis-title {
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 28px; /* space before buttons */
  color: #0f172a;
}

/* ---------- TOP ACTION BUTTONS ---------- */

.analysis-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 42px; /* 🔴 KEY FIX: distance from circles */
}

.analysis-btn {
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;

  background: #1e1e1e;
  color: #ffffff;

  border: 2px solid #1e1e1e;
  border-radius: 999px;
  cursor: pointer;

  transition: all 0.25s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.analysis-btn:hover {
  background: #ffffff;
  color: #1e1e1e;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.analysis-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- ELEMENT SELECTOR ROW ---------- */

.element-selector {
  display: flex;
  justify-content: center;
  gap: 52px;
}

/* ---------- CIRCULAR ELEMENT BUTTONS ---------- */

.element-card {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #f9fafb;
  border: 2px solid #1e1e1e;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.element-label {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  line-height: 1.3;
}

/* Hover effect */
.element-card:hover {
  background: #1e1e1e;
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26);
}

.element-card:hover .element-label {
  color: #ffffff;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .analysis-box {
    width: 90%;
  }

  .analysis-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
  }

  .element-selector {
    flex-direction: column;
    gap: 28px;
  }
}
