/* ====================================================
   DYNAMIC CONTENT STYLES FOR PUBLIC PAGES
   ==================================================== */

/* Projects Section */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.projects-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card,
.event-card {
  background: #0a0f1b;
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.project-card:hover,
.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 16px 40px rgba(132, 204, 22, 0.15);
}

.project-image,
.event-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-info,
.event-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3,
.event-card h3 {
  color: #fbbf24;
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.project-date,
.event-date,
.event-location {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.project-description,
.event-description {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.75rem 0;
  flex: 1;
}

.project-actions,
.event-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.project-link,
.event-link {
  display: inline-block;
  color: #84cc16;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.project-link:hover,
.event-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* Empty States */
.empty-state-container {
  text-align: center;
  padding: 3rem 2rem;
  color: #9ca3af;
}

.empty-state-container p {
  font-size: 1.1rem;
  margin: 1rem 0;
}

/* Loading State */
.loading-skeleton {
  background: linear-gradient(90deg, #1a202c, #0a0f1b, #1a202c);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: #0a0f1b;
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.skeleton-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(90deg, #1a202c, #0a0f1b, #1a202c);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-content {
  padding: 1.5rem;
}

.skeleton-title {
  height: 24px;
  background: linear-gradient(90deg, #1a202c, #0a0f1b, #1a202c);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: 70%;
}

.skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, #1a202c, #0a0f1b, #1a202c);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Testimonials Carousel */
.testimonials-carousel {
  margin-top: 2rem;
}

.carousel-wrapper {
  position: relative;
}

.carousel-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
  padding: 1rem 0.5rem;
}

.testimonial-card {
  flex: 0 0 360px;
  min-height: 280px;
  background: #0a0f1b;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(251, 191, 36, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.testimonial-card h4 {
  color: #fbbf24;
  font-size: 1.1rem;
  margin: 0 0 0.3rem 0;
  font-weight: 700;
}

.t-title {
  color: #84cc16;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.t-comment {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0.8rem 0;
}

.t-comment p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  font-style: italic;
}

.t-date {
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: auto;
  opacity: 0.85;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #fbbf24;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: rgba(17, 24, 39, 0.95);
  box-shadow: 0 6px 18px rgba(132, 204, 22, 0.15);
  color: #84cc16;
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

/* Testimonial Ticker */
.testimonial-ticker {
  background: #0a0f1b;
  border-bottom: 1px solid rgba(251, 191, 36, 0.12);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0 1rem;
  color: #cbd5e1;
}

.ticker-name {
  color: #fbbf24;
  font-weight: 700;
}

.ticker-quote {
  color: #84cc16;
  font-style: italic;
}

/* Carousel Indicators */
.carousel-indicator {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.carousel-indicator .current {
  color: #fbbf24;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid,
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .carousel-track {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .projects-container,
  .testimonials-carousel {
    padding: 2rem 1rem;
  }

  .projects-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    gap: 0.75rem;
  }

  .testimonial-card {
    flex: 0 0 100%;
    min-height: auto;
  }

  .carousel-arrow {
    display: none;
  }

  .project-image,
  .event-image {
    height: 180px;
  }

  .project-info,
  .event-info {
    padding: 1rem;
  }

  .project-card h3,
  .event-card h3 {
    font-size: 1.1rem;
  }

  .testimonial-ticker {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .ticker-item {
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .projects-grid,
  .events-grid {
    gap: 1rem;
  }

  .project-card,
  .event-card,
  .testimonial-card {
    padding: 1rem;
  }

  .project-image,
  .event-image {
    height: 150px;
  }

  .project-card h3,
  .event-card h3,
  .testimonial-card h4 {
    font-size: 1rem;
  }

  .project-description,
  .event-description,
  .t-comment p {
    font-size: 0.85rem;
  }

  .testimonial-ticker {
    display: none;
  }
}
