/* ── Stay in the Loop - Raycast Multi-Platform Style ── */
.community-section {
  position: relative;
  padding: 120px 0 120px;
  overflow: hidden;
}

/* Background glow effect */
.community-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    rgba(88, 101, 242, 0.12) 0%,
    rgba(114, 137, 218, 0.06) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.community-header {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto 56px;
  text-align: center;
}

.community-header h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.community-header p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.2px;
}

/* Platform Cards Grid */
.community-platforms {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 80px;
}

.community-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow: hidden;
}

.community-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.community-card:hover::before {
  opacity: 1;
}

.community-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.community-card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.community-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.community-card-stats {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin: 0;
}

.community-card-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 20px;
  flex-grow: 1;
}

.community-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: gap 0.2s ease;
}

.community-card:hover .community-card-cta {
  gap: 12px;
}

.community-card-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.community-card:hover .community-card-arrow {
  opacity: 1;
}

/* Video Section */
.community-videos {
  position: relative;
  z-index: 1;
  margin-top: 80px;
}

.community-videos-header {
  text-align: center;
  margin-bottom: 40px;
}

.community-videos-title {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.community-videos-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.community-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.community-video-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-decoration: none;
}

.community-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.community-video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(114, 137, 218, 0.05) 100%);
  overflow: hidden;
}

.community-video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.community-video-card:hover .community-video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 1);
}

.community-video-play svg {
  width: 20px;
  height: 20px;
  color: #000;
  margin-left: 2px;
}

.community-video-info {
  padding: 16px;
}

.community-video-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

  .community-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .community-section {
    padding: 100px 0 100px;
  }

  .community-header {
    margin-bottom: 48px;
  }

  .community-platforms {
    gap: 16px;
    margin-bottom: 60px;
  }

  .community-card {
    padding: 24px;
  }

  .community-videos {
    margin-top: 60px;
  }

  .community-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .community-section {
    padding: 80px 0 80px;
  }

  .community-header h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .community-header p {
    font-size: 16px;
  }

  .community-card {
    padding: 20px;
  }

  .community-card-header {
    gap: 10px;
  }

  .community-card-icon {
    width: 28px;
    height: 28px;
  }

  .community-card-title {
    font-size: 18px;
  }
}
