/* === SECTION TEMPLATE STYLES === */

/* Standard section heading */
.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  text-align: center;
}
.section-lead {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-fg);
}

/* TEXT ALIGNMENT UTILITIES */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}

/* SECTION: INTRO */
.section-intro {
  background: linear-gradient(to bottom, #1a1a1a, #111);
  padding: 4rem 2rem;
}
.section-intro .section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.section-intro .section-lead {
  font-size: 1.2rem;
  line-height: 1.7;
}

/* SECTION: FORM */
.section-form {
  background: linear-gradient(to bottom, #181818, #131313);
  padding: 4rem 2rem;
}
.section-form form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-family: var(--font-alt);
}
.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--color-muted);
  background-color: #2a2a2a;
  color: #fff;
}

/* SECTION: CARDS */
.section-cards {
  background-color: #121212;
  padding: 4rem 2rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background-color: #1f1f1f;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card h4 {
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--color-fg);
}
.card .group-code {
  font-size: 0.8rem;
  color: var(--color-highlight);
}

/* SECTION: FEED */
.section-feed {
  background-color: #101010;
  padding: 4rem 2rem;
}
.feed-item {
  border-bottom: 1px solid #333;
  padding: 1.5rem 0;
}
.feed-item h4 {
  font-size: 1.2rem;
  color: var(--color-accent);
}
.feed-item p {
  font-size: 1rem;
  color: var(--color-fg);
  margin: 0.5rem 0 0;
}

/* SECTION: COLUMNS */
.section-columns {
  background: #161616;
  padding: 4rem 2rem;
}
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.column {
  flex: 1 1 300px;
  max-width: 500px;
}

/* DIRECTORY PAGE STYLES */
.directory-toggle {
  text-align: center;
  margin-bottom: 2rem;
}
.directory-toggle button {
  background-color: var(--color-btn);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.directory-toggle button.active,
.directory-toggle button:hover {
  background-color: var(--color-btn-hover);
}

.directory-content {
  display: none;
}
.directory-content.active {
  display: block;
}

/* Optional fade-in when visible (tied to scroll reveal JS) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
