/* VendezVotreAuto.com - Premium Styles */

/* Custom Animations */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
  display: inline-block;
}

/* Smooth transitions */
* {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #C9A84C;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B8973D;
}

/* Selection color */
::selection {
  background: #C9A84C;
  color: white;
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Form input placeholder */
input::placeholder,
textarea::placeholder {
  color: #9CA3AF;
}

/* Modal backdrop animation */
.modal-backdrop {
  transition: opacity 0.3s ease;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button press effect */
button:active {
  transform: scale(0.98);
}

/* Icon rotation for FAQ */
.rotate-180 {
  transform: rotate(180deg);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #C9A84C 0%, #D4B85F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium shine effect */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* Pulse animation for live indicator */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shadow utilities */
.shadow-accent {
  box-shadow: 0 10px 40px -10px rgba(201, 168, 76, 0.4);
}

.shadow-primary {
  box-shadow: 0 10px 40px -10px rgba(13, 27, 62, 0.4);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* Print styles */
@media print {
  .no-print,
  nav,
  footer,
  .fixed {
    display: none !important;
  }
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #C9A84C;
  width: 24px;
  height: 24px;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tooltip styles */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: #0D1B3E;
  color: white;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 0.5rem);
}

/* Form validation styles */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
  border-color: #EF4444;
}

input:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
  border-color: #10B981;
}

/* Trust badge animations */
.trust-badge {
  transition: transform 0.3s ease;
}

.trust-badge:hover {
  transform: scale(1.05);
}

/* FAQ content animation */
[data-faq-content] {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Mobile touch optimizations */
@media (hover: none) and (pointer: coarse) {
  .hover\:shadow-xl:hover {
    box-shadow: none;
  }
  
  .hover\:-translate-y-1:hover {
    transform: none;
  }
  
  button, a {
    -webkit-tap-highlight-color: transparent;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-accent {
    background-color: #B8973D;
  }
  
  .text-gray-600 {
    color: #374151;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-marquee {
    animation: none;
  }
}
