/* Documentation Styles */

/* Documentation Header */
.docs-header {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.98)
  );
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  margin-top: 5rem;
  text-align: center;
}

.docs-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(126, 34, 206, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

.docs-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Rajdhani", "Inter", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  text-align: center !important;
  float: none !important;
  display: block;
  width: 100%;
}

.docs-subtitle {
  font-size: 1.25rem;
  color: var(--color-light-200);
  max-width: 700px;
  margin: 0 auto;
  text-align: center !important;
  float: none !important;
  display: block;
  width: 100%;
}

/* Documentation Content */
.docs-content {
  background-color: var(--color-dark-900);
  min-height: 70vh;
}

/* Sidebar Navigation */
.docs-sidebar {
  padding-right: 2rem;
}

.docs-nav-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-light-100);
  font-family: "Rajdhani", "Inter", "Segoe UI", sans-serif;
  position: relative;
  padding-bottom: 0.75rem;
}

.docs-nav-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

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

.docs-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-light-200);
  font-weight: 500;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 0 0.375rem 0.375rem 0;
}

.docs-nav-link:hover {
  color: var(--color-light-100);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--color-secondary);
  transform: translateX(5px);
}

.docs-nav-link.active {
  color: var(--color-light-100);
  background: rgba(126, 34, 206, 0.1);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

/* Main Content */
.docs-section {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.docs-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-light-100);
  font-family: "Rajdhani", "Inter", "Segoe UI", sans-serif;
  position: relative;
  padding-bottom: 0.75rem;
}

.docs-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

.docs-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--color-light-100);
  font-family: "Rajdhani", "Inter", "Segoe UI", sans-serif;
}

.docs-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-light-200);
  margin-bottom: 1.5rem;
}

.docs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.docs-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  color: var(--color-light-200);
}

.docs-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.docs-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.docs-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: rgba(126, 34, 206, 0.3);
}

.docs-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-light-100);
  font-family: "Rajdhani", "Inter", "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
}

.docs-card-title i {
  margin-right: 0.75rem;
  color: var(--color-primary);
}

.docs-code-block {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}

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

.docs-code-block code {
  font-family: "Fira Code", monospace;
  color: var(--color-light-200);
  font-size: 0.9rem;
  line-height: 1.5;
}

.docs-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.docs-tag-html {
  background: rgba(229, 77, 38, 0.15);
  color: #e54d26;
  border: 1px solid rgba(229, 77, 38, 0.3);
}

.docs-tag-css {
  background: rgba(38, 77, 228, 0.15);
  color: #264de4;
  border: 1px solid rgba(38, 77, 228, 0.3);
}

.docs-tag-js {
  background: rgba(240, 219, 79, 0.15);
  color: #f0db4f;
  border: 1px solid rgba(240, 219, 79, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .docs-sidebar {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .docs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .docs-nav-link {
    padding: 0.5rem 1rem;
    border-left: none;
    border-radius: 0.375rem;
    margin-bottom: 0;
    border-bottom: 2px solid transparent;
  }

  .docs-nav-link:hover,
  .docs-nav-link.active {
    transform: none;
    border-left-color: transparent;
    border-bottom-color: var(--color-primary);
  }
}

@media (max-width: 768px) {
  .docs-title {
    font-size: 2.25rem;
  }

  .docs-subtitle {
    font-size: 1.1rem;
  }

  .docs-section-title {
    font-size: 1.75rem;
  }

  .docs-code-block {
    padding: 0.75rem;
  }

  .docs-code-block code {
    font-size: 0.8rem;
  }
}

/* For when we add a color palette display */
.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.color-swatch {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.color-swatch:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.color-display {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-info {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.color-name {
  font-weight: 600;
  color: var(--color-light-100);
  margin-bottom: 0.5rem;
}

.color-value {
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  color: var(--color-light-300);
}
