:root {
  --primary-color: #007bff;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --border-color: #e2e8f0;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.post-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  color: white;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-category {
  background: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.post-title {
  font-size: 3rem;
  margin: 0;
  line-height: 1.2;
}

.post-content {
  padding: 4rem 0;
}

.post-featured-image {
  margin: -8rem auto 4rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-article {
  max-width: 800px;
  margin: 0 auto;
}

.post-lead {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2rem;
}

.post-gallery {
  margin: 4rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover {
  transform: translateY(-5px);
}

.featured-image-container {
  position: relative;
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.featured-image-container img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.featured-image-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-image-caption i {
  font-size: 1.2rem;
}

.post-featured-image {
  margin: 0 auto 4rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

.comments-section {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.comment-form {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.comment {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
  font-size: 2.5rem;
  color: #cbd5e0;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-avatar i {
  font-size: 2rem;
  color: #666;
}

.comment-content {
  flex-grow: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.comments-list {
  margin-top: 2rem;
}

.comment-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

.comment-date {
  font-size: 0.9rem;
  color: #718096;
  white-space: nowrap;
}

.comment-content p {
  margin: 0;
  line-height: 1.5;
  color: #333;
}

@media (max-width: 768px) {
  .post-hero {
    min-height: 40vh;
  }

  .post-title {
    font-size: 2rem;
  }

  .featured-image-container {
    border-radius: 8px;
    margin: 0 1rem 2rem;
  }

  .featured-image-caption {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  .post-featured-image {
    margin-top: -4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .comment-form {
    padding: 2rem !important;
  }
}
