/* ============================================
   FitVision Coaches — Blog
   Grid/tarjetas, hero de artículo y sistema
   tipográfico .prose. Usa los tokens compartidos
   de tokens.css y los componentes de base.css.
   ============================================ */

/* ============================================
   HEADER
   ============================================ */
.blog-header {
    padding-top: 48px;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.blog-eyebrow a {
    color: var(--color-accent);
}

.blog-eyebrow a:hover {
    text-decoration: underline;
}

.blog-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 48px 0;
}

/* ============================================
   GRID + CARD
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 245, 160, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.blog-card-link {
    display: block;
    color: inherit;
}

.blog-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-subtle);
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.05);
}

.blog-card-cover--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 160, 0.12), rgba(0, 194, 255, 0.08));
}

.blog-card-body {
    padding: 20px 22px 24px;
}

.blog-card-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.blog-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.blog-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 245, 160, 0.25);
    background: rgba(0, 245, 160, 0.08);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s;
}

a.blog-tag-pill:hover {
    background: rgba(0, 245, 160, 0.16);
    border-color: var(--color-accent);
}

/* ============================================
   PAGINATION
   ============================================ */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

.blog-pagination-status {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ============================================
   ARTICLE HERO
   ============================================ */
.blog-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 96px;
}

.blog-hero--plain {
    min-height: 0;
    padding: 140px 0 40px;
    background: linear-gradient(180deg, rgba(0, 245, 160, 0.06), transparent);
}

.blog-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 15, 0.35) 0%, var(--color-bg) 92%);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
    max-width: 820px;
}

.blog-back-link {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    transition: color 0.2s;
}

.blog-back-link:hover {
    color: var(--color-accent);
}

.blog-hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 16px;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.blog-hero-author {
    color: var(--color-text);
    font-weight: 500;
}

.blog-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

/* ============================================
   ARTICLE BODY — TYPOGRAPHIC SYSTEM
   ============================================ */
.blog-article-section {
    padding-top: 48px;
}

.prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
}

.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.25;
    margin: 40px 0 16px;
}

.prose h1 { font-size: 32px; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }

.prose p {
    margin: 0 0 22px;
}

.prose a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 245, 160, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.prose a:hover {
    text-decoration-color: var(--color-accent);
}

.prose ul,
.prose ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose blockquote {
    margin: 28px 0;
    padding: 4px 24px;
    border-left: 3px solid var(--color-accent);
    color: var(--color-text-muted);
    font-style: italic;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 2px 6px;
}

.prose pre {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 0 0 24px;
    overflow-x: auto;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.prose img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 32px 0;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 28px;
    font-size: 15px;
}

.prose th,
.prose td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
}

.prose th {
    background: var(--color-bg-subtle);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
}

.prose td {
    color: var(--color-text-muted);
}

/* ============================================
   BACK LINK / RELATED
   ============================================ */
.blog-back-footer {
    max-width: 720px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.blog-related-section {
    border-top: 1px solid var(--color-border);
}
