/* ═══════════════════════════════════════
   ANIMAȚII CSS — Cabana Colt de Rai
   ═══════════════════════════════════════ */

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

/* ═══════════════════════════════════════
   CUSTOM PRIMARY COLOR OVERRIDES
   (Tailwind CDN nu genereaza intotdeauna clasele custom la runtime)
   ═══════════════════════════════════════ */
.bg-primary-50  { background-color: #f0fdf4 !important; }
.bg-primary-100 { background-color: #dcfce7 !important; }
.bg-primary-500 { background-color: #15803d !important; }
.bg-primary-600 { background-color: #166534 !important; }
.bg-primary-700 { background-color: #14532d !important; }

.text-primary-100 { color: #dcfce7 !important; }
.text-primary-400 { color: #4ade80 !important; }
.text-primary-500 { color: #15803d !important; }
.text-primary-600 { color: #166534 !important; }

.border-primary-100 { border-color: #dcfce7 !important; }
.border-primary-200 { border-color: #bbf7d0 !important; }
.border-primary-300 { border-color: #86efac !important; }
.border-primary-500 { border-color: #15803d !important; }

.hover\:bg-primary-500:hover { background-color: #15803d !important; }
.hover\:bg-primary-600:hover { background-color: #166534!important; }
.hover\:text-primary-400:hover { color: #4ade80 !important; }
.hover\:text-primary-600:hover { color: #166534 !important; }

/* Group hover target fix */
.group:hover .group-hover\:bg-primary-600 { background-color: #166534 !important; }
.group:hover .group-hover\:text-white       { color: #ffffff !important; }

/* Focus visible */
.focus-visible\:ring-primary-500:focus-visible { --tw-ring-color: #15803d; }

/* ═══════════════════════════════════════
   GRADIENT ANIMAT HERO
   ═══════════════════════════════════════ */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient {
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.glass-dark {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pulse ring CTA */
.pulse-ring { position: relative; }
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid currentColor;
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Scroll down arrow bounce */
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Focus visible accesibilitate */
:focus-visible {
  outline: 3px solid #166534;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, #15803d, #ea580c);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════
   BUTON BACK TO TOP
   ═══════════════════════════════════════ */
#back-to-top {
  background-color: #166534 !important;
  color: #ffffff !important;
  transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}
#back-to-top:hover {
  background-color: #15803d !important;
  transform: scale(1.1);
}

/* ═══════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}
#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
#lightbox-close:hover { background: rgba(255,255,255,0.3); }
.gallery-img { cursor: zoom-in; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-gradient, .pulse-ring::before { animation: none; }
}
