@import url('../base/globals.css');

/* =============================================================================
   INSIGHTS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Scroll animation initial states */
.topic-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease, all 0.3s ease;
  will-change: opacity, transform;
  cursor: pointer;
}

/* Reset transitions after animation completes */
.topic-card.animate-in {
  transition: all 0.3s ease;
  will-change: auto;
}

/* Visible state when in view */
.topic-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays - ONLY during scroll animation */
.topic-card:nth-child(1):not(.animation-complete) { transition-delay: 0.1s; }
.topic-card:nth-child(2):not(.animation-complete) { transition-delay: 0.2s; }
.topic-card:nth-child(3):not(.animation-complete) { transition-delay: 0.3s; }
.topic-card:nth-child(4):not(.animation-complete) { transition-delay: 0.4s; }
.topic-card:nth-child(5):not(.animation-complete) { transition-delay: 0.5s; }
.topic-card:nth-child(6):not(.animation-complete) { transition-delay: 0.6s; }

/* Clear delays after animation for instant hover */
.topic-card.animation-complete {
  transition-delay: 0s !important;
}

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

   #hero {
    background: var(--gradient-blue-green-h);
  }
  
  @media (max-width: 1023px) {
    #hero {
      background: var(--brand-green);
    }
  }
/* =============================================================================

/* Topic Cards Hover Effects */
@media (hover: hover) and (pointer: fine) {
  .topic-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px var(--shadow-dark);
    background: var(--brand-blackboard) !important;
    border-color: var(--brand-blackboard) !important;
  }

  .topic-card:hover .card-content {
    color: var(--brand-white);
  }

  .topic-card:hover .card-content p {
    color: var(--brand-white);
    opacity: 0.9;
  }

  /* All cards use blue headers on hover */
  .topic-card:hover .card-content h3 {
    color: var(--brand-blue);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .topic-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* CTA Section Override */
#cta .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Mobile CTA override to respect left-alignment */
@media (max-width: 767px) {
  #cta .container {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* Content Areas */
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-content h3 {
  margin-bottom: var(--font-size-md);
}

.card-content p {
  flex: 1;
  margin-bottom: var(--font-size-md);
} 