/* Installation-specific styles */

.installation-main {
  margin-top: 70px;
}

.installation-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.installation-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Installation Tabs */
.installation-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.tab-button.active {
  background: white;
  color: var(--accent-color);
  border-color: white;
}

/* Content Layout */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar Navigation */
.installation-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.docs-nav h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-nav-list {
  list-style: none;
  padding: 0;
}

.docs-nav-list li {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  color: var(--accent-color);
  background: rgba(102, 126, 234, 0.1);
}

.nav-link.active {
  color: var(--accent-color);
  background: rgba(102, 126, 234, 0.1);
  border-left-color: var(--accent-color);
  font-weight: 600;
}

/* Main Documentation Content */
.installation-docs {
  min-height: 800px;
}

.content-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.content-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.content-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.content-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.content-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  scroll-margin-top: 100px;
}

/* Installation Steps */
.installation-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-card {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--accent-color);
}

.step-number {
  background: var(--accent-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;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-note {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid var(--success-color);
  border-radius: 4px;
}

.step-note p {
  margin: 0;
  color: var(--success-color);
  font-weight: 500;
}

/* Code Blocks */
.code-block {
  position: relative;
  background: #2d3748;
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
}

.code-block pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.code-block code {
  color: #e2e8f0;
  background: none;
}

.copy-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-button.copied {
  background: var(--success-color);
  border-color: var(--success-color);
}

/* Success Banner */
.success-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.1));
  border: 1px solid var(--success-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.success-banner h3 {
  color: var(--success-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-banner p {
  color: var(--text-secondary);
  margin: 0;
}

/* Requirements Grid */
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.requirement-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.requirement-card.advanced {
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.requirement-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.requirements-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.req-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.req-label {
  font-weight: 500;
  color: var(--text-primary);
}

.req-min {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.req-rec {
  font-size: 0.9rem;
  color: var(--success-color);
  font-weight: 600;
  text-align: center;
}

/* Checklist */
.checklist-section {
  margin: 2rem 0;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.checkbox-item:hover {
  background: rgba(102, 126, 234, 0.1);
}

.checkbox-item input[type="checkbox"] {
  margin: 0;
  transform: scale(1.2);
}

/* Advanced Steps */
.advanced-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.advanced-step {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.advanced-step h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Installation Methods */
.installation-method {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.installation-method h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Config Example */
.config-example {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border-left: 4px solid var(--warning-color);
}

.config-example h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Test Sections */
.test-section {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.test-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.expected-output {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid var(--success-color);
  border-radius: 4px;
}

.expected-output.blocked {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.expected-output strong {
  color: var(--success-color);
  font-weight: 600;
}

.expected-output.blocked strong {
  color: #ef4444;
}

/* Troubleshooting Grid */
.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.trouble-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ef4444;
}

.trouble-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ef4444;
}

/* Production Sections */
.production-section {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--success-color);
}

.production-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--success-color);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Active navigation indicator */
.nav-menu a.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-sidebar-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .installation-sidebar {
    position: static;
    order: 2;
  }
  
  .installation-docs {
    order: 1;
  }
  
  .docs-nav {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
  }
  
  .docs-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .docs-nav-list li {
    margin-bottom: 0;
  }
  
  .nav-link {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .installation-hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .installation-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-button {
    min-width: 200px;
    text-align: center;
  }
  
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  
  .step-card {
    flex-direction: column;
    gap: 1rem;
  }
  
  .step-number {
    align-self: flex-start;
  }
  
  .troubleshooting-grid {
    grid-template-columns: 1fr;
  }
  
  .code-block pre {
    font-size: 0.8rem;
    padding: 1rem;
  }
  
  .copy-button {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .installation-hero {
    padding: 60px 0;
  }
  
  .installation-hero h1 {
    font-size: 2rem;
  }
  
  .step-card {
    padding: 1.5rem;
  }
  
  .advanced-step,
  .installation-method,
  .test-section,
  .production-section {
    padding: 1.5rem;
  }
}