html {
  font-size: 16px;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #FFF8E1;
  color: #333;
  font-family: 'Roboto Mono', monospace;
}

main {
  flex: 1;
  padding: 2rem;
  background-color: #FFF8E1;
}

h1,
h2,
h3 {
  font-family: 'Roboto Mono', monospace;
}

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- Header styles ---- */
header {
  background-color: #FFF8E1;
  padding: 2rem 0;
  border-bottom: 1px solid #ccc;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-container h1 {
  text-align: left;
  margin: 0;
}

/* Site title */
.site-title a {
  text-decoration: none;
  color: inherit;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Navigation styles */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1em;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.5em 1em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover state for navigation links */
.main-nav ul li a:hover {
  background-color: #e0e0e0;
  border-radius: 4px;
}

/* ---- Footer styles ---- */
footer {
  background-color: #FFF8E1;
  color: #333;
  text-align: center;
  padding: 1rem;
}

/* ---- About me styles ---- */
.about-me {
  display: flex;
  align-items: center;
  width: 100%;
}

.about-text {
  flex: 1;
}

.about-image {
  flex-shrink: 0;
  padding: 0 1rem;
}

.circle-img {
  width: 300px;
  height: auto;
  object-fit: cover;
  max-width: 100%;
}

.social-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  list-style: none;
  padding: 0;
  margin: 0.5em 0;
}

.social-icon {
  vertical-align: middle;
  margin-right: 0.5em;
  width: 24px;
  height: 24px;
}

/* ---- Resume styles ---- */
.resume {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.resume h2,
.resume h3 {
  margin-bottom: 0.5rem;
}

.resume ul {
  list-style: none;
  padding: 0;
}

.resume li {
  margin-bottom: 1rem;
}

.resume ul li ul li {
  margin-bottom: 0;
}

/* ---- Blog List Styles ----*/

.list-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.summary-column {
  flex: 3;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.summary-card {
  background: #FFF8E1;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.post-image {
  height: 300px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.summary-content {
  padding: 1rem;
}

.summary-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.summary-title a {
  text-decoration: none;
  color: #333;
  font-size: 1.5rem;
}

.summary-title a:hover {
  text-decoration: underline;
  color: #333;
  font-size: 1.5rem;
}

.summary-footer a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
}

.summary-footer a:hover {
  text-decoration: underline;
}

.summary-excerpt {
  font-size: 1rem;
  line-height: 1.6;
}

/* ---- Pagination Styles ---- */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin: 2rem 0;
}

.pagination a {
  text-decoration: none;
  color: #333;
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.pagination a:hover {
  background-color: #e0e0e0;
}

.pagination .current {
  font-weight: bold;
  padding: 0.5em 1em;
}

/* ---- Post Tags Styles ---- */

.tags-sidebar {
  flex: 1;
  max-width: 100%;
}

.tags-sidebar h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-align: left;
  font-size: 1.2rem;
  color: #333;
}

.tags-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5em;
}

.tags-sidebar ul li a {
  display: inline-block;
  padding: 0.4em 0.8em;
  border-radius: 16px;
  background-color: #e0e0e0;
  color: #333;
  font-size: 0.85rem;
  text-decoration: none;
}


.tags-sidebar ul li a:hover {
  background: #ccc;
}


/* ---- Blog Post styles ---- */

/* Post Header */
.post-header {
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.post-header h1 {
  margin: 0;
}

.post {
  background: #FFF8E1;
  border-left: 3px solid #ccc;
  border-radius: 6px;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.08);
  overflow: auto;
}

.post-content {
  padding: 1.5rem;
}

.post-body {
  line-height: 1.6;
  font-size: 1rem;
}

.date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* For plain Markdown code blocks (no .highlight class) */
.post-body pre {
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  margin: 1em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: auto;
}

/* Remove extra styling from the <code> inside */
.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* For inline code (not inside .highlight or <pre>) */
.post-body code {
  background-color: hsl(0, 0%, 80%);
  color: #333;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  box-shadow: none;
}

/* Image styling */
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border-radius: 4px;
}

/* Video styling */
.post-body .article-video {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  /* Ensures it doesn't exceed container width */
  margin: 1em auto;
  border-radius: 4px;
}

.post-body .article-video iframe,
.post-body .article-video object,
.post-body .article-video embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---- Project styles ---- */
.git-link a {
  color: #0366d6;
  text-decoration: none;
  font-weight: bold;
}

.git-link a:hover {
  text-decoration: underline;
}

.project-updates {
  margin-top: 2rem;
  padding-top: 1rem;
}

.project-updates h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.project-updates ul {
  list-style: none;
  padding: 0;
}

.project-updates li {
  margin-bottom: 0.5rem;
}

.project-dates {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.project-dates p {
  margin: 0.2rem 0;
}

.created-date {
  font-weight: bold;
}

.deprecated-date {
  color: #d9534f;
  /* A red tone to indicate deprecation */
}

/* --- Mobile responsive ---- */
@media (max-width: 768px) {
  main {
    padding: 0rem;
  }

  .wrapper {
    padding: .5rem;
  }

  header {
    padding: 0rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0rem;
  }

  .main-nav {
    margin-top: 0.5rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5em;
  }

  .about-me {
    flex-direction: column;
  }

  .about-image {
    order: -1;
    margin-bottom: 1em;
    padding: 0 1rem;
  }

  .circle-img {
    width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .about-text {
    text-align: left;
  }

  .post-content {
    margin-left: 0;
    margin-right: 0;
    padding: .5rem;
  }

  .post-content-container {
    padding: 1rem;
  }

  .list-container {
    flex-direction: column;
    padding: 0rem;
  }

  .tags-sidebar {
    max-width: 100%;
    margin-top: 2rem;
  }

  .tags-sidebar h3 {
    text-align: center;
  }

  .tags-sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

}