/* Reset basic styles */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #333333;
  margin: 0;
  padding: 0;
}

a {
  color: #666666;
  text-decoration: none;
}

a:hover {
  color: #999999;
  text-decoration: underline;
}

/* Left sidebar navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: #444444;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

/* Logo container at top of sidebar */
.sidebar-logo {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #555555;
}

.sidebar-logo img {
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
}

/* Navigation links in sidebar */
.sidebar-nav {
  padding: 30px 0;
}

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

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: block;
  padding: 15px 25px;
  color: #cccccc;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: #555555;
  color: #ffffff;
  border-left-color: #888888;
  text-decoration: none;
}

.sidebar-nav a.current {
  background: #555555;
  color: #ffffff;
  border-left-color: #999999;
}

/* Main content container - adjusted for sidebar */
#content {
  max-width: 700px;
  margin: 40px auto 40px 240px; /* Left margin for sidebar */
  padding: 40px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 8px;
  position: relative;
}

/* Main title */
.title {
  text-align: center;
  margin-bottom: 0.2em;
  color: #444444;
  font-weight: 600;
}

.subtitle {
  text-align: center;
  font-size: medium;
  font-weight: bold;
  margin-top: 0;
  color: #666666;
}

/* Welcome message and intro text */
#content > p:first-of-type {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-top: 1em;
}

/* Table of Contents styling */
#table-of-contents {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
  clear: both;
}

#table-of-contents h2 {
  margin-top: 0;
  font-size: 1.1em;
  color: #555555;
}

#text-table-of-contents ul {
  margin: 0;
  padding-left: 20px;
}

#text-table-of-contents li {
  margin: 5px 0;
}

/* Hide section numbers if you don't want them */
.section-number-2 {
  display: none;
}

/* Section headings */
.outline-2 > h2 {
  color: #444444;
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 600;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

/* Recent Posts list styling */
.org-ul {
  list-style-position: inside;
  padding-left: 0;
}

.org-ul li {
  margin: 8px 0;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.org-ul a {
  font-size: 1.05em;
  color: #555555;
  transition: color 0.2s ease;
}

.org-ul a:hover {
  color: #333333;
}

/* General headings */
h1, h2, h3 {
  color: #444444;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

/* Paragraphs */
p {
  line-height: 1.6;
  margin-bottom: 1em;
  color: #555555;
}

/* Lists */
ul {
  list-style-position: inside;
  padding-left: 0;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #cccccc;
  padding-left: 12px;
  color: #777777;
  font-style: italic;
  margin: 1.5em 0;
}

/* Code blocks */
pre, code {
  background: #f0f0f0;
  color: #666666;
  font-family: 'Courier New', Courier, monospace;
  padding: 4px 8px;
  border-radius: 3px;
}

/* Org-mode postamble (footer) styling */
#postamble {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: #888888;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

#postamble p {
  margin: 5px 0;
  color: #999999;
}

#postamble .validation a {
  color: #aaa;
  font-size: 0.8em;
}

/* Responsive design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  #content {
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px;
  }
  
  /* Mobile menu button */
  .mobile-menu-btn {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: #444444;
    color: white;
    border: none;
    border-radius: 4px;
    z-index: 1001;
    cursor: pointer;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}
