/* Forum Styles */

.forum-main {
  width: 100%;
  max-width: 100%;
}

.hero-section {
  height: 40vh;
  min-height: 300px;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/community/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Forum Layout */
.forum-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

/* Sidebar */
.forum-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.user-panel {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.user-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Forum Navigation */
.forum-nav {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.forum-nav ul {
  list-style: none;
  padding: 0;
}

.forum-nav li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forum-nav li a:hover {
  color: var(--primary-color);
}

/* Community Stats */
.community-stats {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  text-align: center;
}

.stat-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Categories */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.view-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-view {
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
}

.btn-view.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.categories-grid {
  display: grid;
  gap: 1.5rem;
}

.category-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.category-content h3 {
  margin: 0 0 0.5rem;
}

.category-content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.category-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.latest-post {
  text-align: right;
  font-size: 0.9rem;
}

.latest-post span {
  display: block;
  color: var(--text-color);
}

.latest-post small {
  color: var(--text-muted);
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.activity-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.activity-header {
  margin-bottom: 0.5rem;
}

.activity-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Featured Discussions */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  position: relative;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
}

.featured-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.featured-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.3rem 0.8rem;
  background: var(--background-light);
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .forum-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .category-card {
    grid-template-columns: auto 1fr;
  }

  .latest-post {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 200px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .activity-item {
    flex-direction: column;
  }

  .featured-meta {
    flex-wrap: wrap;
  }
}