/* ============================================
   ASHA Company Stats Section - Unique Selectors
   ============================================ */

/* CSS Variables */
:root {
  --asha-primary: hsl(142, 76%, 36%);
  --asha-primary-light: hsl(142, 76%, 50%);
  --asha-primary-glow: hsl(142, 76%, 36%, 0.3);
  --asha-background: hsl(0, 0%, 100%);
  --asha-card-bg: hsl(0, 0%, 100%);
  --asha-muted-bg: hsl(210, 40%, 96%);
  --asha-foreground: hsl(222, 47%, 11%);
  --asha-muted-foreground: hsl(215, 16%, 47%);
  --asha-border: hsl(214, 32%, 91%);
  --asha-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --asha-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --asha-shadow-hover: 0 20px 40px -15px hsl(142, 76%, 36%, 0.15);
  --asha-shadow-hover-highlight: 0 20px 40px -15px hsl(142, 76%, 36%, 0.25);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--asha-background);
  color: var(--asha-foreground);
  line-height: 1.5;
}

/* Section */
.asha-stats-section {
  width: 100%;
  padding: 4rem 1rem;
  background-color: var(--asha-muted-bg);
  overflow: hidden;
}

.asha-stats-container {
  max-width: 80rem;
  margin: 0 auto;
}

.asha-stats-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .asha-stats-layout {
    flex-direction: row;
  }
}

/* Logo Panel */
.asha-logo-panel {
  background-color: var(--asha-card-bg);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--asha-shadow);
  border: 1px solid var(--asha-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-50px);
}

.asha-logo-panel.asha-visible {
  animation: asha-slide-in-left 0.6s ease-out forwards;
}

@media (min-width: 1024px) {
  .asha-logo-panel {
    width: 33.333%;
  }
}

@keyframes asha-slide-in-left {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.asha-logo-wrapper {
  position: relative;
  width: 12rem;
  height: 12rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
}

.asha-logo-panel.asha-visible .asha-logo-wrapper {
  animation: asha-logo-spin-in 0.8s ease-out 0.2s forwards;
}

@keyframes asha-logo-spin-in {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.asha-logo-border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--asha-primary);
  opacity: 0.6;
}

.asha-logo-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--asha-primary-glow), transparent);
  animation: asha-rotate-glow 8s linear infinite;
}

@keyframes asha-rotate-glow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.asha-logo-inner {
  position: absolute;
  inset: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--asha-card-bg);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.asha-logo-inner:hover {
  transform: scale(1.05);
}

.asha-logo-image {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
}

.asha-company-description {
  font-size: 0.875rem;
  color: var(--asha-muted-foreground);
  text-align: center;
  line-height: 1.7;
  max-width: 20rem;
  opacity: 0;
  transform: translateY(20px);
}

.asha-logo-panel.asha-visible .asha-company-description {
  animation: asha-fade-in-up 0.5s ease-out 0.5s forwards;
}

@keyframes asha-fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.asha-text-bold {
  font-weight: 600;
  color: var(--asha-foreground);
}

/* Stats Grid */
.asha-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .asha-stats-grid {
    width: 66.666%;
  }
}

/* Stat Card */
.asha-stat-card {
  position: relative;
  background-color: var(--asha-card-bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--asha-shadow);
  border: 1px solid var(--asha-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.asha-stat-card:hover {
  transform: translateY(-8px) scale(1);
  box-shadow: var(--asha-shadow-hover);
  border-color: var(--asha-primary-glow);
}

.asha-stat-card.asha-visible {
  animation: asha-card-enter 0.5s ease-out forwards;
}

@keyframes asha-card-enter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animation delays based on index */
.asha-stat-card[data-index="0"].asha-visible { animation-delay: 0s; }
.asha-stat-card[data-index="1"].asha-visible { animation-delay: 0.1s; }
.asha-stat-card[data-index="2"].asha-visible { animation-delay: 0.2s; }
.asha-stat-card[data-index="3"].asha-visible { animation-delay: 0.3s; }
.asha-stat-card[data-index="4"].asha-visible { animation-delay: 0.4s; }
.asha-stat-card[data-index="5"].asha-visible { animation-delay: 0.5s; }

/* Highlighted Card */
.asha-stat-highlighted {
  border-color: var(--asha-primary-glow);
  background: linear-gradient(135deg, hsl(142, 76%, 36%, 0.05), transparent);
}

.asha-stat-highlighted:hover {
  box-shadow: var(--asha-shadow-hover-highlight);
}

.asha-stat-highlighted .asha-stat-icon {
  color: var(--asha-primary);
}

.asha-stat-highlighted .asha-stat-value {
  color: var(--asha-primary);
}

/* Pulse Indicator */
.asha-pulse-indicator {
  position: absolute;
  top: -0.375rem;
  right: -0.375rem;
  width: 1rem;
  height: 1rem;
  opacity: 0;
  transform: scale(0);
  animation: asha-pulse-appear 0.3s ease-out 0.6s forwards;
}

@keyframes asha-pulse-appear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.asha-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--asha-primary);
  opacity: 0.75;
  animation: asha-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes asha-ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.asha-pulse-dot {
  position: relative;
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--asha-primary);
}

/* Badge */
.asha-stat-badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.125rem 0.625rem;
  background-color: var(--asha-primary);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: var(--asha-shadow-md);
  opacity: 0;
  animation: asha-badge-appear 0.5s ease-out 0.5s forwards;
}

@keyframes asha-badge-appear {
  to {
    opacity: 1;
  }
}

/* Icon */
.asha-stat-icon {
  color: var(--asha-muted-foreground);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: transform 0.4s ease, color 0.3s ease;
}

.asha-stat-card.asha-visible .asha-stat-icon {
  animation: asha-icon-spin-in 0.6s ease-out forwards;
}

.asha-stat-card[data-index="0"].asha-visible .asha-stat-icon { animation-delay: 0.2s; }
.asha-stat-card[data-index="1"].asha-visible .asha-stat-icon { animation-delay: 0.3s; }
.asha-stat-card[data-index="2"].asha-visible .asha-stat-icon { animation-delay: 0.4s; }
.asha-stat-card[data-index="3"].asha-visible .asha-stat-icon { animation-delay: 0.5s; }
.asha-stat-card[data-index="4"].asha-visible .asha-stat-icon { animation-delay: 0.6s; }
.asha-stat-card[data-index="5"].asha-visible .asha-stat-icon { animation-delay: 0.7s; }

@keyframes asha-icon-spin-in {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.asha-stat-card:hover .asha-stat-icon {
  transform: scale(1.2);
  color: var(--asha-primary);
  opacity: 1;
}

/* Value */
.asha-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--asha-foreground);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .asha-stat-value {
    font-size: 1.875rem;
  }
}

.asha-stat-text {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .asha-stat-text {
    font-size: 1.5rem;
  }
}

/* Label */
.asha-stat-label {
  font-size: 0.875rem;
  color: var(--asha-muted-foreground);
  opacity: 0;
}

.asha-stat-card.asha-visible .asha-stat-label {
  animation: asha-fade-in 0.5s ease-out forwards;
}

.asha-stat-card[data-index="0"].asha-visible .asha-stat-label { animation-delay: 0.4s; }
.asha-stat-card[data-index="1"].asha-visible .asha-stat-label { animation-delay: 0.5s; }
.asha-stat-card[data-index="2"].asha-visible .asha-stat-label { animation-delay: 0.6s; }
.asha-stat-card[data-index="3"].asha-visible .asha-stat-label { animation-delay: 0.7s; }
.asha-stat-card[data-index="4"].asha-visible .asha-stat-label { animation-delay: 0.8s; }
.asha-stat-card[data-index="5"].asha-visible .asha-stat-label { animation-delay: 0.9s; }

@keyframes asha-fade-in {
  to {
    opacity: 1;
  }
}

/* Light theme only - no dark mode override */
