/* src/styles/blog-list.css */

/* 1. Global Reset - Break out of the centered 'main' cage */
main.content-wrapper {
  display: block !important;
  text-align: left !important;
  max-width: none !important;
  padding: 0 !important;
}

/* 2. Layout Container - Reading Sweet Spot */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: left !important;
}

/* 3. Hero Section */
.blog-hero {
  padding: 8rem 0 4rem;
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.blog-hero p {
  font-family: ui-monospace, "SF Mono", monospace; /* The "Dev" look */
  font-size: 0.95rem;
  /* Removed opacity: 0.6 to fix contrast ratio issue */
  max-width: 550px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 4. The Row - Forced Tightness */
.post-entry {
  display: flex !important;
  align-items: center; /* Vertically centers arrow with the text block */
  justify-content: flex-start !important;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light) !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.2s ease;
  width: 100%;
}

.post-entry:hover {
  background: rgba(255, 255, 255, 0.02);
}

.entry-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  /* Fixed: align-items here forces date & title to stay left */
  align-items: flex-start !important;
  flex-grow: 0 !important;
  flex-shrink: 1;
  width: auto !important;
  max-width: 85%;
}

.entry-date {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500; /* Slightly heavier weight for better legibility */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: left !important;
}

.entry-title {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-main);
  white-space: normal;
  display: inline-block;
  text-align: left !important;
}

/* 5. The Interaction Arrow - Tethered to the text */
.entry-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem; /* Controls the exact gap between text and arrow */
}

.post-entry:hover .entry-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* 6. Responsive Scaling */
@media (max-width: 600px) {
  .blog-hero {
    padding: 4rem 0 2rem;
  }
  .blog-hero h1 {
    font-size: 2rem;
  }
  .entry-title {
    font-size: 1.15rem;
  }
  .entry-main {
    max-width: 80%;
  }
}
