/* Custom CSS for Perreo Equis */

/* Global CSS */
:root {
  --foreground-rgb: 255, 255, 255;
  --background-start-rgb: 0, 0, 0;
  --background-end-rgb: 0, 0, 0;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
}

a {
  color: inherit;
  text-decoration: none;
}

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

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

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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes pulse-red {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse-red {
  animation: pulse-red 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Text selection */
::selection {
  background-color: #dc2626;
  color: white;
}

/* Focus styles */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Mobile menu animation */
@media (max-width: 768px) {
  .mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }
}

/* Button hover effects */
.btn-primary {
  background: linear-gradient(to right, #991b1b, #991b1b);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(to right, #7f1d1d, #7f1d1d);
  transform: scale(1.05);
}

/* Card hover effects */
.card-hover {
  transition: all 0.5s ease;
}

.card-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.25);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-red {
  background: linear-gradient(to right, #991b1b, #991b1b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive video */
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form styles */
.form-input {
  background: #000000;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #991b1b;
  outline: none;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Event cards */
.event-card {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.2), rgba(153, 27, 27, 0.2));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(153, 27, 27, 0.3);
  border-radius: 1.5rem;
  transition: all 0.5s ease;
}

.event-card:hover {
  border-color: rgba(153, 27, 27, 0.5);
  transform: scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(153, 27, 27, 0.25);
}

/* Product cards */
.product-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid #374151;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  border-color: rgba(153, 27, 27, 0.5);
}

/* Stats cards */
.stats-card {
  background: rgba(153, 27, 27, 0.2);
  border: 1px solid rgba(153, 27, 27, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

/* Navigation active state */
.nav-active {
  color: #991b1b !important;
}

/* Hero video overlay */
.hero-overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), rgba(127, 29, 29, 0.3));
}

.hero-overlay-bottom {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent, transparent);
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(12px)) {
  .backdrop-blur-custom {
    backdrop-filter: blur(12px);
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .bg-red-800 {
    background-color: #dc2626 !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
