/* LAYOUT */
/* =========================================
   1. GLOBAL VARIABLES & RESET
========================================= */
/* 1. The Global Box-Sizing Fix (Crucial for grids!) */
*, *::before, *::after {
  box-sizing: border-box;
}


body {
  color: #333;
  font-size: 125%;
  line-height: 1.5;
  padding: 0rem;
  margin: 0 auto;
  background-color: rgb(61, 116, 123);
}

.content {
  margin-bottom: 2rem;
}


/* =========================================
   2. HEADER & NAVIGATION
========================================= */
/* NAVIGATION */

.site-nav {
  display: flex;
}

.site-nav a {
  display: block;
  padding: 1rem;
}

.site-nav .logo {
  font-weight: bold;
  padding-left: 0;
}

.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 48rem) {
  .site-nav,
  .main-menu,
  h1,
  footer
   {
    flex-direction: column;
    text-align: center;
  }

  .site-nav a {
    padding: 0.5rem;
    padding-left: 0;
  }
}

/* LISTS */
/* =========================================
   3. POST GRID & CARDS (list.html)
========================================= */

.post-snippet {
  margin-bottom: 0rem;
  border: solid;
  background-color: #dba92a; 
  text-align: center;
  padding: 15px; /* Adds space inside the box */
  
}

.post-snippet h3 {
  margin-bottom: 0.25rem;
}
.post-snippet time {
  font-size: 0.85rem; /* Makes the text slightly smaller than the base font */
  text-align: left;
  display: block;
}

/* 1. Mobile First: 1 Column */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (max-width: 768px){
.post-snippet time {
  font-size: 0.85rem; /* Makes the text slightly smaller than the base font */
  text-align: center;
}
}
/* 2. Tablets: 2 Columns */
@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3. Desktop: 4 Columns */
@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 1. Stop the grid from growing past 1200 pixels */
    max-width: 1600px; 
    
    /* 2. Center the whole grid on the screen */
    margin: 0 auto; 
  }
}

/* Container for the buttons */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* Space between buttons and text */
  margin-top: 40px;
  margin-bottom: 40px;
}

/* The actual buttons */
.page-btn {
  padding: 10px 20px;
  background-color: #dba92a; 
  color: #000000;
  text-decoration: none; 
  border: 2px solid #000000;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.2s ease; /* Makes the hover effect smooth */
}

/* The hover effect */
.page-btn:hover {
  background-color: #000000;
  color: #dba92a;
}

/* The "Page X of Y" text */
.page-num {
  font-size: 0.9rem;
  color: #666666;
}

/* Category tabs stuff */

/* The container holding the tabs */
.category-tabs {
  display: flex;
  justify-content: center; /* Centers the tabs on the page */
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Ensures they don't break on mobile screens */
}

/* The actual tab buttons */
.tab-btn {
  padding: 8px 16px;
  background-color: #e16f6ffb;
  color: #000000;
  text-decoration: none;
  border: 2px solid #dba92a;
  border-radius: 25px; 
  font-weight: bold;
  box-shadow: 3px 3px 0px #000000; 
  transition: all 0.2s ease;
}

/* The hover state */
.tab-btn:hover {
  background-color: #dba92a;
  color: powderblue;
  transform: translate(3px, 3px); 
  box-shadow: 0px 0px 0px #000000;
}
/* Container for the image */
.thumbnail-wrapper {
  width: 100%;
  margin-bottom: 15px; 
}

/* The actual image */
.post-thumbnail {
 width: 100%;
  aspect-ratio: 16 / 9; /* Replaces height: 200px */
  object-fit: cover; 
  display: block;
 
}


/* =========================================
   4. TAGS & CATEGORIES
========================================= */

/* Container holding all the tags for a post */
.tag-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 8px; 
  margin-top: 15px; 
  justify-content: center; 
}

/* The actual tag badges */
.tag-badge {
  font-size: 0.75rem; /* Very small text */
  background-color: #36b522; 
  color: #000000;
  padding: 4px 10px;
  border-radius: 25px; 
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  transition: all 0.2s ease;
}

/* Hover effect */
.tag-badge:hover {
  background-color: #1dc3c9;
  color: #dba92a;
  transform: translate(2px, 2px); 
  box-shadow: 0px 0px 0px #000000;
}
/* =========================================
   PAGE-LEVEL SEARCH ENGINE (Categories)
========================================= */
.page-search-wrapper {
  margin: 0 auto 20px auto; 
  width: 100%;
  max-width: 500px;
}

.page-search-input {
  width: 100%; /* Stretches to fill your center column */
  padding: 10px;
  font-size: 1.0rem;
  font-family: "Courier New", Courier, monospace;
  background-color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  outline: none;
}

.page-search-input:focus {
  background-color: powderblue; /* Lights up when they click it */
}

.page-search-results {
  display: none; 
  list-style: none;
  padding: 0;
  margin-top: 15px;
  background-color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  max-height: 350px; 
  overflow-y: auto;
}

.page-search-results li {
  border-bottom: 1px dashed #000000;
}

.page-search-results li:last-child {
  border-bottom: none;
}

.page-search-results a {
  display: block;
  padding: 10px;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.page-search-results a:hover {
  background-color: powderblue;
  color: #6e06f2; /* Your custom retro purple! */
}
/* =========================================
   5. SINGLE ARTICLE VIEW (single.html)
========================================= */

/* The main container limits the width so it's easy to read */
.single-post-container {
  max-width: 1000px;
  margin: 0 auto; 
  padding: 40px 20px; 
  border: 3px solid black;
  background-color: #c8aa46;
}

/* The Back Button */
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}
.back-link:hover {
  color: #dba92a;
}

/* The Header & Meta Text */
.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  line-height: 1.2;
}
.post-meta {
  color: #3f3f3f;
  font-style: italic;
  margin-bottom: 30px;
}

/* The Massive Hero Image */
.post-hero-image {
  margin-bottom: 40px;
}
.post-hero-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #000000; 
}

/* Formatting the Markdown Content */
.post-content {
  font-size: 1.1rem;
  line-height: 1.8; 
  color: #222222;
}

.post-content pre, 
.post-content pre code {
  line-height: 0.8; 
}
.post-content p {
  margin-bottom: 25px; 
}
body.single-post-bg {
  
  background-color: #C19A6B; 
  
  
}
/* =========================================
   MARKDOWN CODE BLOCKS
========================================= */

/* 1. The Big Code Blocks (Triple Backticks) */
pre {
  background-color: #111111; 
  border: 2px solid #000000;
  border-radius: 5px;
  padding: 15px;
  margin: 25px 0;
  overflow-x: auto; 
  box-shadow: 4px 4px 0px #dba92a; 
}

pre code {
  color: #00ff00; /* Classic Terminal Green text */
  font-family: "Courier New", Courier, monospace;
  font-size: 0.80rem;
}

/* 2. Inline Code (Single Backticks) */
p code, li code {
  background-color: #000000;
  border: 1px solid #000000;
  padding: 2px 6px;
  border-radius: 3px;
  color: #d10000; /* Dark red so it pops against normal text */
  font-weight: bold;
}

/* =========================================
   TOP CENTERED NAV BOXES (header.html)
========================================= */

.box-nav-container {
  display: flex;
  justify-content: center; /* Pushes everything to the dead center */
  align-items: center;
  flex-wrap: wrap; /* Allows boxes to drop to the next line on tiny phone screens */
  gap: 18px; /* The space between the boxes */
  padding: 30px;
  max-width: 800px;
  margin: 0 auto ; /* Centers the container and adds space below it */
}
/* The sticky modifier */
.is-sticky {
  position: sticky;
  top: 0px;
  z-index: 999;
  background-color: antiquewhite;
  max-width: 100%;
  border-bottom: 2px solid black;
  margin-bottom: 1px;
}

.nav-box {
  background-color: #c9950f;
  border: 2px solid #d6c938;
  padding: 10px 15px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  border-radius: 25px; 
  box-shadow: 3px 3px 0px #000000; 
  transition: all 0.1s ease;
}


.nav-box:hover {
  background-color: powderblue; 
  
  /* Makes the box look like it is physically being pressed down */
  transform: translate(3px, 3px); 
  box-shadow: 0px 0px 0px #000000;
}

.post-loger{
  background-color: antiquewhite;
  margin-bottom: 80px;
  padding-bottom: 20px;
   border-bottom: 5px solid rgb(117, 100, 66);
}
