/* Main Layout of documentation */
.documentation-container {
  display: flex;
  min-height: calc(100vh - 70px);
  background-color: var(--background-dark);
  color: var(--text-light);
  position: relative;
}

/* Hero section for documentation */
.doc-hero {
  background-color: var(--background-innovation);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.doc-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.doc-hero-content {
  position: relative;
  z-index: 2;
}

.doc-hero h1 {
  font-size: 42px;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 700;
}

.doc-hero p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Sidebar */
.doc-sidebar {
  width: 280px;
  background-color: var(--background-dark);
  color: var(--text-light);
  position: fixed;
  height: calc(100vh - 70px);
  overflow-y: auto;
  box-shadow: var(--shadow-dark);
  z-index: 10;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Search area */
.doc-search {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 14px;
}

.search-button {
  position: absolute;
  right: 30px;
  top: 30px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

/* Navigation of documentation */
.doc-nav {
  padding: 20px;
  position: static;
  background-color: transparent;
  box-shadow: none;
}

.nav-title, .resources-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.doc-nav ul, .doc-resources ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}

.doc-nav li, .doc-resources li {
  position: relative;
}

.doc-nav a, .doc-resources a {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  padding: 8px 0;
}

.doc-nav a:hover, .doc-resources a:hover {
  color: var(--primary-color);
}

.doc-nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.doc-nav a i, .doc-resources a i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.doc-nav .sub-menu {
  padding-left: 28px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.doc-nav .sub-menu a {
  font-size: 13px;
  padding: 5px 0;
}

/* Resources section */
.doc-resources {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Version of documentation */
.doc-version {
  padding: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Main content */
.doc-content {
  flex: 1;
  padding: 40px;
  margin-left: 320px;
  margin-right: 320px;
  color: var(--text-light);
}

/* Sections of documentation */
.doc-section {
  margin-bottom: 60px;
  background-color: var(--background-innovation);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.section-header {
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
}

.section-header h1 {
  font-size: 28px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 24px;
  color: var(--text-light);
  margin: 0;
}

.section-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.section-content {
  padding: 30px;
  color: var(--text-light);
}

.section-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Cards for documentation */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.doc-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.card-icon i {
  font-size: 20px;
  color: var(--text-dark);
}

.doc-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.doc-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.card-link {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s;
}

.card-link i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.card-link:hover {
  color: var(--text-light);
}

.card-link:hover i {
  transform: translateX(3px);
}

/* Subsections */
.sub-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.sub-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-light);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Info boxes */
.info-box {
  background-color: rgba(0, 100, 201, 0.301);
  border-left: 4px solid #0066cc;
  padding: 20px;
  margin: 20px 0;
  border-radius: 6px;
}

.success-box {
  background-color: rgba(0, 192, 127, 0.1);
  border-left-color: var(--primary-color);
}

.success-box h4 {
  color: var(--primary-color);
}

/* Code blocks */
.code-block {
  background-color: #282c34;
  border-radius: 6px;
  margin: 20px 0;
  overflow: hidden;
}

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

.code-block code {
  color: #ffffff;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.5;
}

/* Feature grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 30px auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  position: absolute;
  background-color: #fff;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -12px;
  top: 15px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -12px;
  top: 15px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--background-quality);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: #fff;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.timeline-year {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.timeline-description {
  color: var(--text-light);
  opacity: 0.9;
  line-height: 1.6;
}

/* Responsive styles for timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 28px;
    right: auto;
  }
}

@media (max-width: 576px) {
  .timeline-content {
    padding: 15px 20px;
  }
  
  .timeline-title {
    font-size: 1.2rem;
  }
}

/* Pagination */
.doc-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-prev, .pagination-next {
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 16px;
  transition: color 0.3s;
}

.pagination-prev i, .pagination-next i {
  transition: transform 0.3s;
}

.pagination-prev i {
  margin-right: 8px;
}

.pagination-next i {
  margin-left: 8px;
}

.pagination-prev:hover, .pagination-next:hover {
  color: var(--primary-color);
}

.pagination-prev:hover i {
  transform: translateX(-3px);
}

.pagination-next:hover i {
  transform: translateX(3px);
}

/* CTA Section */
.doc-cta {
  background-color: var(--background-quality);
  padding: 80px 0;
  text-align: center;
}

.doc-cta h2 {
  font-size: 32px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.doc-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-dark);
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  background: var(--gradient-primary-reverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
}

/* Responsivity */
@media (max-width: 1200px) {
  .doc-content {
    margin-right: 0;
  }
}

@media (max-width: 992px) {
  .documentation-container {
    flex-direction: column;
  }
  
  .doc-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    max-height: none;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
  }
  
  .doc-search {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .doc-nav {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .doc-resources {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .doc-version {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .doc-content {
    margin-left: 0;
    padding: 30px;
  }
  
  .doc-hero h1 {
    font-size: 32px;
  }
  
  .doc-hero p {
    font-size: 16px;
  }
  
  .doc-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .section-header {
    padding: 20px;
  }
  
  .section-content {
    padding: 20px;
  }
  
  .doc-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .doc-cta h2 {
    font-size: 24px;
  }
  
  .doc-cta p {
    font-size: 16px;
  }
  
  .code-block {
    padding: 15px;
    overflow-x: auto;
  }
  
  .code-block pre {
    font-size: 13px;
  }
  
  .image-container img {
    max-width: 100%;
    height: auto;
  }
  
  .timeline {
    padding-left: 20px;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  .doc-pagination {
    padding: 15px 6px 0 6px;
  }
}

@media (max-width: 576px) {
  .doc-content {
    padding: 20px 15px;
  }
  
  .section-header h1,
  .section-header h2 {
    font-size: 24px;
  }
  
  .section-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .doc-card {
    padding: 20px;
  }
  
  .doc-search {
    padding: 15px;
  }
  
  .doc-nav {
    padding: 15px;
  }
  
  .doc-resources {
    padding: 15px;
  }
  
  .doc-cta {
    padding: 40px 0;
  }
  
  .btn-primary {
    width: 100%;
    text-align: center;
  }
}