/* Phase 1 UI/UX Improvements */

/* Navbar Register Button */
.nav-cta {
  margin-left: auto;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white !important;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

/* Featured Events Section */
.featured-events {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.featured-events .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333;
}

.featured-events .section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 50px;
}

.featured-events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

/* Featured Event Card */
.featured-event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  flex: 0 1 380px;
  max-width: 380px;
  min-width: 320px;
}

.featured-event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Event Badge */
.event-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-badge.open {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.event-badge.closing_soon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  animation: pulse 2s infinite;
}

.event-badge.coming_soon {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  color: white;
}

.event-badge.closed {
  background: #95a5a6;
  color: white;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Event Flyer */
.event-flyer {
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.event-flyer img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.featured-event-card:hover .event-flyer img {
  transform: scale(1.1);
}

/* Event Info */
.event-info {
  padding: 25px;
}

.event-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.event-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.event-meta p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.95rem;
}

.event-meta i {
  color: #667eea;
}

/* Urgency Mode Styling */
.event-quota.urgency-mode {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  animation: pulse-urgency 2s ease-in-out infinite;
}

.event-quota.urgency-mode i {
  color: #fff;
  animation: fire-flicker 1.5s ease-in-out infinite;
}

@keyframes pulse-urgency {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
}

@keyframes fire-flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Countdown Timer */
.countdown-timer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
}

.countdown-label {
  color: white;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
}

.countdown-display {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.countdown-item {
  text-align: center;
  flex: 1;
}

.countdown-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.countdown-unit {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px;
}

/* Progress Bar */
.participants-progress {
  margin: 20px 0;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
  transition: width 0.5s ease;
}

.progress-bar.medium .progress-fill {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.progress-bar.high .progress-fill {
  background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.progress-text {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Event Description */
.event-description {
  color: #666;
  line-height: 1.6;
  margin: 15px 0;
}

/* Event Actions */
.event-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.event-actions .btn {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-pulse {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(79, 172, 254, 0);
  }
}

/* Floating CTA Container */
.floating-cta-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 999;
  display: none; /* Controlled by JavaScript */
  flex-direction: column;
  gap: 15px;
}

.floating-cta-container.visible {
  display: flex;
}

/* Animation for CTA buttons */
.floating-cta-container .floating-btn {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.floating-cta-container.visible .floating-btn {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation delays */
.floating-cta-container.visible .floating-btn:nth-child(1) {
  transition-delay: 0.1s !important;
}

.floating-cta-container.visible .floating-btn:nth-child(2) {
  transition-delay: 0.2s !important;
}

/* Reset animation when not visible */
.floating-cta-container:not(.visible) .floating-btn {
  opacity: 0;
  transform: translateX(100px);
  transition: none !important;
}

/* Ensure default display for buttons */
.floating-cta-container .floating-btn {
  margin-bottom: 0;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.floating-register {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.floating-btn i {
  font-size: 1.5rem;
}

.floating-btn-text {
  font-size: 1rem;
}

/* Sticky Navbar */
.header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease;
  z-index: 999;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .featured-events-grid {
    padding: 0 20px;
  }

  .featured-event-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 280px;
  }

  .event-flyer {
    max-height: 400px;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .countdown-unit {
    font-size: 0.75rem;
  }

  .event-actions {
    flex-direction: column;
  }

  .floating-cta-container {
    bottom: 90px;
    right: 20px;
  }

  .floating-btn {
    padding: 12px 16px;
  }

  .floating-btn-text {
    display: none;
  }

  .btn-register {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .featured-events .section-title {
    font-size: 1.8rem;
  }

  .countdown-display {
    gap: 5px;
  }
}
