/* articles.css — Articles list + grid (shared between public page and coach preview). */

.articles-hero {
  text-align: center;
  margin-bottom: 40px;
}
.articles-hero h2 {
  font-size: 32px;
  font-weight: 900;
  color: #FFFF00;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.articles-hero p {
  color: #777;
  font-size: 14px;
  margin: 0;
}
.articles-hero .underline {
  width: 60px;
  height: 3px;
  background: #FFFF00;
  margin: 10px auto 0;
  border-radius: 2px;
  opacity: 0.8;
}

/* ── Grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Card ── */
.article-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255,255,0,0.15);
  border-color: rgba(255,255,0,0.4);
}

.article-card__img {
  width: 100%;
  aspect-ratio: 5 / 3.3;
  object-fit: cover;
  background: #111;
  display: block;
}

.article-card__img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.article-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__date {
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-card__chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.article-card__chip--published {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.article-card__chip--draft {
  background: rgba(255, 255, 0, 0.10);
  color: #FFFF00;
  border: 1px solid rgba(255, 255, 0, 0.35);
}
.article-card__title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.4;
}
.article-card__excerpt {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.article-card__footer {
  padding: 14px 20px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 12px;
  color: #FFFF00;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.article-card__footer span {
  transition: transform 0.2s;
}
.article-card:hover .article-card__footer span {
  transform: translateX(4px);
}

/* ── Empty state ── */
.articles-empty {
  text-align: center;
  padding: 80px 20px;
  color: #555;
}
.articles-empty .icon { font-size: 56px; margin-bottom: 16px; }
.articles-empty p { font-size: 15px; }

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .articles-hero h2 { font-size: 24px; }
  .article-card__img { aspect-ratio: 5 / 3.3; }
}
