/* TradeScans Website - Shared Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #0a1628;
  color: #e2e8f0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Gradient backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%);
}

.gradient-card {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.4) 0%, rgba(10, 22, 40, 0.6) 100%);
}

/* Glow effects */
.glow-blue {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.glow-blue-hover:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
}

/* Animated gradient border */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #3b82f6, #1e3a5f, #3b82f6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Prose styling for legal pages */
.prose-legal h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.prose-legal h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #93c5fd;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.prose-legal h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #bfdbfe;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-legal p {
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.prose-legal ul, .prose-legal ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose-legal li {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.prose-legal a {
  color: #60a5fa;
  text-decoration: underline;
}

.prose-legal a:hover {
  color: #93c5fd;
}

.prose-legal strong {
  color: #e2e8f0;
}

/* Form styling */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(30, 58, 95, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.5rem;
  color: #e2e8f0;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #64748b;
}

/* Button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: transparent;
  color: #3b82f6;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #3b82f6;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Feature card animation */
.feature-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

/* Mobile nav toggle */
.nav-links {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .nav-links.active {
    max-height: 500px;
    opacity: 1;
  }
}
