/* New styles for the Star Delta Calculator Result Section */

.calculator-results {
  background: var(--light); /* Use a light background for the whole results area */
  padding: 2.5rem; /* More padding for overall section */
  border-radius: 1rem; /* Rounded corners for the main results card */
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.calculator-results h3 {
  font-size: 2rem; /* Larger heading for results */
  color: var(--dark);
  margin-bottom: 2rem; /* More space below heading */
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid for results */
  gap: 1.5rem; /* Spacing between result items */
  margin-bottom: 2.5rem; /* Space before other materials */
}

.result-item {
  background: var(--white);
  padding: 1.5rem; /* Padding inside each result item */
  border-radius: 0.75rem; /* Slightly rounded corners for items */
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column; /* Stack label and value */
  justify-content: space-between;
  align-items: flex-start; /* Align text to start */
  min-height: 100px; /* Ensure consistent height */
}

.result-item.full-width {
  grid-column: 1 / -1; /* Make specific items span full width on larger screens */
}

.result-label {
  font-weight: 600; /* Semi-bold label */
  color: var(--text);
  font-size: 1.1rem; /* Slightly larger label text */
  margin-bottom: 0.5rem; /* Space between label and value */
}

.result-value {
  color: var(--primary);
  font-weight: 700; /* Extra bold value */
  font-size: 1.2rem; /* Larger value text */
  line-height: 1.2;
}

/* --- Improved Other Materials Section Styles --- */
.other-materials-section {
  background: var(--white); /* Keep white background */
  padding: 2.5rem; /* Increased padding */
  border-radius: 1rem; /* More rounded corners */
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Stronger, more noticeable shadow */
  margin-top: 2.5rem; /* Ensure good spacing from previous section */
}

.other-materials-heading {
  font-weight: 700; /* Bold heading */
  font-size: 1.8rem; /* Larger heading */
  color: var(--dark);
  margin-bottom: 1.8rem; /* More space below heading */
  border-bottom: 2px solid var(--primary); /* Thicker, primary-colored separator line */
  padding-bottom: 1rem; /* More padding below line */
  text-align: center; /* Center the heading */
}

.material-list {
  list-style: none; /* Remove default list style */
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjusted minmax for better responsiveness */
  gap: 1rem 2rem; /* Increased spacing between material items */
}

.material-item {
  color: var(--text); /* Slightly darker text for better contrast */
  font-size: 1.05rem; /* Slightly larger font size */
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Increased gap for bullet and text */
  padding: 0.5rem 0; /* Add vertical padding for each item */
}

.material-item::before {
  content: "•"; /* Custom bullet point */
  color: var(--accent); /* Use accent color for bullet */
  font-size: 1.5em; /* Larger bullet */
  line-height: 1;
  font-weight: 900; /* Make bullet bolder */
}

.material-item span {
  font-weight: 600; /* Semi-bold for the value text */
  color: var(--dark); /* Darker color for the value */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .calculator-results {
    padding: 0.5rem;
  }
  .calculator-results h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  .results-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1rem;
  }
  .result-item {
    padding: 1rem;
    min-height: auto;
  }
  .result-label {
    font-size: 1rem;
  }
  .result-value {
    font-size: 1.4rem;
  }
  .other-materials-section {
    padding: 1.5rem;
  }
  .other-materials-heading {
    font-size: 1.5rem; /* Adjusted for mobile */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }
  .material-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .material-item {
    font-size: 1rem;
    gap: 0.5rem;
  }
}
