/* Styles specific to the Blocklists page */
h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 2rem;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  cursor: pointer;
  overflow: hidden; /* Important for the animation */
  justify-items: center;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

li:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

li a.desc-hover {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-text);
  display: block;
}

/* Description text styling and hover effect */
.desc-text {
  display: block;
  color: var(--secondary-text);
  font-size: 1rem;
  line-height: 1.5;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition:
  transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
  opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
  margin-top 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

li:hover .desc-text {
  transform: scaleY(1);
  opacity: 1;
  margin-top: 0.75rem;
}

small {
  font-size: calc(1.5rem*.75);
  color: var(--secondary-text);
}
/* Responsive adjustments for the list */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  li a.desc-hover { font-size: 1.25rem; }
  .desc-hover small {
    display: block; /* acts like <br> on mobile */
    font-size: 0.75rem;
    text-align: center;
  }

}
