/* Community Page */
.community-page {
  background: linear-gradient(135deg, #0f1419 0%, #1a252f 100%);
  min-height: 100vh;
  position: relative;
}

.community-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(255, 153, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255, 153, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Hero Section */
.community-hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25rem;
  color: #cbd5e0;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff9900, #e68900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
  color: #cbd5e0;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Section */
.community-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(35, 47, 62, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 153, 0, 0.2);
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: #cbd5e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.filter-tab:hover {
  background: rgba(255, 153, 0, 0.1);
  color: #ff9900;
}

.filter-tab.active {
  background: linear-gradient(135deg, #ff9900, #e68900);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.search-bar {
  position: relative;
  width: 300px;
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ff9900;
  font-size: 1.1rem;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background: rgba(35, 47, 62, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 153, 0, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: #ff9900;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.search-bar input::placeholder {
  color: #cbd5e0;
}

/* Communities Section */
#communities {
  padding: 5rem 0;
  background: #0a0e13;
}

.communities-showcase {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

#communities h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #cbd5e0;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.community-card {
  background: rgba(35, 47, 62, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 153, 0, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.community-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff9900, #e68900, #ff9900);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.community-card:hover {
  background: rgba(35, 47, 62, 0.9);
  border-color: rgba(255, 153, 0, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 153, 0, 0.2);
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.community-image {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16202b, #ff9900);
  overflow: hidden;
}

.community-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.community-card:hover .community-image::before {
  transform: translateX(100%);
}

.community-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.community-card:hover .community-placeholder {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.community-initials {
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.community-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #16202b;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 3;
}

.member-count {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
}

.community-card-content {
  padding: 2rem;
  flex: 1;
  text-align: center;
}

.community-card-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.community-card-content p {
  color: #cbd5e0;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(255, 153, 0, 0.1);
  color: #ff9900;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 153, 0, 0.3);
}

.social-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#communities .social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 153, 0, 0.1);
  color: #ff9900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

#communities .social-link:hover {
  background: rgba(255, 153, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.community-card-footer {
  padding: 1.5rem 2rem;
  background: rgba(15, 20, 25, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 153, 0, 0.2);
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.community-rating {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.community-rating .stars {
  display: flex;
  gap: 2px;
}

.community-rating .stars i {
  color: #ddd;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.community-rating .stars i.active {
  color: #ff9900;
}

.community-rating .rating-value {
  color: #cbd5e0;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Call to Action */
.community-cta {
  text-align: center;
  padding: 4rem 0;
  margin-top: 4rem;
  background: rgba(35, 47, 62, 0.5);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 153, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: #cbd5e0;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.communities-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9900, #e68900);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: #ff9900;
  border: 2px solid rgba(255, 153, 0, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 153, 0, 0.1);
  border-color: #ff9900;
  color: #ffffff;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .communities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .community-filters {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .search-bar {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .hero-stats .stat-number {
    font-size: 2.5rem;
  }
  
  .filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .communities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .community-card-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .card-actions {
    justify-content: center;
  }
  
  .community-rating {
    align-items: center;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .community-card-content {
    padding: 1.5rem;
  }
  
  .community-card-footer {
    padding: 1rem 1.5rem;
  }
}