/* Section-specific Styles */

/* Events Section */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.event-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--primary-color);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.event-content {
  padding: var(--space-xl);
}

.event-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.event-location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
}

.event-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.event-price {
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
}

.event-price.free {
  color: var(--success-color);
}

/* Business Directory */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.business-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.business-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.business-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.business-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  flex-shrink: 0;
}

.business-info h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.business-category {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

.business-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--warning-color);
}

.star.empty {
  color: var(--border-color);
}

.rating-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.business-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.business-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Community/Forum Section */
.forum-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.forum-category {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.forum-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.forum-category h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.forum-category p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.forum-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.forum-topics {
  margin-top: var(--space-2xl);
}

.topic-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  background: var(--bg-primary);
  transition: all var(--transition-fast);
}

.topic-item:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
}

.topic-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-weight-semibold);
  flex-shrink: 0;
}

.topic-content {
  flex: 1;
}

.topic-title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.topic-meta {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.topic-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* Support Services Section */
.support-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.support-service {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.support-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.support-service.urgent {
  border-color: var(--error-color);
  background: rgba(220, 53, 69, 0.05);
}

.support-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: var(--font-size-2xl);
  color: white;
}

.support-service.urgent .support-icon {
  background: var(--error-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.support-service h3 {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.support-service p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.support-contact {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
}

.support-service.urgent .support-contact {
  color: var(--error-color);
}

/* Classifieds Section */
.classifieds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.classified-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.classified-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.classified-image {
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-size-3xl);
}

.classified-content {
  padding: var(--space-lg);
}

.classified-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.classified-price {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.classified-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
}

.classified-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
}

/* Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.resource-category {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-fast);
}

.resource-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.resource-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.resource-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-lg);
}

.resource-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.resource-items {
  list-style: none;
  padding: 0;
}

.resource-items li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

.resource-items li:last-child {
  border-bottom: none;
}

.resource-items a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.resource-items a:hover {
  color: var(--primary-color);
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  color: var(--primary-color);
  margin-bottom: var(--space-xl);
}

.about-content p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-3xl) 0;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-2xl);
}

.team-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.team-role {
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-md);
}

.team-bio {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* Filter Systems */
.filter-container {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-2xl);
  border: 1px solid var(--border-color);
}

.filter-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.filter-row {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.filter-select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
  outline: none;
}

.filter-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

.results-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-card {
  height: 300px;
  border-radius: var(--radius-lg);
}

.skeleton-text {
  height: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.empty-state p {
  margin-bottom: var(--space-xl);
}

/* Error States */
.error-state {
  text-align: center;
  padding: var(--space-3xl);
  background: rgba(220, 53, 69, 0.05);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: var(--radius-lg);
  color: var(--error-color);
}

.error-state-icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-lg);
}

.retry-button {
  margin-top: var(--space-lg);
}