/* Post Card Styling */
#posts-list .post, #profile-checkins-list .post, #boardgame-checkins-list .post {
  background-color: #fff;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px var(--shadow-color);
  overflow: hidden; /* To keep the image corners rounded */
}

.post .game-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 450px;
  object-fit: cover;
  background-color: #eee;
  display: block; /* Remove space under image */
}

.post-content {
 padding: 20px;
}

.post-content h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.post-content h4 a:hover,
.post-content h4 a:focus {
    text-decoration: underline;
}

.post-author {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px;
  transition: background-color 0.2s ease-in-out;
}

.post-author:hover {
  background-color: var(--background-color)
}

.post-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
}

.post-author span {
  font-weight: 500;
  color: var(--text-color);
}

.post-notes {
  margin: 15px 0;
  color: var(--subtle-text-color);
}

.post-rating .stars {
  --percent: calc(var(--rating) / 10 * 100%);
  display: inline-block;
  font-size: 24px;
  font-family: Times; /* We can use a custom star icon font later */
  line-height: 1;
}

.post-rating .stars::before {
  content: '★★★★★★★★★★';
  letter-spacing: 3px;
  background: linear-gradient(90deg, #ffcc00 var(--percent), #c7c7c7 var(--percent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-actions {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 16px;
}

.like-button, .comment-button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--subtle-text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.like-button:hover, .like-button:focus {
    border-color: var(--like-color);
    color: var(--like-color);
}

.comment-button:hover, .comment-button:focus {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.like-button.liked {
    background-color: var(--like-color);
    color: white;
    border-color: var(--like-color);
}

.like-button.exploding {
  animation: explode 0.6s ease-out;
}

@keyframes explode {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  }
  40% {
    transform: scale(1.5);
    box-shadow: 0 0 0 20px rgba(255, 77, 77, 0);
  }
  70% {
      transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}

.like-count {
    font-size: 0.9rem;
    color: var(--subtle-text-color);
}


#posts-list .post .post-meta, #profile-checkins-list .post .post-meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: 15px;
}

/* Comment Section */
.comment-section {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.comment-form {
  display: none; /* Initially hidden */
  margin-bottom: 20px;
}

.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  margin-bottom: 10px;
}

.comment-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.comments-list .comment {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.comments-list .comment img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
}

.comment-content {
  background-color: #f0f2f5;
  padding: 10px;
  border-radius: 10px;
  width: 100%;
}

.comment-author {
  font-weight: bold;
  font-size: 0.9rem;
  margin: 0 0 5px 0;
}

.comment-content p {
  margin: 0;
  font-size: 0.95rem;
}

.comment-timestamp {
  font-size: 0.75rem;
  color: #888;
  margin-top: 5px;
}