/* ═══════════════════════════════════════════════════════════
   AI Terminal Course - Terminal Aesthetic Stylesheet
   Modern dark theme with authentic terminal feel
   ═══════════════════════════════════════════════════════════ */

/* CSS Variables */
:root {
  /* Colors - GitHub Flames + Cyberpunk Terminal (NO BLUE!) */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #252525;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --accent: #ff6b35;
  --accent-hover: #ff8c61;
  --accent-glow: rgba(255, 107, 53, 0.4);
  --success: #00ff41;
  --success-glow: rgba(0, 255, 65, 0.25);
  --highlight: #fbbf24;
  --highlight-glow: rgba(251, 191, 36, 0.35);
  --secondary: #a855f7;
  --secondary-glow: rgba(168, 85, 247, 0.3);
  --border: #333333;
  --border-bright: #555555;

  /* Typography */
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code',
               'Roboto Mono', Menlo, 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 8px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

/* Hero Section with Typing Animation */
.hero {
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.terminal-prompt {
  font-size: 1.5rem;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}

.prompt-symbol {
  color: var(--success);
  margin-right: var(--space-sm);
}

#typed-text {
  color: var(--text-primary);
}

.cursor {
  color: var(--accent);
  animation: blink 1060ms steps(2) infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Content Section */
.content {
  max-width: 700px;
  margin: 0 auto;
}

/* Title */
.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.tagline strong {
  color: var(--highlight);
  font-weight: 700;
  text-shadow: 0 0 20px var(--highlight-glow);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.feature {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  text-align: center;
  transition: all var(--transition-base);
}

.feature:hover {
  border-color: var(--success);
  box-shadow: 0 0 20px var(--success-glow);
  transform: translateY(-2px);
}

/* CTA Box */
.cta-box {
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow);
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--success));
  opacity: 0.1;
  z-index: -1;
}

.cta-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Install Option */
.install-option {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.install-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.command-box {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
}

#command {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  background: transparent;
  border: none;
  outline: none;
  user-select: all;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--highlight), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 0 20px var(--highlight-glow), 0 4px 6px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--highlight-glow), 0 6px 12px rgba(0, 0, 0, 0.4);
}

.copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 15px var(--highlight-glow), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

/* Terminal Demo */
.terminal-demo {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
}

.terminal-buttons {
  display: flex;
  gap: var(--space-sm);
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-close {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-minimize {
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.btn-maximize {
  background: var(--success);
  box-shadow: 0 0 10px var(--success-glow);
}

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-body {
  padding: var(--space-lg);
  min-height: 150px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.terminal-line {
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  white-space: pre-wrap;
}

.terminal-line:nth-child(1) {
  animation-delay: 0.3s;
}

.terminal-line:nth-child(2) {
  animation-delay: 0.6s;
  color: var(--accent);
}

.terminal-line:nth-child(3) {
  animation-delay: 0.9s;
}

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

/* Modules Section */
.modules-section {
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.module-group {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.module-week {
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px var(--accent-glow);
}

.module-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  position: relative;
}

.module-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Links */
.links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-secondary);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

.link svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.footer p {
  margin-bottom: var(--space-sm);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: var(--space-xl) var(--space-lg);
  }

  .terminal-prompt {
    font-size: 1.2rem;
  }

  .title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .command-box {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .links {
    flex-direction: column;
    align-items: stretch;
  }

  .link {
    justify-content: center;
  }
}

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

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .copy-btn {
    display: none;
  }
}
