/* ===================================
   UNIFIED PAGE STYLES FOR ALL PAGES
   World-Class Design System Extension
   =================================== */

/* === UNIVERSAL PAGE IMPROVEMENTS === */

/* Apply premium fonts to all pages */
body {
  font-family: var(--font-premium-body, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Premium headings for all pages */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-premium-display, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Enhanced navigation for all pages */
.navbar {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-link {
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--premium-primary, #0066FF);
  transform: translateY(-1px);
}

/* Premium buttons for all pages */
.btn {
  font-family: var(--font-premium-body);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0066FF 0%, #3385FF 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-premium-primary, #0F172A);
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(0, 102, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.3);
}

/* Enhanced cards for all pages */
.card, .feature-card, .challenge-card, .partner-card {
  background: white;
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before, .feature-card::before, .challenge-card::before, .partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #0066FF 0%, #3385FF 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before, .feature-card:hover::before, .challenge-card:hover::before, .partner-card:hover::before {
  opacity: 1;
}

.card:hover, .feature-card:hover, .challenge-card:hover, .partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 102, 255, 0.2);
}

/* Premium section headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0066FF 0%, #7C3AED 50%, #FF6B35 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-premium-secondary, #475569);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Enhanced page headers */
.page-header {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 102, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #0066FF 0%, #7C3AED 50%, #FF6B35 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-premium-secondary, #475569);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Premium grid layouts */
.grid, .hex-grid, .features-grid, .challenge-grid, .partnership-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Enhanced footer */
.footer {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.3), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #3385FF;
}

/* Premium animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Enhanced typography */
p {
  line-height: 1.6;
  color: var(--text-premium-secondary, #475569);
}

strong {
  color: var(--text-premium-primary, #0F172A);
  font-weight: 600;
}

/* Premium form elements */
input, textarea, select {
  font-family: var(--font-premium-body);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: white;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0066FF;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Enhanced lists */
ul, ol {
  line-height: 1.6;
}

li {
  margin-bottom: 0.5rem;
}

/* Premium code blocks */
pre, code {
  font-family: var(--font-premium-mono, 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace);
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

/* Enhanced tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

th {
  background: linear-gradient(135deg, #0066FF 0%, #3385FF 100%);
  color: white;
  font-weight: 600;
}

tr:hover {
  background: rgba(0, 102, 255, 0.02);
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .grid, .hex-grid, .features-grid, .challenge-grid, .partnership-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .card, .feature-card, .challenge-card, .partner-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-header {
    padding: 4rem 0 3rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-premium-primary: #0F172A;
    --bg-premium-secondary: #1E293B;
    --text-premium-primary: #F8FAFC;
    --text-premium-secondary: #CBD5E1;
    --text-premium-tertiary: #94A3B8;
  }
  
  body {
    background: var(--bg-premium-primary);
    color: var(--text-premium-primary);
  }
  
  .card, .feature-card, .challenge-card, .partner-card {
    background: var(--bg-premium-secondary);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .page-title {
    font-size: 24pt;
    color: black;
  }
  
  .section-title {
    font-size: 18pt;
    color: black;
  }
}