/*
 * Page: Community Links
 * Template: templates/pages/community.html
 * Description: Styles for community resources including YouTube channels, Discord servers, and websites
 */

/* === Community Section === */
.community-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

/* === Cards Grid === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.link-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition:
    transform 0.2s,
    background 0.2s;
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.link-card h3 {
  color: #ffd700;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.link-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.link-card a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.link-card a:hover {
  color: #ffd700;
}

/* === YouTube Cards === */
.youtube-card .thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.video-title-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === State Badge === */
.state-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

/* === Filter Input === */
.filter-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.filter-input:focus {
  border-color: rgba(255, 215, 0, 0.5);
}

.filter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* === Messages === */
.hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.no-results {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  padding: 1rem;
}

.empty-state {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  padding: 1.5rem;
  text-align: center;
}
