/* ============================================
   TALB Community / Blog Styles
   ============================================ */

/* Hub page */
.community-hero {
  background: linear-gradient(165deg, var(--midnight) 0%, var(--deep-ocean) 50%, rgba(26, 77, 72, 0.95) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  color: white;
}

.community-hero h1 {
  color: white;
  margin-bottom: 0.75rem;
}

.community-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Post cards grid */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  padding: var(--space-lg) 0;
}

.community-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(139, 115, 85, 0.06);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.community-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.community-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.community-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.community-card:hover .community-card__img img {
  transform: scale(1.05);
}

.community-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.community-card__tag {
  display: inline-block;
  background: var(--sand);
  color: var(--coastal-blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.community-card__body h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.community-card__body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.community-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(139, 115, 85, 0.08);
  font-size: 0.8rem;
  color: var(--text-light);
}

.community-card__read {
  color: var(--coral);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================
   Blog Post Layout
   ============================================ */
.post-hero {
  background: linear-gradient(165deg, var(--midnight) 0%, var(--deep-ocean) 50%, rgba(26, 77, 72, 0.95) 100%);
  padding: 8rem 0 3rem;
  text-align: center;
  color: white;
}

.post-hero__tag {
  display: inline-block;
  background: rgba(75, 188, 170, 0.2);
  border: 1px solid rgba(75, 188, 170, 0.3);
  color: var(--seafoam);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.post-hero h1 {
  color: white;
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 800px;
  margin: 0 auto 1rem;
}

.post-hero__meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Post content */
.post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  max-width: 100%;
  color: var(--text-body);
  line-height: 1.8;
}

.post-content a {
  color: var(--coastal-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--coral);
}

.post-content ul, .post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 4px solid var(--seafoam);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--sand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-dark);
}

/* Directory link callout */
.post-directory-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sand);
  border: 1px solid rgba(46, 125, 150, 0.15);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--coastal-blue);
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.post-directory-link:hover {
  background: rgba(46, 125, 150, 0.1);
  text-decoration: none;
}

/* Related posts */
.post-related {
  background: var(--warm-white);
  padding: var(--space-lg) 0;
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: var(--space-md);
}

/* CTA at bottom */
.post-cta {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--sand);
}

.post-cta h2 {
  margin-bottom: 0.75rem;
}

.post-cta p {
  margin: 0 auto 1.5rem;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .community-grid {
    grid-template-columns: 1fr;
  }

  .post-content {
    padding: var(--space-md) var(--space-sm);
  }

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