/* ═══════════════════════════════════════════════
   PlantConnectome – Index Page Styles
   Palette: blue (#3498db) · green (#27ae60) · slate
   ═══════════════════════════════════════════════ */

/* ── Image Heading ── */
.image-heading {
  text-align: center;
  position: relative;
}
.image-heading img#plantC-title {
  display: inline-block;
  max-width: 45%;
  vertical-align: middle;
}

/* ── Loading Animation ── */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Hero ── */
.callout.large {
  padding-bottom: 5px !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}
h3 small {
  font-size: 0.6em;
  color: #666;
}

/* ── Lead text ── */
.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #34495e;
  margin-top: 10px;
}
.lead strong.count {
  color: #27ae60;
  font-weight: 700;
}

/* ── Grid ── */
.grid-container {
  padding-top: 5px !important;
  max-width: 1200px;
  margin: 0 auto;
}
.grid-x {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
.cell {
  padding-left: 15px;
  padding-right: 15px;
}
.medium-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

/* ── Search Forms ── */
form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
form:focus-within {
  box-shadow: 0 2px 12px rgba(52, 152, 219, 0.15);
  border-color: #aed6f1;
}
form label {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #2c3e50;
}
form input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: 5px;
  margin-bottom: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
form input[type="text"]:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Buttons (blue) ── */
.button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s;
  flex: 1 1 auto;
  min-width: 100px;
  text-align: center;
}
.button:hover {
  background-color: #2980b9;
}
.button:active {
  transform: scale(0.98);
}

.button.hollow {
  background-color: white;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 8px 18px;
}
.button.hollow:hover {
  background-color: #3498db;
  color: white;
}

/* ── Search Instructions ── */
.search-instructions {
  margin-top: 20px;
}
.search-instructions h4 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.help-text {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.6;
  min-height: 60px;
}

/* ── Cytoscape preview ── */
.figure-legend {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 4px 0 0;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .medium-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .button-group {
    flex-direction: column;
  }
  .button {
    width: 100%;
    min-width: unset;
  }
}
