/* AIPLACIDE.COM Custom Styles */

/* Base styles */
html {
  scroll-behavior: smooth;
}

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

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

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

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

/* Hide scrollbar for category filters */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
}

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

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

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

/* Button hover effects */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

/* Navigation active state */
.nav-link.active {
  color: #0066CC;
  background-color: rgba(0, 102, 204, 0.1);
}

/* 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 40px rgba(0, 0, 0, 0.1);
}

/* Image placeholder gradient */
.img-placeholder {
  background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
}

/* Quote styling */
blockquote {
  position: relative;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 80px;
  color: rgba(0, 102, 204, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Prose customization */
.prose p {
  margin-bottom: 1.5em;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose ul,
.prose ol {
  margin-top: 1em;
  margin-bottom: 1em;
}

/* Toast notification styles */
.toast {
  position: fixed;
  bottom: 100px;
  right: 20px;
  padding: 16px 24px;
  background: #1F2937;
  color: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: #10B981;
}

.toast.error {
  background: #EF4444;
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

#mobile-menu.hidden {
  max-height: 0;
}

#mobile-menu:not(.hidden) {
  max-height: 500px;
}

/* Sticky banner animation */
#sticky-banner.show {
  transform: translateY(0);
}

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

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0066CC;
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  header,
  footer,
  #sticky-banner,
  .no-print {
    display: none !important;
  }
  
  main {
    padding-top: 0 !important;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
}

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