/* Vertical Hero Statistics with Mini Chart */

/* Vertical Stats Container */
.hero-stats-vertical {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
  padding: 2rem;
  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.8);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  height: fit-content;
}

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

/* Stats Header */
.stats-header {
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
}

/* Vertical Stats Container */
.vertical-stats-container {
  margin-bottom: 2rem;
}

/* Vertical Stat Cards */
.vertical-stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 1.25rem;
  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;
}

.vertical-stat-card:hover {
  transform: translateX(8px) scale(1.02);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Card-specific hover effects */
.vertical-stat-card.success-card:hover {
  border-color: rgba(40, 167, 69, 0.4);
  box-shadow: -5px 12px 30px rgba(40, 167, 69, 0.2);
}

.vertical-stat-card.primary-card:hover {
  border-color: rgba(13, 110, 253, 0.4);
  box-shadow: -5px 12px 30px rgba(13, 110, 253, 0.2);
}

.vertical-stat-card.warning-card:hover {
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: -5px 12px 30px rgba(255, 193, 7, 0.2);
}

/* Vertical Stat Content */
.vertical-stat-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* Vertical Icons */
.vertical-stat-icon {
  flex-shrink: 0;
}

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

.vertical-stat-card:hover .icon-circle-vertical {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Vertical Stat Info */
.vertical-stat-info {
  flex-grow: 1;
}

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

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

.vertical-stat-label {
  font-size: 0.85rem;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

/* Vertical Progress Bars */
.vertical-progress {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.vertical-progress .progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s ease;
  position: relative;
}

.vertical-progress .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Mini Chart Section */
.mini-chart-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.mini-chart-section:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.mini-chart-header {
  text-align: center;
}

.mini-chart-container {
  background: rgba(248, 249, 250, 0.5);
  border-radius: 10px;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

#miniTrendChart {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Chart Legend */
.chart-legend {
  background: rgba(248, 249, 250, 0.8);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Entrance Animations */
.vertical-stat-card:nth-child(1) {
  animation: slideInFromLeft 0.6s ease-out;
}

.vertical-stat-card:nth-child(2) {
  animation: slideInFromLeft 0.6s ease-out 0.2s both;
}

.vertical-stat-card:nth-child(3) {
  animation: slideInFromLeft 0.6s ease-out 0.4s both;
}

.mini-chart-section {
  animation: fadeInScale 0.8s ease-out 0.6s both;
}

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

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Number Animation for Vertical Cards */
.vertical-stat-number {
  animation: verticalNumberPop 0.6s ease-out 0.8s both;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-stats-vertical {
    margin-bottom: 2rem;
  }
  
  .vertical-stat-number {
    font-size: 1.6rem;
  }
  
  .icon-circle-vertical {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-stats-vertical {
    padding: 1.5rem;
    margin: 0 1rem 2rem 1rem;
  }
  
  .vertical-stat-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .vertical-stat-info {
    text-align: center;
  }
  
  .vertical-stat-number {
    font-size: 1.5rem;
  }
  
  .mini-chart-container {
    padding: 0.25rem;
  }
  
  #miniTrendChart {
    height: 100px;
  }
}

@media (max-width: 576px) {
  .hero-stats-vertical {
    padding: 1.25rem;
  }
  
  .vertical-stat-card {
    padding: 1rem;
  }
  
  .vertical-stat-number {
    font-size: 1.4rem;
  }
  
  .vertical-stat-label {
    font-size: 0.8rem;
  }
  
  .icon-circle-vertical {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

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

.mini-chart-section:focus-within {
  outline: 2px solid rgba(13, 202, 240, 0.5);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .vertical-stat-card,
  .mini-chart-section {
    border: 3px solid #000;
  }
  
  .icon-circle-vertical {
    border: 2px solid #000;
  }
  
  .legend-dot {
    border: 1px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .vertical-stat-card,
  .icon-circle-vertical,
  .vertical-stat-number,
  .mini-chart-section,
  .progress-bar {
    animation: none;
    transition: none;
  }
  
  .vertical-stat-card:hover,
  .mini-chart-section:hover {
    transform: none;
  }
  
  .vertical-progress .progress-bar::after {
    animation: none;
  }
}

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