/**
 * Content Components Styles
 * Shared component styles used across content sections
 */

/* Compound Cards */
.compounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.compound-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: transform 0.3s ease;
}

.compound-card:hover {
  transform: translateY(-5px);
}

.compound-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}

.compound-card h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.compound-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-compound {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-compound:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

/* Mushroom Cards */
.mushrooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.mushroom-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: transform 0.3s ease;
}

.mushroom-card:hover {
  transform: translateY(-10px);
}

.mushroom-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
  aspect-ratio: 1;
}

.mushroom-card:hover img {
  transform: scale(1.05);
}

.mushroom-content {
  padding: 25px;
}

.mushroom-content h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.mushroom-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-mushroom {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-mushroom:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

/* Product Section Cards - Make images square */
.product-section .product-grid .card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  aspect-ratio: 1;
}

/* CSS Carousel/Slider - Replaces Swiper */
/* Basic carousel container */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

/* Carousel navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  font-size: 18px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Mission Grid */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.mission-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
}

.mission-card h4 {
  color: var(--heading-color);
  margin: 1rem 0 0.75rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.mission-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.mission-card i {
  margin-bottom: 1rem;
  display: block;
}

/* Compounds Grid */
.compounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.compound-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-light);
}

.compound-card:hover {
  transform: translateY(-5px);
}

.compound-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2rem;
  color: white;
}

.compound-card h4 {
  color: var(--heading-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.compound-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.compound-card .btn {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.compound-card .btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Culture Content */
.culture-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.culture-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.culture-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* How It Works */
.how-it-works-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.spec-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.spec-content h4 {
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}

.spec-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Carousel dots/indicators */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Auto-play animation */
@keyframes carouselAuto {
  0%, 100% { transform: translateX(0); }
  33.33% { transform: translateX(-100%); }
  66.66% { transform: translateX(-200%); }
}

.carousel-auto .carousel-container {
  animation: carouselAuto 12s infinite;
}

.carousel-paused .carousel-container {
  animation-play-state: paused;
}

/* Touch/swipe support */
.carousel-touch {
  touch-action: pan-y;
}

/* Responsive carousel */
@media (max-width: 768px) {
  .carousel-nav {
    display: none;
  }

  .carousel-dots {
    bottom: 15px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

/* Fade carousel variant */
.carousel-fade .carousel-slide {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-fade .carousel-slide.active {
  opacity: 1;
  position: relative;
}

/* Vertical carousel */
.carousel-vertical .carousel-container {
  flex-direction: column;
  height: 400px;
}

.carousel-vertical .carousel-slide {
  height: 100%;
}

/* Multiple slides visible */
.carousel-multi .carousel-slide {
  flex: 0 0 auto;
  width: 300px;
  margin-right: 20px;
}

.carousel-multi .carousel-container {
  width: calc(300px * 3 + 40px); /* 3 slides + margins */
}

/* Announcement bar carousel */
.announcement-bar {
  background: var(--primary-color);
  color: white;
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}

.announcement-slider {
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.announcement-slide {
  display: inline-block;
  padding: 0 50px;
  font-size: 14px;
  font-weight: 500;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Pause on hover */
.announcement-slider:hover {
  animation-play-state: paused;
}

/* ============================================
   TESTIMONIALS SECTION - Shared Component
   ============================================ */

.testimonials-section {
  padding: var(--spacing-xxxl) 0;
  background: var(--background-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xxl);
}

.testimonial-card {
  background: var(--background-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--spacing-md);
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-opacity-20);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

/* ============================================
   NEWSLETTER SECTION - Shared Component
   ============================================ */

.newsletter-section {
  padding: var(--spacing-xxxl) 0;
  background: var(--background-light);
  text-align: center;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.newsletter-content h2, .newsletter-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  color: var(--text-dark);
}

.newsletter-content p, .newsletter-section p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
  color: var(--text-muted);
}

.newsletter-section .section-subtitle {
  max-width: 600px;
  margin: 0 auto var(--spacing-xl) auto;
}

.newsletter-form {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 16px 24px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-opacity-10);
}

.newsletter-form button[type="submit"] {
  padding: 16px 32px;
  white-space: nowrap;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.newsletter-form button[type="submit"]:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .newsletter-form input[type="email"] {
    width: 100%;
    min-width: 100%;
  }
  
  .newsletter-form button[type="submit"] {
    width: 100%;
  }
  
  .newsletter-section h2 {
    font-size: 2rem;
  }
  
  .newsletter-section p {
    font-size: 1rem;
  }
}


