/**
 * ============================================
 * CANOPUS EMAIL VERIFIER - MODERN CSS FRAMEWORK
 * Version: 5.0.0
 * Created: February 11, 2026
 * ============================================
 */

/* ============================================
   CSS VARIABLES - CANOPUS COLOR SYSTEM
   ============================================ */
:root {
  /* Primary Canopus Blue */
  --canopus-blue: #0066B3;
  --canopus-blue-dark: #004A85;
  --canopus-blue-light: #3399CC;
  --canopus-blue-lighter: #E6F3FA;
  
  /* Accent Colors */
  --accent-success: #10B981;
  --accent-danger: #EF4444;
  --accent-warning: #F59E0B;
  --accent-info: #3B82F6;
  --accent-purple: #8B5CF6;
  
  /* Neutral Grays */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Semantic Colors (Email Statuses) */
  --status-valid: #10B981;
  --status-invalid: #EF4444;
  --status-catchall: #F59E0B;
  --status-unknown: #6B7280;
  --status-disposable: #F97316;
  --status-spamtrap: #DC2626;
  --status-processing: #3B82F6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0066B3 0%, #004A85 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-hero: linear-gradient(135deg, #0066B3 0%, #3399CC 100%);
  --gradient-dark: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-canopus: 0 4px 14px 0 rgba(0, 102, 179, 0.39);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--canopus-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--canopus-blue-dark);
}

/* ============================================
   MODERN BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button (Canopus Blue) */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-canopus);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Success Button */
.btn-success {
  background: var(--accent-success);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #059669;
}

/* Danger Button */
.btn-danger {
  background: var(--accent-danger);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #DC2626;
}

/* Outline Button */
.btn-outline {
  background: white;
  color: var(--canopus-blue);
  border: 2px solid var(--canopus-blue);
}

.btn-outline:hover:not(:disabled) {
  background: var(--canopus-blue-lighter);
}

/* Large Button */
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* Small Button */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.8125rem;
}

/* ============================================
   MODERN CARDS
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* Card with hover effect */
.card-hoverable {
  transition: all var(--transition-base);
  cursor: pointer;
}

.card-hoverable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO SECTION (For Quick Verify)
   ============================================ */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: var(--space-16) var(--space-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  text-align: center;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: var(--space-8);
}

.hero-input-group {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-4);
  align-items: stretch;
}

.hero-input {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  font-size: 1.125rem;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* ============================================
   STATISTICS CARDS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--canopus-blue);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card.stat-success {
  border-left-color: var(--status-valid);
}

.stat-card.stat-danger {
  border-left-color: var(--status-invalid);
}

.stat-card.stat-warning {
  border-left-color: var(--status-catchall);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.stat-percentage {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-valid {
  background: rgba(16, 185, 129, 0.1);
  color: var(--status-valid);
}

.badge-invalid {
  background: rgba(239, 68, 68, 0.1);
  color: var(--status-invalid);
}

.badge-catchall {
  background: rgba(245, 158, 11, 0.1);
  color: var(--status-catchall);
}

.badge-disposable {
  background: rgba(249, 115, 22, 0.1);
  color: var(--status-disposable);
}

.badge-spamtrap {
  background: rgba(220, 38, 38, 0.1);
  color: var(--status-spamtrap);
}

.badge-processing {
  background: rgba(59, 130, 246, 0.1);
  color: var(--status-processing);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
  border-radius: var(--radius-full);
}

.progress-bar.success {
  background: var(--accent-success);
}

.progress-bar.danger {
  background: var(--accent-danger);
}

/* ============================================
   MODERN FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--canopus-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.form-help {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: var(--space-2);
}

/* ============================================
   DRAG & DROP UPLOAD ZONE
   ============================================ */
.dropzone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  text-align: center;
  background: var(--gray-50);
  transition: all var(--transition-base);
  cursor: pointer;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--canopus-blue);
  background: var(--canopus-blue-lighter);
}

.dropzone-icon {
  font-size: 3rem;
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}

.dropzone-text {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.dropzone-hint {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ============================================
   MODERN MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp var(--transition-base);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--gray-700);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  max-height: calc(90vh - 200px);
}

.modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* ============================================
   DATA TABLE
   ============================================ */
.table-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: var(--gray-50);
}

.table th {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gray-200);
}

.table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
}

.table tbody tr:hover {
  background: var(--gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--accent-success); }
.text-danger { color: var(--accent-danger); }
.text-warning { color: var(--accent-warning); }
.text-muted { color: var(--gray-500); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-input-group {
    flex-direction: column;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .modal {
    width: 95%;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
