/* Modern CSS Architecture - Main Entry Point */

/* 1. Design Tokens - Design system foundation */
@import url('./tokens.css');

/* 2. Base Styles - Reset, typography, global styles */
@import url('./base.css');

/* 3. Layout - Grid, container, sections */
@import url('./layout.css');

/* 4. Components - Reusable UI components */
@import url('./components/navigation.css');
@import url('./components/buttons.css');
@import url('./components/cards.css');
@import url('./components/progress.css');
@import url('./components/copy-button.css');

/* 5. Utilities - Helper classes and animations */

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Prerequisites Section - Clean Card Layout */
.prerequisites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.prereq-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-muted);
  transition: all var(--duration-normal) var(--ease-out);
}

.prereq-item:hover {
  border-color: var(--border-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prereq-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: var(--radius-md);
}

.prereq-content h4 {
  margin: 0 0 var(--space-1) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.prereq-content p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.prereq-content code {
  display: block;
  background-color: var(--bg-tertiary);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin-top: var(--space-2);
  border: 1px solid var(--border-muted);
  line-height: var(--leading-normal);
}

.prereq-content a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.prereq-content a:hover {
  text-decoration: underline;
}

.ready-check {
  margin-top: var(--space-6);
  padding: var(--space-3) 0;
  text-align: center;
  border-top: 2px solid var(--accent-primary);
  margin-top: var(--space-12);
  border-radius: var(--radius-lg);
  outline: 1px solid var(--border-primary);
}

.ready-check p {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
}

.ready-check p strong {
  color: var(--accent-primary);
}

/* Mobile responsiveness for prerequisites */
@media (max-width: 768px) {
  .prerequisites-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin: var(--space-6) 0;
  }
  
  .prereq-item {
    padding: var(--space-4);
    gap: var(--space-3);
  }
  
  .prereq-icon {
    width: 36px;
    height: 36px;
    font-size: var(--text-lg);
  }
  
  .prereq-content h4 {
    font-size: var(--text-base);
  }
  
  .prereq-content p {
    font-size: var(--text-sm);
  }
  
  .prereq-content code {
    padding: var(--space-1);
    font-size: var(--text-xs);
    line-height: var(--leading-snug);
  }
  
  .ready-check {
    margin-top: var(--space-6);
    padding: var(--space-3) 0;
  }
  
  .ready-check p {
    font-size: var(--text-base);
  }
}

/* Prerequisites Section Header */
#setup .section-title,
#setup .intro-text {
  text-align: center;
}

/* About Section */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: var(--space-6) auto var(--space-12) auto;
  max-width: 700px;
}

/* Features Section - Mobile First */
.features-simple {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-8) 0;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .features-simple {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin: var(--space-12) 0;
    padding: 0;
  }
}

.feature-item {
  position: relative;
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .feature-item {
    padding: var(--space-6);
  }
}

.feature-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-secondary);
}

.feature-item:hover::after {
  transform: scaleX(1);
}

body.light-mode .feature-item {
  background: var(--bg-surface);
  border-color: var(--border-primary);
}

body.light-mode .feature-item:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-md);
}

.feature-item h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .feature-item h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    gap: var(--space-3);
  }
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
  .feature-item p {
    font-size: var(--text-base);
  }
}

/* CTA Section - Mobile First */
.cta-section {
  margin-top: var(--space-8);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-section {
    margin-top: var(--space-16);
    padding: var(--space-8);
  }
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-orange);
}

body.light-mode .cta-section {
  background: var(--bg-surface);
  border-color: var(--border-primary);
}

.cta-section h3 {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .cta-section h3 {
    font-size: var(--text-2xl);
  }
}

.cta-section p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
  .cta-section p {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }
}

/* Hero Section */
.hero-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
  max-width: 100%;
  padding: 0 var(--space-4);
}

.hero-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: var(--space-12);
  padding: 0 var(--space-4);
}

.section-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: var(--space-4) auto var(--space-8) auto;
  max-width: 100%;
  padding: 0 var(--space-4);
}

/* Desktop styles */
@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  .hero-buttons {
    flex-direction: row;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
    padding: 0;
  }

  .section-description {
    font-size: var(--text-lg);
    margin: var(--space-6) auto var(--space-12) auto;
    max-width: 700px;
    padding: 0;
  }
}

/* MCP Fundamentals Section */
.fundamentals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  margin: var(--space-12) 0;
  align-items: stretch;
}

.fundamentals-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
  height: 100%;
}

.fundamentals-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-secondary);
}

.fundamentals-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-orange);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

body.light-mode .fundamentals-card {
  background: var(--bg-surface);
  border-color: var(--border-primary);
}

body.light-mode .fundamentals-card:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-md);
}

.fundamentals-card h3 {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-4) 0;
  line-height: var(--leading-tight);
}

.fundamentals-card h4 {
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-3) 0;
  line-height: var(--leading-tight);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.fundamentals-card h4::before {
  content: '⚙️';
  font-size: var(--text-lg);
}

.fundamentals-card:nth-child(2) h4::before {
  content: '🔧';
}

.fundamentals-card:nth-child(3) h4::before {
  content: '🚀';
}

.fundamentals-card p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-4) 0;
}

.fundamentals-card p:last-child {
  margin-bottom: 0;
}

.fundamentals-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fundamentals-card li {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-6);
  position: relative;
  display: flex;
  align-items: flex-start;
}

.fundamentals-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
}

.fundamentals-card strong {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  align-items: center;
}

.card-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
}

.card-title-group h3 {
  margin: 0 0 var(--space-1) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.card-subtitle {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-xl);
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .btn-large {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    width: 100%;
    text-align: center;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
