/* styles.css */
:root {
  --text-color: #d6bd98;
  --link-color: #d6bd98;
  --inline-link-color: #FFD369;
  --link-hover-color: #d6bd98;
  --primary-color: #1a3636;
  --secondary-color: #40534c;
  --tertiary-color: #677d6a;
  --background-color: #222831;
  /*
  --text-color: #EEEEEE;
  --primary-color: #00ADB5;
  --tertiary-color: #393E46;
  --background-color: #222831;
  --link-color: #EEEEEE;
  --link-hover-color: #FFD369;
*/
}
/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-title {
  align-content: center;
  margin-top: 1rem;
  text-align: center;
}
/* Body Styling */
body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
}
.tagline {
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 1rem;
  padding: .5rem;
}
a {
  color: var(--inline-link-color);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover-color);
}

/* Header Styling */
.header {
  display: flex;
  position: relative;
  height: 100px;
  display: flex;
  padding: 0 1rem;
  background-color: var(--primary-color);
  color: white;
  z-index: 1;
}
.logo-link {
  position: absolute;
  top: 50%;
  transform: translateY(-35%);
  left: 1rem;
}
.logo {
  width: 145px;
  height: 145px;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #22092C;
}

/* Navigation Styling */
.nav {
  margin-top: 1.5rem;
  margin-left: 200px;
}

.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--link-color);
  font-size: 2rem;
  padding: 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:active,
.nav-link:visited {
  color: var(--link-color);
}

/* Underline for Active Link */
/*.nav-link.active::after,
.nav-link:active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--tertiary-color);
}*/
.about-me {
  width: 50%;
  position: relative;
  margin: auto;
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  justify-content: right;
  text-align: left;
  padding: 2rem;
}
.posts-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-width: 50%;
  font-size: 1.2rem;
  display: block;
  margin: auto;
}
.blog-preview {
  border-bottom: 1px solid var(--tertiary-color);
  padding-bottom: 1rem;
  width: 100%;
  position: relative;
  margin: auto;
  // background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  justify-content: right;
  text-align: left;
  padding: 2rem;
}
.blog-preview:last-child {
  border-bottom: none;
}
.blog-preview header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.metadata {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.8rem;
}
.metadata-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: grey;
}
.metadata-item i {
  font-size: 1.4rem;
  color: var(--tertiary-color);
}
.blog-preview .nutshell {
  text-align: center;
  font-weight: bold;
  padding: 2rem;
  color: var(--link-color);
}
.blog-preview h2 {
  margin-bottom: 0.5rem;
  color: #D6CFB4;
}
.blog-preview p {
  margin-bottom: 0.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
  color: #D6CFB4;
}
.blog-preview footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.blog-preview img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 1rem;
}
.tags-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: grey;
}
.tags-wrapper .fa-tags {
  font-size: 1.5rem;
  color: var(--tertiary-color);
  }
.blog-preview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 1rem;
}

.button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
}
.button:hovor {
  background-color: var(--secondary-color);
  }
}
.blog-post {
  width: 60%;
  position: relative;
  margin: auto;
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  justify-content: right;
  text-align: left;
  padding: 2rem;
}
.blog-post h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
}
.blog-post h2 {
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--tertiary-color);
}
.blog-post p {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 1.4rem;
  color: #D6CFB4;
}
.blog-post ul {
  list-style-type: square;
  font-size: 1.2rem;
  padding: .5rem;
  color: #D6CFB4;
}
.blog-post ol {
  list-style-type: decimal;
  font-size: 1.2rem;
  padding: .5rem;
  color: #D6CFB4;
}
.blog-post img {
  width: 75%;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 1rem;
}
/* Code Block Styling */
pre {
  background-color: #2d2d2d; /* Dark background */
  color: #f8f8f2;           /* Light text */
  font-family: 'Courier New', Courier, monospace; /* Monospaced font */
  font-size: 1rem;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto; /* Allow horizontal scrolling for long lines */
  white-space: pre-wrap; /* Wrap lines if needed */
  margin: 1rem 0;
}
pre code {
  display: block;
}

/* Inline Code Styling */
code {
  color: #f8f8f2;
  font-family: 'Courier New', Courier, monospace;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  margin-bottom: 2rem;
}

