/* Custom styles for Ink-free theme */

/* Alignment changes */
/* Increase container width for wider layout */
.container {
  max-width: 1000px; /* Changed from 800px */
}

/* Center align text or adjust margins */
body {
  text-align: left; /* Or center if you want centered text */
}

/* Bullet points and lists styling */
ul,
ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

ul li,
ol li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

ul li {
  list-style-type: disc;
}

ul li li {
  list-style-type: circle;
}

ul li li li {
  list-style-type: square;
}

ol li {
  list-style-type: decimal;
}

/* Floating TOC bullet positioning fix */
.section-nav li {
  list-style-position: outside;
  margin-left: 1rem;
}

.section-nav li::marker {
  color: #666;
}

.section-nav a {
  display: inline-block;
  margin-left: 0.5rem;
}

/* Floating TOC layout improvements */
.article-nav {
  grid-template-columns: 1fr 20em; /* Increased from 15em to 20em for wider sidebar */
  gap: 2rem; /* Add padding/gap between content and TOC */
}

@media only screen and (min-width: 1025px) {
  .article-nav {
    gap: 3rem; /* More gap on larger screens */
  }
}

/* Add spacing between site title and navigation/post titles */
.header .site-title {
  margin-bottom: 2rem; /* Increase space below the site title */
  line-height: 1.2em; /* Fix the tiny line-height */
}

.recent-posts .posts .post {
  margin-bottom: 50px; /* Increase spacing between posts */
}

.post .title.small {
  margin-top: 1rem; /* Add space above post titles */
}

/* Dark mode color customizations */
html.dark body {
  background-color: #111; /* Darker background */
  color: #e0e0e0; /* Lighter text */
}

html.dark a,
html.dark a:hover {
  color: #a78bfa; /* Different link color */
}

html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #f0f0f0; /* Brighter headings */
}

/* Add more customizations as needed */

/* Social media links at top right */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0; /* Allow flexbox to shrink */
}

.header-title-wrapper .site-title {
  margin-bottom: 0; /* Override default margin */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-top {
  margin: 0;
  flex-shrink: 0; /* Prevent social icons from shrinking */
  border-top: none !important; /* Remove border above social icons */
  padding-top: 0 !important;
  align-self: center !important; /* Override align-self: start from theme */
  position: static !important; /* Override sticky positioning */
}

.social-top ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
  height: 100%;
}

.social-top ul li {
  list-style: none;
  margin: 0;
  display: flex;
  align-items: center;
}

.social-top ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  height: 100%;
  line-height: 1;
}

.social-top ul li a:hover {
  opacity: 1;
}

.social-top ul li a svg {
  width: 20px;
  height: 20px;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-title-wrapper .site-title {
    white-space: normal;
    overflow: visible;
  }
}

/* Page view counter styling */
.page-views {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  display: inline-block;
}

html.dark .page-views {
  color: #999;
}

.page-views svg {
  opacity: 0.7;
}

.page-views .view-count {
  font-weight: 500;
}
