/* ================================
   MINIMALIST BLOG STYLES
   Narrow column, large font, wide list indentation.
   Distinct styling for post tags (bottom of page) vs. sidebar tags.
   ================================ */


/* Headings */
h1 {
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  color: var(--primary-color);
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: black;
}

h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.8rem 0;
  color: black;
}

h4 {
  font-size: 1.1rem;
  margin: 1.3rem 0 0.6rem 0;
  color: black;
}

article {
  max-width: 700px;
  font-size: 1.2rem;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.5;
}

footer p {
  line-height: 1.2;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists (wide indentation) */
ol, ul {
  margin: 1rem 0 1.5rem 3rem;
  padding-left: 1rem;
}

li {
  margin: 0.5rem 0;
}


/* ================================
   SIMPLIFIED TABLE STYLES
   ================================ */

table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 1rem;
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  border-radius: 8px; /* Note: border-radius requires border-collapse: separate */
  overflow: hidden;
  background-color: var(--background-color);
  /* This forces columns to be of equal width, ensuring alignment across tables. */
  table-layout: fixed;
}

/* Column headers */
table th {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--accent-color);
  border-right: 1px solid var(--accent-color);
  background-color: var(--silver-light);
  color: var(--primary-color);
  font-weight: 600;
}

/* Table cells */
table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--accent-color);
  border-right: 1px solid var(--accent-color);
  /* Optional: Helps with long words in a fixed layout */
  word-wrap: break-word; 
}

/* Remove border from the last column of every row */
table th:last-child,
table td:last-child {
  border-right: none;
}

/* Remove bottom border from the last row */
table tr:last-child td {
  border-bottom: none;
}

/* Optional: Zebra striping */
table tr:nth-child(even) {
  background-color: rgba(var(--accent-color-rgb), 0.02);
}

/* Hover effect */
table tr:hover {
  background-color: rgba(var(--accent-color-rgb), 0.05);
}

/* Responsive: Horizontal scroll on small screens */
@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}



/* Footnotes */
#footnotes {
  font-size: 0.9rem;
  margin: 2rem 0;
  border-top: 1px solid #000;
}

#footnotes ol {
  margin-left: 2rem;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent-color);
  margin: 1.5rem 0;
  padding: 0 1rem;
  background-color: var(--silver-light);
  color: var(--text-color);
  font-style: italic;
}

/* Code blocks */
code, pre {
  background-color: #f0f0f0;
  color: var(--text-color);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-family: monospace;
  font-size: 0.95rem;
}

/* --- JS-DEPENDENT CLASSES --- */
/* Tooltips (for sidebar tags) */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: auto;
  background-color: #ff5733;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  position: absolute;
  z-index: 1;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  border-top: 1px solid var(--accent-color);
}

.pagination .page-info {
  color: var(--text-color);
}

/* Crypto addresses */
.copy-checkmark {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.copy-checkmark--visible {
  opacity: 1;
}

/* --- TAG STYLING --- */
/* Sidebar tags (from index.ejs) */
.sidebar {
  display: none; /* Hidden by default; uncomment to show */
}

.tags {
  margin: 2rem 0;
}

.tags ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  margin: 0.2rem 0.5rem 0.2rem 0;
}

.tags a:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* Post tags (bottom of individual blog posts, plain text) */
.post-tags {
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--secondary-color);
}

.post-tags h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.post-tags ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.post-tags li {
  display: inline-block;
  background-color: #333333; /* Dark grey */
  color: var(--blog-accent, #ff8c00); /* Orange */
  padding: 0.5rem 1.2rem;
  border-radius: 25px; /* Strong rounding */
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.post-tags li:hover {
  transform: scale(1.05);
  background-color: #444444; /* Slightly lighter grey */
}

/* Blog post preview container (for blog-index.ejs) */
.blog-posts {
  margin: 1.5rem 0;
}



