/* Attractive Professional Hero Statistics */

/* Hero Stats Container */
.hero-stats-professional {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid rgba(76, 175, 80, 0.1);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-stats-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #007bff, #ffc107);
  z-index: 1;
}

.hero-stats-professional::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(76,175,80,0.05)"/><circle cx="80" cy="30" r="1.5" fill="rgba(13,110,253,0.05)"/><circle cx="40" cy="70" r="2.5" fill="rgba(255,193,7,0.05)"/><circle cx="70" cy="80" r="1" fill="rgba(76,175,80,0.05)"/></svg>');
  pointer-events: none;
}

/* Hero Stat Cards */
.hero-stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.hero-stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Card-specific hover effects */
.success-card:hover {
  border-color: rgba(40, 167, 69, 0.3);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.2);
}

.primary-card:hover {
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.2);
}

.warning-card:hover {
  border-color: rgba(255, 193, 7, 0.3);
  box-shadow: 0 15px 35px rgba(255, 193, 7, 0.2);
}

/* Hero Stat Content Layout */
.hero-stat-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

/* Hero Stat Icons */
.hero-stat-icon {
  flex-shrink: 0;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.icon-circle::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, currentColor, transparent, currentColor);
  border-radius: 17px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hero-stat-card:hover .icon-circle {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-stat-card:hover .icon-circle::before {
  opacity: 0.2;
}

/* Hero Stat Info */
.hero-stat-info {
  flex-grow: 1;
  text-align: left;
}

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.hero-stat-card:hover .hero-stat-number {
  transform: scale(1.05);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-stat-label {
  font-size: 0.95rem;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.hero-stat-indicator {
  margin-top: 0.5rem;
}

.hero-stat-indicator small {
  padding: 0.3rem 0.8rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero-stat-card:hover .hero-stat-indicator small {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

/* Card Decorations */
.hero-card-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.05;
  transition: all 0.4s ease;
  z-index: 1;
}

.success-decoration {
  background: radial-gradient(circle, #28a745, transparent);
}

.primary-decoration {
  background: radial-gradient(circle, #007bff, transparent);
}

.warning-decoration {
  background: radial-gradient(circle, #ffc107, transparent);
}

.hero-stat-card:hover .hero-card-decoration {
  opacity: 0.1;
  transform: scale(1.2);
}

/* Card Entrance Animations */
.success-card {
  animation: heroSlideInLeft 0.8s ease-out;
}

.primary-card {
  animation: heroSlideInUp 0.8s ease-out 0.2s both;
}

.warning-card {
  animation: heroSlideInRight 0.8s ease-out 0.4s both;
}

@keyframes heroSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroSlideInUp {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Number Animation */
.hero-stat-number {
  animation: heroNumberPop 0.6s ease-out 0.8s both;
}

@keyframes heroNumberPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-stats-professional {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .hero-stat-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .hero-stat-info {
    text-align: center;
  }
  
  .hero-stat-number {
    font-size: 2rem;
  }
  
  .icon-circle {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
  
  .hero-stat-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-stats-professional {
    padding: 1.5rem 1rem;
  }
  
  .hero-stat-number {
    font-size: 1.8rem;
  }
  
  .hero-stat-label {
    font-size: 0.85rem;
  }
  
  .icon-circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Focus States for Accessibility */
.hero-stat-card:focus-within {
  outline: 3px solid rgba(76, 175, 80, 0.5);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .hero-stat-card {
    border: 3px solid #000;
  }
  
  .icon-circle {
    border: 2px solid #000;
  }
  
  .hero-stat-indicator small {
    border: 1px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-stat-card,
  .icon-circle,
  .hero-stat-number,
  .hero-card-decoration {
    animation: none;
    transition: none;
  }
  
  .hero-stat-card:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .hero-stats-professional {
    background: white !important;
    box-shadow: none !important;
    border: 2px solid #000 !important;
  }
  
  .hero-stat-card {
    background: white !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
  
  .icon-circle {
    background: #000 !important;
    color: white !important;
  }
}
