/* Custom styles for Dadbot */

/* ========================================
   NAVIGATION - Green links with hover underlines
   ======================================== */

/* Main navigation links */
.navigation-menu a {
  color: var(--accent) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.navigation-menu a:hover {
  text-decoration: underline;
}

/* Menu trigger (dropdowns like "Blog ▼") */
.menu__trigger {
  color: var(--accent) !important;
  transition: all 0.2s ease;
}

.menu__trigger:hover {
  text-decoration: underline;
}

/* Dropdown menu links */
.menu__dropdown a {
  color: var(--accent) !important;
  text-decoration: none;
}

.menu__dropdown a:hover {
  text-decoration: underline;
}

/* Logo link */
.logo a {
  color: var(--accent) !important;
}

/* ========================================
   WELCOME SECTION
   ======================================== */

.welcome-section {
  text-align: center;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.welcome-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.welcome-content p {
  font-size: 1.2rem;
  opacity: 0.8;
}

.welcome-image {
  display: block;
  max-width: min(100%, 900px);
  height: auto;
  margin: 0 auto;
}

.dadbot-hero {
  max-width: min(100%, 900px);
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 0;
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 5%, transparent), transparent 38%),
    color-mix(in srgb, var(--accent) 4%, var(--background) 96%);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent) 35%, transparent);
  font-family: 'Fira Code', 'Fira Mono', monospace;
}

.dadbot-hero h1 {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 35%, transparent);
}

.loading-line {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  opacity: 0.9;
}

.terminal-tagline {
  min-height: 1.8em;
  color: var(--accent);
  font-size: clamp(1rem, 2.8vw, 1.55rem);
  line-height: 1.4;
}

.cursor {
  display: inline-block;
  animation: dadbot-blink 0.8s steps(1) infinite;
}

@keyframes dadbot-blink {
  50% { opacity: 0; }
}

/* ========================================
   RECENT POSTS SECTION - Compact 3-column grid
   ======================================== */

.recent-posts {
  margin-bottom: 3rem;
}

.recent-posts h2,
.books-teaser h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

/* Posts Grid - compact, readable cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.post-card {
  background: color-mix(in srgb, var(--accent) 4%, var(--background) 96%);
  border: 1px solid color-mix(in srgb, var(--accent) 75%, transparent);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  display: grid;
  grid-template-rows: 70px 1fr;
  min-height: 260px;
}

.news-card {
  background: color-mix(in srgb, #6ee7ff 7%, var(--background) 93%);
  border-color: color-mix(in srgb, #6ee7ff 75%, transparent);
}

.news-card .post-cover {
  border-bottom-color: #6ee7ff;
}

.conspiracy-page .post-card,
.conspiracy-standalone {
  background: color-mix(in srgb, #c084fc 7%, var(--background) 93%);
  border-color: color-mix(in srgb, #c084fc 75%, transparent);
}

.conspiracy-intro {
  border: 1px solid color-mix(in srgb, #c084fc 75%, transparent);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.post-card-link:hover .post-card {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 7%, var(--background) 93%);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 45%, transparent);
}

.book-card--text-only {
  grid-template-rows: 1fr;
  min-height: 230px;
}

.book-card--text-only .post-card-content {
  padding-top: 0.9rem;
}

.posts-card-list {
  margin-top: 1.25rem;
}

.posts-list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.posts-list-view .post-card {
  min-height: 0;
  grid-template-rows: 70px 1fr;
}

.posts-grid--full-page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.posts-grid--full-page .post-card {
  min-height: 300px;
}

.posts-list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.posts-list-view .post-card {
  min-height: 0;
}

.news-month-group {
  margin-bottom: 2rem;
}

.news-month-heading {
  margin: 0 0 1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #6ee7ff;
  color: #d8f7ff;
  background: color-mix(in srgb, #6ee7ff 7%, var(--background) 93%);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.posts-grid--full-page .book-card--text-only {
  min-height: 250px;
}

.post-card figure:has(.post-cover) {
  margin: 0;
}

.post-card .post-cover,
.book-card .post-cover {
  width: 100%;
  height: 70px;
  aspect-ratio: auto;
  object-fit: cover;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: #17241f;
}

.post-card-content {
  padding: 0.7rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.post-card-title {
  color: #f2fff6;
  font-size: clamp(0.82rem, 1.25vw, 0.95rem);
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.post-card-title a {
  text-decoration: none;
  color: var(--accent);
}

.post-card-title a:hover {
  text-decoration: underline;
}

.post-card-meta {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.68rem;
  line-height: 1.2;
  opacity: 0.86;
  margin: 0;
}

.post-card-meta .post-date {
  color: #c8d4cc;
  margin-right: 0.15rem;
}

.post-card-meta .post-category {
  color: var(--accent);
}

.post-tags {
  display: inline-flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.tag-chip--mini {
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.62rem;
  line-height: 1.1;
  opacity: 0.95;
}

.post-card-summary {
  font-size: 0.74rem;
  line-height: 1.35;
  opacity: 0.88;
  margin: 0;
  flex: 1;
}

.post-card .read-more {
  font-size: 0.68rem;
  padding: 0.25rem 0.5rem;
  align-self: flex-start;
  margin-top: 0.15rem;
}

.post:not(.on-list) > .post-cover,
.post:not(.on-list) > a .post-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 0;
  margin: 1rem 0 1.5rem;
  background: #17241f;
}

/* ========================================
   TL;DR BOX
   ======================================== */

.tldr-box {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 6%, var(--background) 94%);
}

.tldr-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.tldr-headline,
.tldr-takeaway {
  margin: 0 0 0.75rem;
}

.tldr-points {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
}

.tldr-points li {
  margin: 0.2rem 0;
}

/* View All Button */
.view-all {
  text-align: center;
  margin-top: 1.5rem;
}

/* ========================================
   BOOKS TEASER SECTION
   ======================================== */

.books-teaser {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.books-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.book-item {
  padding: 1rem;
  background: color-mix(in srgb, var(--accent) 5%, var(--background) 95%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.book-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.book-item h3 a {
  color: var(--accent);
  text-decoration: none;
}

.book-item h3 a:hover {
  text-decoration: underline;
}

.book-item p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* ========================================
   BUY ME A COFFEE BUTTON - Terminal ASCII Art Style
   ======================================== */

.coffee-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--background);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: 'Fira Code', 'Fira Mono', monospace;
  font-size: 0.7rem;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--accent);
  transition: all 0.2s ease;
  z-index: 1000;
  white-space: pre;
  text-align: center;
}

.coffee-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--background) 90%);
  text-decoration: none;
}

.coffee-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--accent);
}

/* Coffee button text styling */
.coffee-button .coffee-art {
  display: block;
  margin-bottom: 2px;
}

.coffee-button .coffee-text {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
}

/* ========================================
   BLOG LIST PAGE - Standardized Images
   ======================================== */

.post.on-list .post-cover {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border: 2px solid var(--accent);
  padding: 5px;
  margin: 0 15px 10px 0;
  float: left;
}

/* ========================================
   BLOG LIST PAGE - Category Buttons
   ======================================== */

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 2rem;
}

.category-buttons a.button,
.category-buttons a.button.outline,
.category-buttons button.button,
.category-buttons button.button.outline {
  margin: 0;
  min-width: 0;
  padding: 4px 10px !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
  border-radius: 4px !important;
  background: transparent !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  box-shadow: none;
  cursor: pointer;
}

.category-buttons a.button:hover,
.category-buttons a.button.outline:hover,
.category-buttons button.button:hover,
.category-buttons button.button.outline:hover,
.category-buttons button.tag-chip--active {
  background: var(--accent) !important;
  color: #ffffff !important;
}

/* ========================================
   BLOG LIST PAGE - Tags Sidebar
   ======================================== */

.posts-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.posts-main {
  flex: 1 1 auto;
  min-width: 0;
}

.posts-sidebar {
  flex: 0 0 220px;
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
}

.posts-sidebar__title {
  margin-top: 0;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

.posts-sidebar__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.posts-sidebar__heading .posts-sidebar__title {
  margin-bottom: 0.8rem;
}

.tags-clear-all {
  padding: 4px 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.72rem;
  line-height: 1.2;
  cursor: pointer;
}

.tags-clear-all:hover {
  background: var(--accent);
  color: #ffffff;
}

.tags-clear-all:disabled {
  opacity: 0.5;
  cursor: default;
}

.tags-search-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.tags-search {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 6px 8px;
  font-size: 0.85rem;
}

.tags-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tags-search-row .tags-search {
  flex: 1 1 140px;
  margin: 0;
}


.tags-empty {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  opacity: 0.7;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.2;
  background: transparent;
}

.tag-chip:hover {
  background: var(--accent);
  color: #ffffff;
}

.tag-chip--active {
  background: var(--accent);
  color: #ffffff;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Tablet */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts-grid--full-page {
    grid-template-columns: 1fr;
  }

  .posts-with-sidebar {
    flex-direction: column;
  }

  .posts-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 1.5rem;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .welcome-content h1 {
    font-size: 1.8rem;
  }
  
  /* Stack posts vertically on mobile */
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  /* Keep terminal image strips compact on mobile too */
  .post-card .post-cover {
    height: 76px;
  }

  .post:not(.on-list) > .post-cover,
  .post:not(.on-list) > a .post-cover {
    height: 130px;
  }
  
  .post-card-title {
    font-size: 1rem;
  }
  
  .post-card-summary {
    font-size: 0.85rem;
  }
  
  /* Smaller coffee button on mobile */
  .coffee-button {
    bottom: 15px;
    right: 15px;
    padding: 6px 10px;
    font-size: 0.6rem;
    box-shadow: 3px 3px 0 var(--accent);
  }
  
  .coffee-button:hover {
    box-shadow: 4px 4px 0 var(--accent);
  }
  
  /* Blog list page images - mobile */
  .post.on-list .post-cover {
    width: 100%;
    height: 120px;
    float: none;
    margin: 0 0 15px 0;
  }
}

/* ========================================
   BUY ME A COFFEE BUTTON - portrait terminal style
   ======================================== */

.coffee-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 104px;
  min-height: 132px;
  padding: 0.7rem 0.55rem;
  color: var(--accent) !important;
  background: color-mix(in srgb, var(--background) 94%, black 6%);
  border: 1px solid var(--accent);
  border-radius: 0;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 45%, transparent);
  font-family: 'Fira Code', 'Fira Mono', monospace;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
}

.coffee-button:hover,
.coffee-button:focus-visible {
  color: var(--background) !important;
  background: var(--accent);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent) 35%, transparent);
  outline: none;
}

.coffee-text {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coffee-cup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 58px;
}

.coffee-cup-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.coffee-cup-svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.coffee-cup-body {
  stroke-dasharray: 4 6;
}

.coffee-cup-rim,
.coffee-cup-saucer-dash {
  stroke-dasharray: 3 5;
}

.coffee-cup-svg .coffee-cup-pattern {
  stroke-width: 1.9;
}

.coffee-cup-svg .coffee-steam-line {
  stroke-width: 1.9;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .coffee-button {
    right: 0.65rem;
    bottom: 0.65rem;
    width: 88px;
    min-height: 112px;
    padding: 0.55rem 0.45rem;
    gap: 0.18rem;
  }

  .coffee-text {
    font-size: 0.6rem;
  }

  .coffee-cup {
    width: 58px;
    height: 50px;
  }
}

