/* Additional styles for enhanced navigation and mobile responsiveness */

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Breadcrumb Navigation */
.breadcrumbs {
  padding: 1rem 0;
  background-color: var(--light-color);
  border-bottom: 1px solid #eee;
}

.breadcrumbs ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumbs li {
  margin-right: 0.5rem;
}

.breadcrumbs li:after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--primary-color);
}

.breadcrumbs li:last-child:after {
  content: "";
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Table of Contents */
.table-of-contents {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  margin: 2rem 0;
}

.table-of-contents h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.table-of-contents ul {
  list-style: none;
  margin-left: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
}

.table-of-contents a:hover {
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary-color);
  color: var(--light-text);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: var(--box-shadow);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
}

/* Enhanced Diagram Styles */
.diagram-container {
  position: relative;
  overflow: hidden;
}

.diagram-container .zoom-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.diagram-container .zoom-btn {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.diagram-container .zoom-btn:hover {
  background-color: var(--secondary-color);
}

/* Enhanced Card Styles */
.section-card {
  position: relative;
  overflow: hidden;
}

.section-card:after {
  content: "→";
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--secondary-color);
  opacity: 0;
  transition: var(--transition);
}

.section-card:hover:after {
  opacity: 1;
  right: 1rem;
}

/* Print Styles */
@media print {
  header, footer, .back-to-top, .breadcrumbs {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: black;
  }
  
  .content-page {
    max-width: 100%;
  }
  
  a {
    color: black;
    text-decoration: none;
  }
  
  .diagram-container {
    break-inside: avoid;
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .findings-grid, .section-cards {
    grid-template-columns: 1fr;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}
