/* Basic styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: #f5f5f5;
  padding: 10px 0;
  margin-bottom: 5px;
}

header h1 {
  margin-bottom: 10px;
}

header h1 a {
  color: #333;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #666;
}

nav a:hover {
  color: #000;
}

main {
  min-height: 60vh;
  margin-bottom: 40px;
}

footer {
  background-color: #f5f5f5;
  padding: 20px 0;
  text-align: center;
  color: #666;
}

/* Blog styling */
.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.post-link {
  color: #333;
  text-decoration: none;
}

.post-link:hover {
  color: #0066cc;
}

.post-meta {
  display: block;
  color: #666;
  font-size: 0.9em;
  margin-bottom: 6px;
  margin-top: 2px;
}

.post-excerpt-box {
  background-color: #f8f9fa;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 3px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-style: italic;
}

.post-content {
  margin-top: 20px;
}

/* Fix spacing issues in post content */
.post-content p {
  margin-bottom: 1.5em;
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}

.post-content ul, 
.post-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid #eaeaea;
}

/* Post header styling */
.post-header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 4px;
  border-left: 5px solid #0066cc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.post-header h1 {
  margin: 0 0 10px 0;
  font-size: 2.2em;
  line-height: 1.2;
  color: #222;
}

/* Tag styling */
.post-tags {
  margin: 10px 0 0 0;
  font-size: 0.9em;
}

.post-tag {
  color: #333;
  text-decoration: none;
  background-color: #f0f5ff;
  padding: 2px 4px;
  border-radius: 3px;
  margin-right: 3px;
  display: inline-block;
  line-height: 1.5;
}

.post-tag strong,
.theme-highlight {
  color: #187ABA;
  font-weight: bold;
}

.post-tag:hover {
  background-color: #e0ebff;
  text-decoration: none;
}

.page-title {
  margin-bottom: 10px;
}

.tags-page .tag-cloud {
  margin: 5px 0 10px 0;
  line-height: 2;
}

.theme-divider {
  margin: 10px 0 5px 0;
  border: 0;
  border-top: 1px solid #f0f0f0;
}

.tag-cloud {
  margin: 15px 0;
  line-height: 2;
}

.theme-section h2 {
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 5px;
  margin-bottom: 8px;
  margin-top: 5px;
}

.theme-links {
  display: flex;
  flex-wrap: wrap;
}

.tag-section-divider {
  margin: 40px 0 20px 0;
  border-top: 1px solid #eaeaea;
}

.tag-link {
  display: inline-block;
  background-color: #f1f1f1;
  padding: 4px 10px;
  margin: 4px;
  border-radius: 15px;
  color: #333;
  text-decoration: none;
  font-size: 0.9em;
}

.tag-link.selected {
  background-color: #187ABA;
  color: white;
}

.tag-link.selected strong {
  color: white;
}

.tag-link:hover {
  background-color: #e1e1e1;
}

.tag-link.active {
  background-color: #0066cc;
  color: white;
}

.tag-section {
  margin-top: 0;
  margin-bottom: 30px;
}

.tag-list {
  margin-top: 0;
}

.tag-list h3 {
  margin-bottom: 5px;
}

.tag-section h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* Scroll Effect Background - DISABLED FOR NOW
.scroll-reveal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/background.gif');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: -1;
  pointer-events: none;
}

.scroll-reveal-bg.visible {
  opacity: 0.25; /* Adjust for visibility under content */
}
*/

/* Content needs to be visible over the background */
main.container {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
}
/* Footnote tooltip styling */
/* Style for footnote reference links */
a.footnote {
  position: relative;
  text-decoration: none;
  border-bottom: 1px dotted #888;
  cursor: help;
}
.footnote-tooltip {
  position: absolute;
  z-index: 1000;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 8px;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: 0.85em;
  line-height: 1.4;
}
.footnote-tooltip p {
  margin: 0;
}