/* Comic-themed Glossary Styles */

.glossary-section {
  margin-top: 48px;
  padding: 32px;
  background: #fff;
  border: 4px solid var(--comic-outline);
  border-radius: 12px;
  box-shadow: 14px 18px 0 rgba(0,0,0,0.1);
  position: relative;
  /* subtle dot grid background */
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Comic title style */
.glossary-title {
  font-family: 'Bangers', cursive;
  font-size: 42px;
  color: var(--comic-accent);
  text-align: center;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
  -webkit-text-stroke: 1px rgba(0,0,0,0.1);
}

.glossary-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 600;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.glossary-card {
  background: #fff;
  border: 3px solid var(--comic-outline);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
}

.glossary-card:hover {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: 10px 10px 0 rgba(0,0,0,0.15);
  background: #fffbf0; /* slight warm tint on hover */
  z-index: 1;
}

.glossary-card .term {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  color: var(--comic-blue);
  margin-bottom: 8px;
  letter-spacing: 1px;
  border-bottom: 2px dashed rgba(0,0,0,0.1);
  padding-bottom: 6px;
}

.glossary-card .definition {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  flex-grow: 1;
}

@media (max-width: 600px) {
  .glossary-section {
    padding: 20px;
  }
  .glossary-title {
    font-size: 32px;
  }
}