/**
 * Home Page Styles
 * Styles specific to the homepage with hero section and feature cards
 * 
 * File Path: src/styles/home.css
 */

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

.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,0.03) 10px,
      rgba(255,255,255,0.03) 20px
    );
  opacity: 0.3;
  pointer-events: none;
}

/* When hero image exists */
.hero.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.has-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.5)
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

/* ============================================================================
   FEATURE CARDS
   ============================================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: -100px auto 3rem;
  max-width: 1200px;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--background-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 20px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex: 1;
}

.feature-card .btn {
  align-self: center;
  margin-top: auto;
}

/* ============================================================================
   CONTENT SECTIONS
   ============================================================================ */

.home-section {
  margin-bottom: 3rem;
}

.section-card {
  background: var(--background-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
}

.section-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.section-card p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ============================================================================
   PHOTO PLACEHOLDERS
   ============================================================================ */

.photo-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.08) 0%,
    rgba(30, 64, 175, 0.08) 100%
  );
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.photo-placeholder:hover {
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(30, 64, 175, 0.12) 100%
  );
}

.photo-placeholder-content {
  text-align: center;
  padding: 2rem;
}

.photo-placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.photo-placeholder-text {
  color: var(--secondary-color);
  font-size: 0.875rem;
  font-style: italic;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.features-loading {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--secondary-color);
  margin: -100px auto 3rem;
  max-width: 1200px;
}

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

@media (max-width: 768px) {
  .hero {
    height: 400px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .features {
    grid-template-columns: 1fr;
    margin-top: -80px;
    gap: 1.5rem;
  }
  
  .feature-card {
    min-height: auto;
  }
  
  .section-card {
    padding: 1.5rem;
  }
  
  .section-card h2 {
    font-size: 1.5rem;
  }
}
