/* Modern CSS for SOURCEdefender */

/* Custom font family */
body {
  font-family: 'Inter', 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth scrolling - handled by JavaScript */
html {
  scroll-behavior: auto !important;
}

/* Disable any smooth scrolling that might interfere */
* {
  scroll-behavior: auto !important;
}

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

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

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

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

/* Focus styles for accessibility - subtle hover effects only */
*:focus {
  outline: none;
}

/* Button focus styles - subtle hover effect */
button:focus,
a:focus {
  outline: none;
}

/* Form input focus styles - keep for accessibility */
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
  border-color: #dc2626;
}

/* Navbar link hover effects */
.navbar-nav .nav-link:hover {
  color: #dc2626 !important;
  transition: color 0.3s ease-in-out;
}

/* General link hover effects */
a:hover {
  color: #dc2626;
  transition: color 0.3s ease-in-out;
}

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Enhanced hover effects */
.hover-lift {
  transition: all 0.3s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Button hover effects */
.btn-hover {
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.btn-hover:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-hover:active {
  transform: translateY(0) scale(1.02);
}

/* Copy button specific effects */
.copy-btn {
  transition: all 0.3s ease-in-out;
}

.copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.copy-btn:active {
  transform: scale(0.98);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom shadows */
.shadow-primary {
  box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.15);
}

.shadow-primary-lg {
  box-shadow: 0 10px 25px -3px rgba(220, 38, 38, 0.1), 0 4px 6px -2px rgba(220, 38, 38, 0.05);
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #dc2626;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-hidden {
    display: none;
  }
}

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

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

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

/* Custom form input styling */
.form-control {
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  transition: all 0.2s ease-in-out;
}

.form-control:focus {
  background-color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 50px !important;
  height: 50px !important;
  background-color: #dc2626 !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 9999 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.scroll-to-top i {
  font-size: 18px !important;
  color: white !important;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: #b91c1c;
  transform: scale(1.1);
}
