/* ===============================
   GUIDE PAGE STYLES
   =============================== */

body.guide-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 1rem;
  scroll-behavior: smooth;
  margin: 0;
}

body.guide-container main {
  display: block;
  width: 100%;
}

.guide-content {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Header */
.guide-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.guide-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.guide-header h1 i {
  margin-right: 1rem;
  color: #3498db;
}

.guide-header .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Sections */
.guide-sections {
  padding: 2rem;
}

.guide-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 2rem;
}

.guide-section:last-child {
  border-bottom: none;
}

.guide-section h2 {
  font-size: 2rem;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #3498db;
  display: inline-block;
}

.guide-section h2 i {
  margin-right: 0.75rem;
  color: #3498db;
}

.guide-section h3 {
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.guide-section h4 {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.guide-section p {
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

/* Steps */
.step {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  border-left: 4px solid #3498db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.step:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.step h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Code blocks */
.code-block {
  position: relative;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.code-block code {
  white-space: pre;
  display: block;
}

/* Inline code */
code {
  background: #f1f3f5;
  color: #c7254e;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 0.9em;
}

.code-block code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Info boxes */
.info-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #2196f3;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.info-box h3 {
  margin-top: 0;
  color: #1976d2;
  font-size: 1.25rem;
}

/* Config examples */
.config-example {
  margin: 2rem 0;
}

/* Tips */
.tips {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.tips h4 {
  margin-top: 0;
  color: #f57c00;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tips ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.tips li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.tips strong {
  color: #e65100;
}

/* Command grid */
.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.command-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.command-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #3498db;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.command-item h4 {
  margin: 0 0 0.75rem 0;
  color: #2c3e50;
  font-family: "Fira Code", monospace;
  font-size: 1rem;
}

.command-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Custom sections */
.custom-section {
  margin: 2rem 0;
}

.icon-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.icon-examples span {
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  border: 1px solid #dee2e6;
}

.icon-examples i {
  color: #3498db;
}

/* Deployment options */
.deployment-option {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.deployment-option h3 {
  margin-top: 0;
  color: #2c3e50;
}

.deployment-option h3 i {
  margin-right: 0.5rem;
  color: #3498db;
}

.deployment-option ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.deployment-option li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* FAQ items */
.faq-item {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #17a2b8;
}

.faq-item h4 {
  margin-top: 0;
  color: #0c5460;
}

/* Resource links */
.resource-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.resource-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #3498db;
}

.resource-link i {
  font-size: 2rem;
  color: #3498db;
  min-width: 2rem;
}

.resource-link h4 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.resource-link p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Footer */
.guide-footer {
  background: #2c3e50;
  color: white;
  padding: 2rem;
  text-align: center;
}

.guide-footer p {
  margin: 0.5rem 0;
  opacity: 0.9;
}

.guide-footer a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.guide-footer a:hover {
  color: #5dade2;
}

/* Responsive */
@media (max-width: 768px) {
  .guide-header h1 {
    font-size: 2rem;
  }

  .guide-header .subtitle {
    font-size: 1rem;
  }

  .guide-sections {
    padding: 1.5rem;
  }

  .guide-section h2 {
    font-size: 1.5rem;
  }

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

  .resource-links {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 1rem;
  }

  .code-block {
    font-size: 0.85rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .guide-header h1 {
    font-size: 1.5rem;
  }

  .guide-header .subtitle {
    font-size: 0.9rem;
  }

  .table-of-contents h3 {
    font-size: 1rem;
  }

  .guide-section h2 {
    font-size: 1.25rem;
  }
}
