/* AI Beginner Community
 * Sits on top of assets/css/main.css. The site theme is dark purple, so cards are
 * translucent white with teal accents, matching /members.
 */

:root {
  --c-teal: #2EC4B6;
  --c-blue: #35A4FF;
  --c-pink: #BA4E95;
  --c-card: rgba(255, 255, 255, 0.06);
  --c-line: rgba(255, 255, 255, 0.14);
}

/* ---------- shared ---------- */

.c-lede { max-width: 58ch; opacity: 0.88; }

.c-note { font-size: 0.85rem; opacity: 0.75; }

.c-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
}

.c-notice {
  background: rgba(46, 196, 182, 0.10);
  border: 1px solid rgba(46, 196, 182, 0.32);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}
.c-notice p { margin: 0; }
.c-notice p + p { margin-top: 0.4rem; }

.c-error {
  background: rgba(255, 120, 120, 0.10);
  border: 1px solid rgba(255, 150, 150, 0.35);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
}

.c-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--c-teal);
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px dotted rgba(46, 196, 182, 0.5);
}

.c-authbar {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.9;
}
.c-who { opacity: 0.8; }

.c-signin.button.primary,
.c-form .button.primary {
  background: var(--c-teal);
  border-color: var(--c-teal);
}

.c-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.c-back {
  display: inline-block;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--c-teal);
  text-decoration: none;
}

/* ---------- category grid ---------- */

.c-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}
.c-categories li { margin: 0; }

.c-category {
  display: block;
  height: 100%;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-teal);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.c-category:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(46, 196, 182, 0.55); }
.c-category h2 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.c-category .c-count { font-size: 0.8rem; opacity: 0.7; }

/* ---------- post lists ---------- */

.c-posts { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.c-posts li { margin: 0 0 0.9rem; }

.c-post {
  display: block;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: inherit;
}
.c-post:hover { background: rgba(255, 255, 255, 0.10); }
.c-post h3 { font-size: 1rem; margin: 0 0 0.3rem; line-height: 1.35; }
.c-meta { font-size: 0.78rem; opacity: 0.7; }
.c-meta .c-cat { color: var(--c-teal); }

/* ---------- single post + replies ---------- */

.c-body { margin: 1.2rem 0 0; }
.c-body p { margin: 0 0 1rem; }
.c-body p:last-child { margin-bottom: 0; }

.c-replies { list-style: none; margin: 2rem 0 0; padding: 0; }
.c-replies li {
  margin: 0 0 1rem;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.c-replies .c-body p { margin-bottom: 0.7rem; }

/* ---------- forms ---------- */

.c-form { margin-top: 2rem; }
.c-form label {
  display: block;
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
  opacity: 0.85;
}
.c-form input[type="text"],
.c-form input[type="email"],
.c-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  color: #241a3a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  font-family: inherit;
}
.c-form textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.c-form .c-note { margin: 0.6rem 0 0; }

/* The signed-out prompt where a compose box would otherwise be. */
.c-gate {
  margin-top: 2rem;
  border: 1px dashed var(--c-line);
  border-radius: 10px;
  padding: 1.3rem 1.4rem;
}
.c-gate p { margin: 0 0 1rem; }
