/* ==========================================================================
   THE HIPHOP TEMPLE — Community / Events / Challenges platform
   Backs templates/community.html (posts, events, challenges, profiles).
   Built on the homepage's real --ht24-* variables so this feature carries
   the same energy as the rest of the site.
   ========================================================================== */

.hero {
  position: relative;
  padding: 72px 40px 48px;
  margin-bottom: 40px;
  border-radius: var(--ht24-radius, 14px);
  border: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  background:
    linear-gradient(90deg, #050505 0%, rgba(5,5,5,.90) 45%, rgba(5,5,5,.55) 100%),
    url("/static/images/mega23/freestyle-flow.jpg") center/cover no-repeat;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 10px 0 14px;
  color: var(--ht24-white, #f5f5f2);
}

.hero p {
  max-width: 600px;
  color: var(--ht24-muted, #a7a7a7);
  font-size: 1.05rem;
  line-height: 1.6;
}

.layout {
  max-width: var(--ht24-max, 1400px);
  margin: 0 auto;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--ht24-panel, #111111);
  border: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  border-radius: var(--ht24-radius, 14px);
  padding: 24px;
  margin-bottom: 16px;
  color: var(--ht24-white, #f5f5f2);
}

.panel h2 {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.panel.empty {
  text-align: center;
  color: var(--ht24-muted, #a7a7a7);
  font-size: 0.95rem;
  padding: 40px 24px;
}

.composer textarea,
.panel input,
.panel textarea {
  width: 100%;
  min-height: 90px;
  background: var(--ht24-deep, #0b0b0b);
  border: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  border-radius: 10px;
  color: var(--ht24-white, #f5f5f2);
  padding: 14px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 12px;
  resize: vertical;
}

.panel input {
  min-height: unset;
}

.composer textarea:focus,
.panel input:focus,
.panel textarea:focus {
  outline: none;
  border-color: var(--ht24-gold, #f5b900);
}

.button,
.composer button,
.panel button {
  display: inline-flex;
  padding: 12px 24px;
  background: var(--ht24-gold, #f5b900);
  color: #050505;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.button:hover,
.composer button:hover,
.panel button:hover {
  background: var(--ht24-gold-bright, #ffc928);
}

.post {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.posthead {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--ht24-gold, #f5b900);
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

.muted {
  color: var(--ht24-muted, #a7a7a7);
  font-size: 0.85rem;
}

.body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ht24-white, #f5f5f2);
}

.actions {
  display: flex;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  padding-top: 12px;
}

.action {
  background: none;
  border: none;
  color: var(--ht24-muted, #a7a7a7);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: color 0.15s ease;
}

.action:hover {
  color: var(--ht24-gold, #f5b900);
}

.cards {
  display: grid;
  gap: 10px;
}

.side-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--ht24-deep, #0b0b0b);
  border: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  border-radius: 10px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.side-card:hover {
  border-color: var(--ht24-border-strong, rgba(245,185,0,.35));
  transform: translateY(-2px);
}

.side-card strong {
  color: var(--ht24-white, #f5f5f2);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
