/* GitBook-style Guide Layout */
.guide-layout {
  display: flex;
  min-height: 100vh;
  background: var(--background, #0a0a0a);
}

/* Sidebar Navigation */
.guide-sidebar {
  width: 280px;
  background: rgba(234, 92, 132, 0.05);
  border-right: 1px solid rgba(234, 92, 132, 0.2);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.guide-sidebar h3 {
  color: #ea5c84;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.guide-sidebar h3:first-child {
  margin-top: 0;
}

.guide-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-nav-item {
  margin: 0;
}

.guide-nav-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #b8b8b8;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  font-size: 0.95rem;
}

.guide-nav-link:hover {
  background: rgba(234, 92, 132, 0.1);
  color: #fff;
  border-left-color: #ea5c84;
}

.guide-nav-link.active {
  background: rgba(234, 92, 132, 0.15);
  color: #fff;
  border-left-color: #ea5c84;
  font-weight: 600;
}

/* Main Content Area */
.guide-content {
  flex: 1;
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.guide-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ea5c84, #9b4dca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #ea5c84;
}

.guide-content h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #9b4dca;
}

.guide-content p {
  line-height: 1.8;
  color: #b8b8b8;
  margin-bottom: 1rem;
}

.guide-content ul, .guide-content ol {
  line-height: 1.8;
  color: #b8b8b8;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.guide-content li {
  margin-bottom: 0.5rem;
}

/* Info Boxes */
.info-box {
  background: rgba(234, 92, 132, 0.1);
  border-left: 4px solid #ea5c84;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.info-box.tip {
  background: rgba(155, 77, 202, 0.1);
  border-left-color: #9b4dca;
}

.info-box.warning {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: #ffc107;
}

.info-box h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #ea5c84;
}

.info-box.tip h4 {
  color: #9b4dca;
}

.info-box.warning h4 {
  color: #ffc107;
}

/* Channel Lists */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.channel-item {
  background: rgba(234, 92, 132, 0.08);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.channel-item strong {
  color: #ea5c84;
  display: block;
  margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .guide-layout {
    flex-direction: column;
  }

  .guide-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(234, 92, 132, 0.2);
  }

  .guide-content {
    padding: 2rem 1.5rem;
  }

  .guide-content h1 {
    font-size: 2rem;
  }

  .mobile-sidebar-toggle {
    display: block;
    background: linear-gradient(135deg, #ea5c84, #9b4dca);
    border: none;
    color: white;
    padding: 12px 24px;
    margin: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: calc(100% - 3rem);
  }

  .guide-sidebar.collapsed .guide-nav-list {
    display: none;
  }

  .guide-sidebar.collapsed h3 {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-sidebar-toggle {
    display: none;
  }
}
