/* Own It Marketing Site - Custom Styles */
/* Supplements Tailwind CSS CDN */

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

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}

/* Form input autofill styles for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f3f4f6;
  -webkit-box-shadow: 0 0 0px 1000px #111827 inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Button loading state */
button.loading {
  position: relative;
  color: transparent !important;
}

button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Urgency banner pulse animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.2);
  }
}

#urgency-banner {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Countdown timer styling */
#countdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* Details/Summary FAQ styling */
details summary {
  -webkit-tap-highlight-color: transparent;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Gradient text fallback for older browsers */
@supports not (background-clip: text) {
  .bg-clip-text {
    background: none;
    color: #34d399;
  }
}

/* Smooth transitions for interactive elements */
a, button, input {
  transition: all 0.2s ease-in-out;
}

/* Hero section gradient background effect */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(
    ellipse at center,
    rgba(52, 211, 153, 0.1) 0%,
    rgba(34, 211, 238, 0.05) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

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

.hover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(52, 211, 153, 0.2);
}

/* Form success animation */
@keyframes success-pop {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-message {
  animation: success-pop 0.3s ease-out forwards;
}

/* Mobile touch targets */
@media (max-width: 640px) {
  button, a {
    min-height: 44px;
  }

  input[type="email"] {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Print styles */
@media print {
  #urgency-banner,
  nav,
  footer,
  form,
  button {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .border-gray-800 {
    border-color: #9ca3af;
  }

  .text-gray-400,
  .text-gray-500 {
    color: #d1d5db;
  }
}
