/* Post Page Specific Styles */

.post-container {
  min-height: calc(100vh - 80px);
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #f5f7f7 0%, #ffffff 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  background: linear-gradient(135deg, #00a0a4 0%, #00dccd 100%);
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 160, 164, 0.2);
}

.back-link:hover {
  transform: translateX(-5px) translateY(-2px);
  color: white;
  box-shadow: 0 10px 25px rgba(0, 160, 164, 0.3);
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.post-date {
  display: inline-block;
  color: #00a0a4;
  font-family: "Bitter", serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.post-title {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-stretch: semi-expanded;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: #000000;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 2rem;
  font-family: "Bitter", serif;
  font-size: 0.95rem;
  color: #666;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-family: "Bitter", serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.post-lead {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 2rem;
  font-weight: 400;
}

.post-content h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-stretch: expanded;
  font-style: italic;
  font-size: 1.8rem;
  color: #000;
  margin: 2.5rem 0 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  position: relative;
}

.post-content li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: #00a0a4;
  border-radius: 50%;
}

.post-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 160, 164, 0.1);
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 160, 164, 0.05),
    rgba(0, 220, 205, 0.05)
  );
  border-left: 4px solid #00a0a4;
  font-style: italic;
  position: relative;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-style: normal;
}

.post-tags {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f7f7;
  color: #00a0a4;
  border-radius: 20px;
  font-family: "Bitter", serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #00a0a4;
  color: white;
  transform: translateY(-2px);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

/* Improved Post Navigation */
.post-nav-link {
  display: block;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7f7 0%, #ffffff 100%);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.post-nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 160, 164, 0.05),
    rgba(0, 220, 205, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.post-nav-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 160, 164, 0.2);
  border-color: #00a0a4;
}

.post-nav-link:hover::before {
  opacity: 1;
}

.post-nav-link span {
  display: block;
  color: #00a0a4;
  font-family: "Bitter", serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-nav-link p {
  color: #000;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.3;
}

.post-nav-link.prev {
  text-align: left;
}

.post-nav-link.next {
  text-align: right;
}

.post-nav-link[style*="visibility: hidden"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Related Posts Section */
.related-posts {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7f7 0%, rgba(0, 220, 205, 0.03) 100%);
  border-top: 2px solid rgba(0, 160, 164, 0.1);
}

.related-posts-header {
  text-align: center;
  margin-bottom: 3rem;
}

.related-posts-header .section-title {
  margin-bottom: 0.5rem;
}

.related-posts-subtitle {
  font-family: "Bitter", serif;
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.related-post-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 160, 164, 0.08);
  border: 1px solid rgba(0, 160, 164, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 160, 164, 0.15);
  border-color: rgba(0, 220, 205, 0.3);
}

.related-post-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #000;
  line-height: 1.3;
  flex-grow: 1;
}

.related-post-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-card h3 a:hover {
  color: #00a0a4;
}

.related-post-card p {
  color: #00a0a4;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-placeholder {
  padding: 2rem;
  text-align: center;
  color: #999;
  font-size: 1rem;
}

.related-posts-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 160, 164, 0.1);
}

.btn-secondary {
  background: white;
  color: #00a0a4;
  border: 2px solid #00a0a4;
  padding: 12px 30px;
  font-size: 0.95rem;
  display: inline-block;
}

.btn-secondary:hover {
  background: #00a0a4;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 160, 164, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .post-container {
    padding: 100px 0 60px;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-lead {
    font-size: 1.15rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  blockquote {
    padding: 1rem 1.5rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-nav-link {
    padding: 1.5rem;
  }

  .post-nav-link p {
    font-size: 1.1rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-tags {
    flex-wrap: wrap;
  }

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

  .related-posts {
    padding: 60px 0;
  }
}
