@import "gruvbox-theme.css";

* {
  font-family: georgia, serif;
  transition: background-color 0.3s ease, color 0.3s ease, fill 0.3s ease;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  text-align: center;
  margin-top: 3rem;
  font-size: 1.2rem;
}

h1 {
  font-size: 3em;
}

h3 {
  color: var(--fg3);
  font-size: 1.5em;
  transition: color 0.3s ease;
}

nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  /* Space between nav items */
  padding: 20px 40px;
  /* Internal spacing */
}

a {
  color: var(--blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--red);
}

nav a.active {
  color: var(--red);
  font-weight: bold;
}

#theme-toggle {
  height: 50px;
  width: 50px;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--fg);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  #theme-toggle {
    height: 35px;
    width: 35px;
    padding: 6px;
    top: 15px;
    right: 15px;
  }
}

#theme-toggle:hover {
  background-color: var(--fg3)
}

#theme-toggle svg {
  fill: var(--bg);
}

#theme-toggle svg:last-child {
  display: none;
}

[data-theme="dark"] #theme-toggle svg:first-child {
  display: none;
}

[data-theme="dark"] #theme-toggle svg:last-child {
  display: block;
}

/* Content section styling */
.content-section {
  display: none;
  margin: 2rem auto;
  max-width: 800px;
  padding: 0 2rem;
}

.content-section.active {
  display: block;
}

.content-section h2 {
  color: var(--fg);
  margin-bottom: 1rem;
}

.content-section ul {
  text-align: left;
  list-style-type: disc;
  padding-left: 2rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* Blog styling */
.blog-post-preview {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--fg3);
}

.blog-post-preview:last-child {
  border-bottom: none;
}

.blog-post-preview h3 {
  margin-bottom: 0.5rem;
}

.blog-post-preview h3 a {
  text-decoration: none;
  color: var(--fg);
}

.blog-post-preview h3 a:hover {
  color: var(--blue);
}

.post-date {
  color: var(--fg3);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.post-excerpt {
  color: var(--fg2);
}


#post-content {
  margin-bottom: 2rem;
}

#post-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#post-content h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem 0;
}

#post-content h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem 0;
}

#post-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

#post-content ul {
  margin-bottom: 1rem;
}

#comments {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fg3);
}
