/* Additional styles for enhanced presentation */
/* Scope these styles to book content only, not RevealJS slides */
body:not(.reveal) {

/* Hero section styling */
.hero-section {
  background: linear-gradient(135deg, #2E86AB 0%, #A23B72 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Format selector cards */
.format-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.format-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border: 1px solid #e9ecef;
}

.format-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.format-card h3 {
  color: #2E86AB;
  margin-bottom: 1rem;
}

.format-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Progress indicators */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2E86AB, #A23B72);
  transition: width 0.3s ease;
}

/* Exercise boxes */
.exercise-box {
  background: #f8f9fa;
  border: 2px solid #F18F01;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.exercise-box h4 {
  color: #F18F01;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.exercise-box h4::before {
  content: "🏋️";
  margin-right: 0.5rem;
}

/* Quiz styling */
.quiz-question {
  background: #fff;
  border: 2px solid #A23B72;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.quiz-question h5 {
  color: #A23B72;
  margin-bottom: 1rem;
}

/* Code output styling */
.code-output {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  margin-top: 0.5rem;
}

/* Navigation improvements */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  margin: 3rem 0;
  gap: 1rem;
}

.nav-button {
  flex: 1;
  padding: 1rem;
  background: linear-gradient(135deg, #2E86AB, #A23B72);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: white;
  text-decoration: none;
}

.nav-button.next {
  text-align: right;
}

.nav-button.prev {
  text-align: left;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .format-cards {
    grid-template-columns: 1fr;
  }
  
  .chapter-nav {
    flex-direction: column;
  }
  
  .nav-button {
    text-align: center !important;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators */
a:focus,
button:focus {
  outline: 2px solid #F18F01;
  outline-offset: 2px;
}

/* Landing page specific styles */
.grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.g-col-12 { grid-column: span 12; }
.g-col-md-6 { grid-column: span 6; }
.g-col-lg-4 { grid-column: span 4; }

@media (max-width: 768px) {
  .g-col-md-6 { grid-column: span 12; }
  .g-col-lg-4 { grid-column: span 12; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .g-col-lg-4 { grid-column: span 6; }
}

/* Button styling for landing page */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.25rem;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #2E86AB;
  color: white;
}

.btn-primary:hover {
  background-color: #1f5f84;
  color: white;
  text-decoration: none;
}

.btn-success {
  background-color: #198754;
  color: white;
}

.btn-success:hover {
  background-color: #157347;
  color: white;
  text-decoration: none;
}

.btn-info {
  background-color: #F18F01;
  color: white;
}

.btn-info:hover {
  background-color: #cc7700;
  color: white;
  text-decoration: none;
}

.btn-outline-primary {
  color: #2E86AB;
  border-color: #2E86AB;
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: #2E86AB;
  color: white;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.me-3 {
  margin-right: 1rem;
}

/* Text utilities for landing page */
.text-center {
  text-align: center;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Feature grid styling for landing page */
.grid h4 {
  color: #2E86AB;
  margin-bottom: 1rem;
}

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

.grid ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.grid ul li:last-child {
  border-bottom: none;
}

.grid ul li a {
  text-decoration: none;
  color: #2E86AB;
  font-weight: 500;
}

.grid ul li a:hover {
  text-decoration: underline;
  color: #A23B72;
}

/* Landing page responsive improvements */
@media (max-width: 768px) {
  .btn-lg {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .me-3 {
    margin-right: 0;
  }
}

/* Dark mode support for landing page */
@media (prefers-color-scheme: dark) {
  .grid h4 {
    color: #a8c8ec;
  }
  
  .grid ul li {
    border-bottom-color: #495057;
  }
  
  .grid ul li a {
    color: #a8c8ec;
  }
  
  .grid ul li a:hover {
    color: #F18F01;
  }
}

} /* End of body:not(.reveal) scope */