/* ==========================
   Reset & Body
========================== */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Special Elite', monospace;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.7;
  font-size: 18px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width:1024px) {
    body {
        font-size: 20px;
    }
}

/* ==========================
   Header / Typewriter Title
========================== */
.site-header {
  background-color: #fdfdf9; /* paper-like */
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
  position: relative;
}

.playful-title {
  font-size: 3rem;
  font-family: 'Special Elite', monospace;
  white-space: pre;
  display: inline-block;
  color: #000;
  position: relative;
}

@media (min-width:768px) {
    .playful-title {
        font-size: 4rem;
    }
}

/* Blinking caret */
.playful-title::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background-color: #000;
  margin-left: 2px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Error styling */
.playful-title .error {
  position: relative;
  display: inline-block;
  color: black;
}

/* Straight thick red strike-through */
.playful-title .error::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3.5px; /* thicker, proportional to letters */
  background-color: #e63946;
  transform: scaleX(0);
  transform-origin: left;
  animation: strike 0.5s forwards;
  animation-delay: 0.2s;
}

@keyframes strike {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ==========================
   Top Navigation
========================== */
.top-nav {
  background-color: #fffdf8; /* matches header paper color */
  border-bottom: 1px solid #e0dcd5;
  text-align: center;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.top-nav a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-family: 'Special Elite', monospace; /* typewriter style */
  transition: color 0.3s, transform 0.2s;
  position: relative;
}

.top-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: #e63946;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.top-nav a:hover {
  color: #e63946;
}

.top-nav a:hover::after {
  width: 100%; /* underline animation */
}

/* Responsive nav for mobile */
@media (max-width: 768px) {
  .top-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ==========================
   Layout: Sidebar + Content
========================== */
.container {
  display: flex;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar {
  width: 220px;
  background-color: #fffdf8;
  padding: 2rem 1rem;
  border-right: 1px solid #e0dcd5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0dcd5;
    flex-direction: row;
    justify-content: space-around;
    padding: 1rem 0.5rem;
  }
}


.sidebar .logo img {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.nav-links {
  list-style: none;
  padding: 0;
  width: 100%;
}

.nav-links li {
  margin: 0.7rem 0;
}

.nav-links a {
  color: #000000;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
  color: #e63946;
  transform: translateX(3px);
}

/* ==========================
   Content Area
========================== */
.content {
  flex: 1;
  padding: 2rem 2rem;
}

@media (min-width: 1024px) {
  .content {
    padding: 1.5rem 1rem;
  }
}

/* Featured post card */
/* Default: stack for mobile */
.featured-post-card {
  display: flex;
  flex-direction: column; /* stack by default */
  background-color: #fffdf8;
  border-left: 4px solid #e63946;
  border-radius: 8px;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.featured-post-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.featured-post-card .card-content {
  padding: 1.5rem;
}

/* Larger screens: side-by-side */
@media (min-width: 769px) {
  .featured-post-card {
    flex-direction: row;
  }

  .featured-post-card img {
    width: 35%;
    height: auto;
  }
}


/* Post list cards */
.post-list-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.post-card {
  background-color: #fffdf8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.08);
}

.post-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

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

.post-card .meta {
  font-size: 0.85rem;
  color: #7a8a91;
}

/* ==========================
   Footer
========================== */
.site-footer {
  text-align: center;
  padding: 2rem;
  background-color: #fffdf8;
  color: #7a8a91;
  font-size: 0.9rem;
  border-top: 1px solid #e0dcd5;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0dcd5;
    flex-direction: row;
    justify-content: space-around;
    padding: 1rem 0.5rem;
  }

  .featured-post-card {
    flex-direction: column;
  }

  .featured-post-card img {
    width: 100%;
    height: auto;
  }
}

.quote-block {
  background-color: #ffe6e6; /* light red/pink */
  border-left: 5px solid #e63946; /* optional playful accent */
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 700px;
  font-family: 'Special Elite', monospace; /* typewriter style */
  font-size: 0.9rem;
  color: #000;
  border-radius: 8px; /* soft corners */
  box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* subtle shadow */
  position: relative;
}

@media (max-width: 768px) {
  .quote-block {
    padding: 1rem 1.5rem;
    margin: 1.5rem;
    font-size: 0.85rem;
  }
}

/* Optional: italicize quote */
.quote-block blockquote {
  margin: 0;
  font-style: italic;
  line-height: 1.5;
}

