﻿/* Articles / daily posts styles */

.articles-filters {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.articles-filters .form-group {
  margin-bottom: 0;
  min-width: 200px;
}

.article-card {
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s ease forwards;
}

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.article-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-text);
}

.article-excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
  flex-grow: 1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  align-self: flex-start;
}

/* Category tag colors */
.category-daily-post .tag,
.tag.category-daily-post {
  background: rgba(255, 215, 0, 0.15);
  color: var(--color-gold);
}

.category-workout .tag,
.tag.category-workout {
  background: rgba(74, 222, 128, 0.15);
  color: var(--color-success);
}

.category-diet .tag,
.tag.category-diet {
  background: rgba(248, 113, 113, 0.15);
  color: var(--color-danger);
}

.category-mindset .tag,
.tag.category-mindset {
  background: rgba(147, 197, 253, 0.15);
  color: #93c5fd;
}

.category-success-story .tag,
.tag.category-success-story {
  background: rgba(216, 180, 254, 0.15);
  color: #d8b4fe;
}

/* Article detail */
.article-detail {
  max-width: 780px;
  margin: 0 auto;
  animation: fadeUp 0.6s ease forwards;
}

.article-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-body p {
  color: var(--color-text);
  margin-bottom: 18px;
  line-height: 1.75;
}

.article-list {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--color-text-muted);
}

.article-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.article-footer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .articles-filters .form-group {
    min-width: 100%;
  }

  .article-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
