/* Biserna Dolina Uvac – counters.css */
/* Animated counters styling */

/* Hero stats enhancement */
.bdu-hero-stat {
  animation: slideUp 0.8s ease-out;
}

.bdu-hero-stat:nth-child(1) { animation-delay: 0.1s; }
.bdu-hero-stat:nth-child(2) { animation-delay: 0.2s; }
.bdu-hero-stat:nth-child(3) { animation-delay: 0.3s; }
.bdu-hero-stat:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Counter number animation */
.bdu-hero-stat-num {
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  display: inline-block;
  transition: color 0.3s ease;
}

.bdu-hero-stat:hover .bdu-hero-stat-num {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

/* Additional counter sections */
.bdu-counters-section {
  padding: 60px 5%;
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
  color: var(--white);
  text-align: center;
}

.bdu-counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.bdu-counter-item {
  padding: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.bdu-counter-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bdu-counter-item:nth-child(1) { animation-delay: 0.1s; }
.bdu-counter-item:nth-child(2) { animation-delay: 0.2s; }
.bdu-counter-item:nth-child(3) { animation-delay: 0.3s; }
.bdu-counter-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bdu-counter-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bdu-counter-label {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.bdu-counter-description {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bdu-counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .bdu-counter-number {
    font-size: 2.2rem;
    min-height: 50px;
  }

  .bdu-hero-stat {
    padding: 12px 20px;
  }

  .bdu-hero-stat-num {
    font-size: 1.4rem;
  }

  .bdu-hero-stat-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .bdu-counters-grid {
    grid-template-columns: 1fr;
  }

  .bdu-counter-number {
    font-size: 2rem;
  }

  .bdu-counters-section {
    padding: 40px 5%;
  }
}
