@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@layer base {
  body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.2;
  }
}

@layer components {
  .marvin-hero-bg {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    position: relative;
    overflow: hidden;
  }
  
  .marvin-section-bg {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
  }
  
  .marvin-card {
    @apply bg-white rounded-xl shadow-lg border border-slate-200 overflow-hidden transition-all duration-300 hover:shadow-xl hover:-translate-y-1;
  }
  
  .marvin-btn-primary {
    @apply bg-marvin-blue text-white px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:bg-blue-700 hover:shadow-md focus:outline-none focus:ring-2 focus:ring-marvin-blue focus:ring-opacity-50;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  
  .marvin-btn-secondary {
    @apply bg-marvin-accent text-white px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:bg-amber-600 hover:shadow-md focus:outline-none focus:ring-2 focus:ring-marvin-accent focus:ring-opacity-50;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  
  .marvin-form-input {
    @apply w-full px-4 py-3 border-2 border-slate-300 rounded-lg focus:border-marvin-blue focus:ring-2 focus:ring-marvin-blue focus:ring-opacity-20 focus:outline-none transition-all duration-200;
  }
  
  .marvin-overlay {
    background: rgba(37, 99, 235, 0.6);
  }
  
  .cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 380px;
    z-index: 9999;
    padding: 20px;
  }
  
  .cookie-consent-banner.hidden {
    display: none;
  }
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .cookie-consent-banner {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}