/* ==========================================================================
   2. GLOBAL / BASE STYLES
   ========================================================================== */

blockquote {
  position: relative;
  padding: 10px 40px;
  margin: 2rem 0;
  color: var(--color-text);
  font-style: italic;
}

blockquote::before {
  content: "“";
  font-family: Georgia, serif;
  font-size: 3rem;
  color: rgba(31, 41, 55, 0.45);
  position: absolute;
  top: -15px;                    
  left: 5px;                     
  line-height: 1;
}

blockquote::after {
  content: "”";
  font-family: Georgia, serif;
  font-size: 3rem;
  color: rgba(31, 41, 55, 0.45); 
  position: absolute;
  bottom: -35px;                 
  right: 25px;                   
  line-height: 1;
}

/* ==========================================================================
   3. LAYOUT / CONTAINERS
   ========================================================================== */

/* Zero out html/body defaults to completely eliminate the top white bar */
html, body {
  margin: 0;
  padding: 0;
}

/* Restore the max-width and centering layout grid on the body */
body {
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  padding: 0 20px;
  padding-bottom: 40px;
}

/* Force the header to break out of the container and span full screen width */
.site-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  
  /* Add your background image path here */
  background-image: url('YOUR-HEADER-IMAGE-URL-HERE');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Vertically and horizontally center everything inside the header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  /* Adjust top and bottom padding to vertically center the content over your background image */
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: center;
  border-bottom: 2px solid var(--color-border);
}

.header-nav-list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;                   /* Space between links */
  background-color: rgba(0, 0, 0, 0.85); /* Solid or slightly transparent black bar */
  padding: 4px 24px;          /* Padding around the whole bar */
  border-radius: 6px;         /* Rounds the corners of the continuous bar */
  backdrop-filter: blur(4px);
  margin: 0;
}

.header-nav-list a {
  background-color: transparent; /* Remove background from individual links */
  color: white;
  padding: 0;                   /* Remove individual padding */
  border-radius: 0;
  backdrop-filter: none;
  transition: color 0.15s ease;
}

.header-nav-list a:hover {
  background-color: transparent; /* Keep background transparent on hover */
  color: #93c5fd;               /* Optional: light blue hover tint, or keep white */
  text-decoration: underline;   /* Clear hover indicator */
}

/* Hide the archives link properly on desktop without affecting navbar centering */
.header-nav-link--archives {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.site-title {
  font-family: Georgia, serif;
  margin-bottom: 0;
}

.site-title a {
  font-size: 4rem;
  color: #000000; /* Fixed: Changed text color from white to black */
}

/* ==========================================================================
   4. BUCKETS & ENTRIES (The Core Engine)
   ========================================================================== */

.stream-header h2,
.bucket h2 {
  font-family: Rockwell, "Courier New", Courier, monospace;
  font-weight: bold;
}

.entry-meta {
  color: var(--color-text-muted);
}

.entry-content img.entry-topright {
  display: inline;
  float: right;
  width: auto;
  max-width: 150px;
  height: auto;
  margin: 0 0 15px 25px;
  border-radius: 4px;
}

.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.img-container {
  display: flex;
  justify-content: center;
  max-width: 100vw; 
  overflow: hidden; 
}

.img-container img {
  display: block; 
  max-width: 100%; 
  height: auto;    
}

.img-container-floatright {
  float: right;
  padding-left: 25px;
  padding-bottom: 10px;
  padding-top: 10px;
  padding-right: 15px;
}

.entry--link .entry-content p {
  font-style: normal;
}

.entry--link {
  border-left: 4px solid #000000;
  padding-left: 20px;
  background-color: transparent;
  border-radius: 0;
}

.entry--note {
  background-color: #f3f4f6; 
  padding: 20px;
  border-left: 4px solid #000000; 
  border-radius: 0 8px 8px 0;
}

.podcast-pill, 
.newsletter-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}

.podcast-pill--episode, .newsletter-pill--issue {
  background-color: #f3f4f6;
  color: #374151;
}

.podcast-pill--show {
  background-color: #d7d7e7;
  color: #374151;
}

.podcast-card,
.newsletter-card {
  background-color: var(--color-bg-alt);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid #111827;
}

.podcast-player {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #696d73;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.podcast-player audio {
  width: 100%;
  max-width: 600px;
  display: block;
}

.podcast-details ul,
.newsletter-details ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.podcast-detail,
.newsletter-detail {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.podcast-actions,
.newsletter-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.podcast-btn,
.newsletter-btn {
  display: inline-block;
  padding: 6px 14px;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid #111827;
}

.podcast-btn:hover,
.newsletter-btn:hover {
  background-color: #e5e7eb;
  color: #111827;
  border-color: #d1d5db;
  text-decoration: none;
}

.podcast-btn--secondary {
  background-color: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}

.podcast-btn--secondary:hover {
  background-color: #f3f4f6;
  color: #111827;
  border-color: var(--color-border);
}

.podcast-notes,
.newsletter-notes {
  margin-top: 1.5rem;
}

.entry-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0px;
}

.entry-tags {
  justify-content: flex-end;
  padding: 0 20px;
}

.entry-tag {
  font-size: 0.7rem;
}

@media (max-width: 850px) {
  .site-title a {
    font-size: 3.5rem;
  }

  .header-nav-list {
    padding: 4px 12px;
  }

  .header-nav-list a {
    gap: 0px;
    font-size: 0.7rem;
  }

  /* Reset it back to normal flow on mobile/tablet */
  .header-nav-link--archives {
    visibility: visible;
    position: static;
    pointer-events: auto;
    display: inline;
  }
}

@media (max-width: 450px) {
  .site-title a {
    font-size: 3rem;
  }

  .site-header {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .header-nav-list {
    padding: 0px 5px;
  }

  .header-nav-list a {
    font-size: 0.5rem;
  }
}
