/* === Joke Cards Styling === */
.joke-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.25em 1.5em;
  margin-bottom: 1em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.joke-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.joke-card p {
  margin: 0;
  line-height: 1.7;
  font-size: 1.05em;
  color: #333;
}
.joke-card .joke-number {
  position: absolute;
  top: -0.6em;
  left: 1em;
  background: #dd9933;
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  width: 1.8em;
  height: 1.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.joke-intro {
  background: linear-gradient(135deg, #fef9f0 0%, #fdf4e3 100%);
  border: 1px solid #f0ddb8;
  border-radius: 10px;
  padding: 1.25em 1.5em;
  margin-bottom: 1.5em;
  font-size: 1em;
  color: #666;
  line-height: 1.7;
}
.joke-intro p {
  margin: 0;
}

/* Share button per joke */
.joke-card .joke-share {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 0.8em;
  padding: 0.3em 0.7em;
  font-size: 0.78em;
  color: #999;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}
.joke-card .joke-share:hover {
  color: #dd9933;
  border-color: #dd9933;
}
.joke-card .joke-share.copied {
  color: #27ae60;
  border-color: #27ae60;
}

/* Related posts styling improvement */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8em;
  list-style: none;
  padding: 0;
}
.related-posts-grid li {
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: all 0.2s;
}
.related-posts-grid li:hover {
  background: #fef9f0;
  border-color: #dd9933;
}
.related-posts-grid li a {
  display: block;
  padding: 0.9em 1em;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95em;
}

/* Hide original hr separators (they get removed by the filter, but just in case) */
.entry-content > hr.wp-block-separator {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .joke-card {
    padding: 1em 1.1em;
    border-radius: 8px;
  }
  .joke-card p {
    font-size: 1em;
  }
}
