/**
 * MoodHera Homepage Components CSS
 * Styles for all homepage sections following brand guidelines
 * 
 * @package MoodHera
 * @since 1.0.0
 */

/* ============================= */
/* HERO SECTION                  */
/* ============================= */

.moodhera-hero {
  position: relative;
  min-height: calc(100vh - var(--moodhera-header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.moodhera-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--moodhera-hero-gradient);
  z-index: 1;
}

.moodhera-hero__carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.moodhera-hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.moodhera-hero__slide.active {
  opacity: 0.3;
}

.moodhera-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moodhera-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--moodhera-hero-gradient);
  opacity: 0.8;
  z-index: 3;
}

.moodhera-hero__content {
  position: relative;
  z-index: 4;
  color: white;
  text-align: center;
  width: 100%;
}

.moodhera-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--moodhera-space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.moodhera-hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--moodhera-space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  line-height: 1.6;
}

.moodhera-hero__actions {
  display: flex;
  gap: var(--moodhera-space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.moodhera-hero__controls {
  position: absolute;
  bottom: var(--moodhera-space-lg);
  left: 0;
  right: 0;
  z-index: 4;
}

.moodhera-hero__dots {
  display: flex;
  justify-content: center;
  gap: var(--moodhera-space-sm);
}

.moodhera-hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.moodhera-hero__dot.active,
.moodhera-hero__dot:hover {
  background: white;
  border-color: white;
}

/* ============================= */
/* SERVICES SECTION              */
/* ============================= */

.moodhera-services {
  position: relative;
  padding: var(--moodhera-space-2xl) 0;
  color: white;
}

.moodhera-services__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--moodhera-services-gradient);
  z-index: 1;
}

.moodhera-services__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.moodhera-services .moodhera-container {
  position: relative;
  z-index: 3;
}

.moodhera-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--moodhera-space-lg);
  margin-top: var(--moodhera-space-xl);
}

@media (min-width: 768px) {
  .moodhera-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .moodhera-services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Service Card */
.moodhera-service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--moodhera-radius-lg);
  padding: var(--moodhera-space-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.moodhera-service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--moodhera-shadow-lg);
}

.moodhera-service-card__icon {
  margin-bottom: var(--moodhera-space-md);
}

.moodhera-service-card__icon i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.moodhera-service-card__icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.moodhera-service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--moodhera-space-sm);
  color: white;
}

.moodhera-service-card__description {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: var(--moodhera-space-md);
  line-height: 1.5;
}

.moodhera-service-card__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--moodhera-space-xs);
  transition: color 0.2s ease;
}

.moodhera-service-card__link:hover {
  color: white;
}

/* ============================= */
/* EVENTS SECTION                */
/* ============================= */

.moodhera-events-section {
  position: relative;
  padding: var(--moodhera-space-2xl) 0;
  background: var(--moodhera-events-gradient);
  color: white;
}

.moodhera-events-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.moodhera-events-section > * {
  position: relative;
  z-index: 2;
}

/* ============================= */
/* TESTIMONIALS SECTION          */
/* ============================= */

.moodhera-testimonials {
  position: relative;
  padding: var(--moodhera-space-2xl) 0;
  color: white;
}

.moodhera-testimonials__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--moodhera-testimonials-gradient);
  z-index: 1;
}

.moodhera-testimonials__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.moodhera-testimonials .moodhera-container {
  position: relative;
  z-index: 3;
}

.moodhera-testimonials__slider {
  margin-top: var(--moodhera-space-xl);
  overflow: hidden;
}

.moodhera-testimonials__track {
  display: flex;
  transition: transform 0.5s ease;
}

.moodhera-testimonials__controls {
  display: flex;
  justify-content: center;
  gap: var(--moodhera-space-md);
  margin-top: var(--moodhera-space-lg);
}

.moodhera-testimonials__prev,
.moodhera-testimonials__next {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.moodhera-testimonials__prev:hover,
.moodhera-testimonials__next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Testimonial Card */
.moodhera-testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--moodhera-radius-lg);
  padding: var(--moodhera-space-lg);
  margin: 0 var(--moodhera-space-sm);
  min-width: 300px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .moodhera-testimonial-card {
    min-width: 400px;
  }
}

.moodhera-testimonial-card__rating {
  display: flex;
  gap: 4px;
  margin-bottom: var(--moodhera-space-md);
}

.moodhera-testimonial-card__rating .fa-star {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
}

.moodhera-testimonial-card__rating .fa-star.active {
  color: #FFD700;
}

.moodhera-testimonial-card__quote {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--moodhera-space-lg);
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.moodhera-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--moodhera-space-md);
}

.moodhera-testimonial-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.moodhera-testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moodhera-testimonial-card__name {
  font-weight: 600;
  color: white;
  display: block;
  margin-bottom: 4px;
}

.moodhera-testimonial-card__role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================= */
/* CTA BANNER SECTION            */
/* ============================= */

.moodhera-cta {
  position: relative;
  padding: var(--moodhera-space-2xl) 0;
  color: white;
  text-align: center;
  overflow: hidden;
}

.moodhera-cta__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--moodhera-cta-gradient);
  z-index: 1;
}

.moodhera-cta__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.moodhera-cta__decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.moodhera-cta__pattern {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.moodhera-cta__pattern--1 {
  width: 200px;
  height: 200px;
  top: -100px;
  left: -100px;
}

.moodhera-cta__pattern--2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  right: -75px;
}

.moodhera-cta__pattern--3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 10%;
}

.moodhera-cta .moodhera-container {
  position: relative;
  z-index: 3;
}

.moodhera-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--moodhera-space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.moodhera-cta__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--moodhera-space-xl);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.moodhera-cta__actions {
  display: flex;
  gap: var(--moodhera-space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================= */
/* SECTION HEADERS               */
/* ============================= */

.moodhera-section-header {
  text-align: center;
  margin-bottom: var(--moodhera-space-xl);
}

.moodhera-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--moodhera-space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.moodhera-section-description,
.moodhera-section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================= */
/* BUTTON STYLES                 */
/* ============================= */

.moodhera-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--moodhera-space-xs);
  padding: var(--moodhera-space-sm) var(--moodhera-space-lg);
  border: none;
  border-radius: var(--moodhera-radius-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--moodhera-font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.moodhera-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 ease;
}

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

.moodhera-btn--primary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.moodhera-btn--primary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.moodhera-btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.moodhera-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.moodhera-btn--sm {
  padding: var(--moodhera-space-xs) var(--moodhera-space-md);
  font-size: 0.9rem;
}

.moodhera-btn--lg {
  padding: var(--moodhera-space-md) var(--moodhera-space-xl);
  font-size: 1.125rem;
}

/* ============================= */
/* RESPONSIVE DESIGN             */
/* ============================= */

@media (max-width: 768px) {
  .moodhera-hero {
    min-height: 80vh;
  }
  
  .moodhera-hero__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .moodhera-services__grid {
    grid-template-columns: 1fr;
    gap: var(--moodhera-space-md);
  }
  
  .moodhera-testimonials__track {
    padding: 0 var(--moodhera-space-md);
  }
  
  .moodhera-testimonial-card {
    min-width: 280px;
  }
  
  .moodhera-cta__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .moodhera-hero__title {
    font-size: 2rem;
  }
  
  .moodhera-section-title {
    font-size: 1.75rem;
  }
  
  .moodhera-cta__title {
    font-size: 1.5rem;
  }
}
