/* Custom styles for Orange Video Compressor */

@keyframes pulse-orange {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .85;
    transform: scale(1.03);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
  background: #fffaf0; /* warm white (orange-50) */
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: #ffedd5; /* orange-100 */
  border-radius: 8px;
  border: 2px solid #fffaf0;
}

::-webkit-scrollbar-thumb:hover {
  background: #fed7aa; /* orange-200 */
}

/* Glassmorphism card styles */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(254, 215, 170, 0.4); /* orange-200 with opacity */
}

/* Smooth transitions */
.transition-all-300 {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glowing ring for orange selection */
.focus-orange-ring {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

/* Video side-by-side comparison layout styling */
.video-container {
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(254, 215, 170, 0.3);
}

/* Mobile: stack video comparison vertically */
@media (max-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  .video-container {
    aspect-ratio: 16/10;
  }
}

/* Minimum touch target size: 44px for WCAG accessibility */
button, input[type="file"], .preset-card, a, [role="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* Mobile-friendly slider toggle */
@media (max-width: 640px) {
  .peer-checked\\:after:translate-x-full {
    transform: translateX(100%);
  }
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
}

/* Safe area padding for notched mobile devices */
@supports (padding: max(0px)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Improve text legibility on small screens */
@media (max-width: 640px) {
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* File selection area dashed effect */
.dashed-dropzone {
  border-style: dashed;
  border-image: url("data:image/svg+xml;utf8,<svg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'><rect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23f97316' stroke-width='3' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='square'/></svg>") 16;
}

.dashed-dropzone-active {
  border-image: url("data:image/svg+xml;utf8,<svg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'><rect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23ea580c' stroke-width='4' stroke-dasharray='12%2c 6' stroke-dashoffset='0' stroke-linecap='square'/></svg>") 16;
  background-color: rgba(255, 237, 213, 0.4); /* orange-100/40 */
}
