/* ===== Universal Module Home Pages Styling ===== */
/* This file contains the shared styling for all module home pages (hero sections with feature cards) */

/* ===== Hero Section ===== */
.module-home-hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8bc34a, #6a9e34);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

html.dark-mode .hero-title {
  background: linear-gradient(135deg, #ecf0f1, #a8d85f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4a4a4a;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
}

html.dark-mode .hero-subtitle {
  color: #c0c0c0;
}

/* ===== Feature Cards Grid ===== */
.module-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.module-feature-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(139, 195, 74, 0.1);
  overflow: hidden;
}

.module-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8bc34a, #7ab82d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.module-feature-card:hover::before {
  transform: scaleX(1);
}

.module-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 195, 74, 0.15);
  border-color: rgba(139, 195, 74, 0.3);
}

html.dark-mode .module-feature-card {
  background: #2a2a2a;
  border-color: rgba(139, 195, 74, 0.25);
}

html.dark-mode .module-feature-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(139, 195, 74, 0.45);
}

.card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.1), rgba(94, 129, 34, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #8bc34a;
  transition: all 0.3s ease;
}

.module-feature-card:hover .card-icon {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  transform: scale(1.05);
}

html.dark-mode .card-icon {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.2), rgba(94, 129, 34, 0.15));
  color: #8ec134;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--header-color);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.card-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

html.dark-mode .card-description {
  color: #b8b8b8;
}

.card-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: #8bc34a;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.module-feature-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

html.dark-mode .card-arrow {
  color: #8ec134;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .module-home-hero {
    padding: 2rem 1rem;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-content {
    margin-bottom: 2.5rem;
  }
  
  .module-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .module-feature-card {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .module-feature-card {
    padding: 1.5rem;
  }
  
  .card-icon {
    width: 60px;
    height: 60px;
  }
  
  .card-icon svg {
    width: 40px;
    height: 40px;
  }
}
