/* ========================================
   BASE LAYOUT AND TYPOGRAPHY
   ======================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 1rem;
  padding-bottom: 400px; /* Further increased bottom padding to prevent overlap with stats box */
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.5;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h2 {
  color: var(--text-color);
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem 0;
}

/* ========================================
   SUBDIRECTORIES LIST
   ======================================== */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 0.5rem 0;
}

ul li a {
  color: var(--link-color);
  text-decoration: none;
  padding: 0.3rem 0;
  display: inline-block;
  transition: color 0.2s ease;
}

ul li a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
  body {
    padding: 0.5rem;
    padding-bottom: 300px; /* Further increased mobile bottom padding to match desktop */
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
  }
}
