/* Delta Flyer Setup Guide - Professional Technical Design */
/* Integrated with GitHub Pages site styling */

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

:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #3498db;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-gray: #ecf0f1;
  --medium-gray: #bdc3c7;
  --dark-gray: #7f8c8d;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --background: #ffffff;
  --border-color: #e1e8ed;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  font-size: 16px;
}

/* Print Styles */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-header {
    display: none !important;
  }
  
  .header {
    background: none !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
    border-bottom: 2px solid var(--border-color);
    padding: 20pt 0;
  }
  
  .step-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 15pt;
  }
  
  .wiring-diagram {
    break-inside: avoid;
  }
  
  .url-link {
    word-break: break-all;
  }
  
  .back-section {
    display: none !important;
  }
  
  .no-print {
    display: none !important;
  }
}

@page {
  size: A4;
  margin: 2cm;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Header */
.nav-header {
  background: var(--primary-color);
  color: white;
  padding: 15px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
}

.back-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.nav-title {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Header Section */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.header .subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  opacity: 0.9;
}

.header .author {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Content Sections */
.content-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--accent-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--success-color);
}

/* Step Cards */
.step-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-hover);
}

.step-header {
  background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
  color: white;
  padding: 25px 30px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -10px;
  right: 30px;
  background: var(--success-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.step-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
}

.step-content {
  padding: 30px;
}

.step-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.step-content p:last-child {
  margin-bottom: 0;
}

/* Special Content Blocks */
.info-block {
  background: #e8f4fd;
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.warning-block {
  background: #fef9e7;
  border-left: 4px solid var(--warning-color);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.success-block {
  background: #eafaf1;
  border-left: 4px solid var(--success-color);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.info-block h4,
.warning-block h4,
.success-block h4 {
  margin-bottom: 10px;
  font-weight: 600;
}

/* Links */
.url-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  word-break: break-all;
}

.url-link:hover {
  border-bottom-color: var(--accent-color);
  background: rgba(52, 152, 219, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}

/* Code and Technical Elements */
.code-block {
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.9rem;
  margin: 20px 0;
  overflow-x: auto;
}

.inline-code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.9em;
  border: 1px solid var(--border-color);
}

/* Wiring Diagram Integration */
.wiring-diagram {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.wiring-diagram h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.diagram-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagram-image img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.diagram-image img:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
}

/* Download Links Section */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.download-card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 25px;
  transition: all 0.3s ease;
  border-top: 4px solid var(--accent-color);
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.download-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.download-card p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* Conclusion Section */
.conclusion {
  background: linear-gradient(135deg, var(--success-color) 0%, #229954 100%);
  color: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-top: 50px;
}

.conclusion h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.conclusion p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 20px;
}

.discord-link {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.discord-link:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Back to Main Site Section */
.back-section {
  margin-top: 60px;
  margin-bottom: 40px;
}

.back-card {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.back-card h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.back-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.back-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.back-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .nav-header .container {
    flex-direction: column;
    gap: 10px;
  }
  
  .header h1 {
    font-size: 2.2rem;
  }
  
  .header .subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .step-title {
    font-size: 1.5rem;
  }
  
  .step-content {
    padding: 20px;
  }
  
  .step-header {
    padding: 20px;
  }
  
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 40px 0;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
  
  .header .subtitle {
    font-size: 1rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .nav-title {
    font-size: 1rem;
  }
}