/* Custom CSS for Inbox Marketing */

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

/* Ensure consistent focus states */
*:focus {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

/* Custom utility classes */
.prose {
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3 {
  color: #1F2937;
  font-weight: 700;
}

.prose p {
  margin-bottom: 1.25em;
}

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

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: #2563EB;
  text-decoration: underline;
}

.prose a:hover {
  color: #1D4ED8;
}

/* Image hover effects */
.hover-scale:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}

/* Gradient animations */
.gradient-animation {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8, #1E40AF);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Card hover effects */
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p, ul, ol {
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-gray-600 {
    color: #374151;
  }
  
  .text-gray-500 {
    color: #4B5563;
  }
  
  .text-gray-400 {
    color: #6B7280;
  }
}

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

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Define dark mode styles here if needed */
}

/* FAQ accordion styles */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.show {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

.faq-icon.rotate {
  transform: rotate(180deg);
}

/* Form styles */
input:focus,
textarea:focus,
select:focus {
  border-color: #2563EB;
  ring-color: #2563EB;
  ring-opacity: 0.5;
}

/* Error states */
.error {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
}

.error-message {
  color: #EF4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success states */
.success {
  border-color: #10B981 !important;
  background-color: #F0FDF4 !important;
}

.success-message {
  color: #10B981;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Responsive image containers */
.responsive-img {
  position: relative;
  overflow: hidden;
}

.responsive-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Skip links for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #2563EB;
  color: white;
  padding: 8px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}

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