/* Main container */
.docs-container {
  display: flex;
  flex: 1;
  margin-top: 80px; /* offset for fixed navbar */
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: rgba(15, 20, 30, 0.8);
  backdrop-filter: blur(12px) saturate(160%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 80px; /* so it stays under navbar */
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: #00c6ff;
  font-weight: 600;
  font-family: "Sansation", sans-serif;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin-bottom: 18px;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: #ccc;
  font-size: 1rem;
  padding: 8px 12px;
  display: block;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: "Sansation", sans-serif;
}

.sidebar nav ul li a:hover {
  background: rgba(0, 198, 255, 0.1);
  color: #00c6ff;
  padding-left: 18px;
}

/* Main content */
.content {
  flex: 1;
  padding: 40px 60px;
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00c6ff;
  font-family: "Sansation", sans-serif;
}

.content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ddd;
  max-width: 800px;
  font-family: "Sansation", sans-serif;
}

/* --- Quick Links Cards --- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.card {
  background: rgba(20, 25, 40, 0.75);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #00c6ff;
  font-family: "Sansation", sans-serif;
}

.card p {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 15px;
}

.card a {
  color: #00c6ff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.card h2 i {
  color: #00c6ff;
  margin-right: 8px;
}

.card a:hover {
  color: #00ff88;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 200, 255, 0.35);
}

/* --- Getting Started --- */
.getting-started {
  margin: 50px 0;
}

.getting-started h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #00c6ff;
  font-family: "Sansation", sans-serif;
}

.getting-started ol {
  margin-left: 20px;
  color: #ddd;
  line-height: 1.8;
  font-size: 1rem;
}

.getting-started a {
  color: #00c6ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.getting-started a:hover {
  color: #00ff88;
}

/* --- Resources --- */
.resources {
  margin-top: 40px;
}

.resources h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #00c6ff;
  font-family: "Sansation", sans-serif;
}

.resources ul {
  list-style: none;
  padding-left: 0;
}

.resources ul li {
  margin-bottom: 12px;
}

.resources ul li a {
  color: #bbb;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.resources ul li a:hover {
  color: #00ff88;
  padding-left: 6px;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .quick-links {
    grid-template-columns: 1fr;
  }

  .getting-started,
  .resources {
    margin: 30px 0;
  }
}

/* Scrollbar styling (for sidebar if overflow) */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 198, 255, 0.3);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* --- Examples Page Styles --- */
.example-section {
  margin: 50px 0;
  padding: 30px;
  background: rgba(20, 25, 40, 0.6);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.example-section h2 {
  font-size: 1.8rem;
  color: #00c6ff;
  margin-bottom: 15px;
  font-family: "Sansation", sans-serif;
}

.example-section h2 i {
  margin-right: 10px;
  color: #00c6ff;
}

.example-section h3 {
  font-size: 1.3rem;
  color: #00ff88;
  margin-top: 25px;
  margin-bottom: 15px;
  font-family: "Sansation", sans-serif;
}

.example-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 20px;
}

.example-steps {
  margin-left: 25px;
  color: #ddd;
  line-height: 1.9;
  font-size: 1rem;
}

.example-steps li {
  margin-bottom: 12px;
}

.example-steps strong {
  color: #00c6ff;
}

.example-prereqs {
  margin-left: 25px;
  color: #ddd;
  line-height: 1.8;
  font-size: 1rem;
}

.example-prereqs li {
  margin-bottom: 10px;
}

.code-block {
  margin: 20px 0;
  background: rgba(10, 15, 25, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(0, 198, 255, 0.2);
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  padding: 20px;
}

.code-block code {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #00ff88;
  line-height: 1.6;
}

.example-result {
  margin: 25px 0;
  padding: 20px;
  background: rgba(0, 198, 255, 0.1);
  border-left: 4px solid #00c6ff;
  border-radius: 6px;
}

.example-result strong {
  color: #00c6ff;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
}

.example-result pre {
  margin: 10px 0 0 0;
  padding: 15px;
  background: rgba(10, 15, 25, 0.6);
  border-radius: 6px;
  color: #ddd;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.example-note, .example-tip {
  margin: 20px 0;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #00ff88;
  background: rgba(0, 255, 136, 0.1);
}

.example-note strong, .example-tip strong {
  color: #00ff88;
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Tips Section */
.tips-section {
  margin: 50px 0;
}

.tips-section h2 {
  font-size: 1.8rem;
  color: #00c6ff;
  margin-bottom: 30px;
  font-family: "Sansation", sans-serif;
}

.tips-section h2 i {
  margin-right: 10px;
  color: #00ff88;
}

.tip-card {
  margin: 20px 0;
  padding: 20px;
  background: rgba(20, 25, 40, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.2);
}

.tip-card h3 {
  font-size: 1.2rem;
  color: #00c6ff;
  margin-bottom: 10px;
  font-family: "Sansation", sans-serif;
}

.tip-card h3 i {
  margin-right: 8px;
  color: #00ff88;
}

.tip-card p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

.tip-card code {
  background: rgba(0, 198, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  color: #00c6ff;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

/* Patterns Section */
.patterns-section {
  margin: 50px 0;
}

.patterns-section h2 {
  font-size: 1.8rem;
  color: #00c6ff;
  margin-bottom: 30px;
  font-family: "Sansation", sans-serif;
}

.patterns-section h2 i {
  margin-right: 10px;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pattern-card {
  padding: 20px;
  background: rgba(20, 25, 40, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pattern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.3);
}

.pattern-card h3 {
  font-size: 1.2rem;
  color: #00ff88;
  margin-bottom: 8px;
  font-family: "Sansation", sans-serif;
}

.pattern-card p {
  font-size: 1rem;
  color: #00c6ff;
  margin-bottom: 8px;
  font-weight: 500;
}

.pattern-card small {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
}

/* Next Steps Section */
.next-steps {
  margin: 50px 0;
  padding: 30px;
  background: rgba(0, 198, 255, 0.05);
  border-radius: 14px;
  border: 2px solid rgba(0, 198, 255, 0.2);
}

.next-steps h2 {
  font-size: 1.8rem;
  color: #00c6ff;
  margin-bottom: 20px;
  font-family: "Sansation", sans-serif;
}

.next-steps h2 i {
  margin-right: 10px;
}

.next-steps p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 20px;
}

.next-steps ul {
  margin-left: 25px;
  color: #ddd;
  line-height: 1.9;
  font-size: 1rem;
}

.next-steps ul li {
  margin-bottom: 12px;
}

.next-steps a {
  color: #00c6ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.next-steps a:hover {
  color: #00ff88;
}

/* Responsive */
@media (max-width: 992px) {
  .docs-container {
    flex-direction: column;
  }

  .sidebar {
    width: 0;
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    display: none;
    justify-content: center;
  }

  .content {
    padding: 30px 20px;
  }

  .example-section {
    padding: 20px;
  }

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