/* ── Shared Blog Components ────────────────────────────────────── */
/* Used by all surfaces: LBT, Claros, Basestep, Routine           */

/* ── Blog Card ────────────────────────────────────────────────── */
.shared-blog-card {
    display: block;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    color: inherit;
    background: #fff;
}
.shared-blog-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.shared-blog-card__meta {
    margin-bottom: 8px;
}
.shared-blog-card__label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #9CA3AF;
}
.shared-blog-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
    line-height: 1.35;
}
.shared-blog-card__excerpt {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 12px;
}
.shared-blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.shared-blog-card__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.shared-blog-card__tool-badge {
    font-size: 11px;
    font-weight: 500;
    background: #F3F4F6;
    color: #374151;
    padding: 2px 8px;
    border-radius: 4px;
}
.shared-blog-card__date {
    font-size: 12px;
    color: #9CA3AF;
    white-space: nowrap;
}

/* Card with image */
.shared-blog-card--has-image {
    display: flex;
    flex-direction: column;
}
.shared-blog-card--has-image .shared-blog-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.shared-blog-card--has-image .shared-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.shared-blog-card--has-image:hover .shared-blog-card__image img {
    transform: scale(1.03);
}
.shared-blog-card--has-image .shared-blog-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.shared-blog-card:not(.shared-blog-card--has-image) .shared-blog-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Blog Grid ────────────────────────────────────────────────── */
.shared-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Category Filter ──────────────────────────────────────────── */
.shared-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shared-blog-cat-link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    background: #F3F4F6;
    text-decoration: none;
    transition: all 0.15s ease;
}
.shared-blog-cat-link:hover {
    background: #E5E7EB;
    color: #374151;
}
.shared-blog-cat-link--active {
    background: var(--card-accent, #DA1C5C);
    color: #fff;
}
.shared-blog-cat-link--active:hover {
    opacity: 0.9;
}

/* ── Article Body ─────────────────────────────────────────────── */
.shared-article-body {
    max-width: 720px;
    margin: 40px auto 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
}
.shared-article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 48px 0 16px;
    line-height: 1.3;
}
.shared-article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 36px 0 12px;
    line-height: 1.35;
}
.shared-article-body p { margin-bottom: 20px; }
.shared-article-body ul,
.shared-article-body ol { margin-bottom: 20px; padding-left: 24px; }
.shared-article-body li { margin-bottom: 6px; }
.shared-article-body a {
    color: var(--card-accent, #DA1C5C);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.shared-article-body a:hover { opacity: 0.8; }
.shared-article-body strong { font-weight: 600; color: #1A1A1A; }
.shared-article-body blockquote {
    border-left: 3px solid var(--card-accent, #DA1C5C);
    padding: 12px 20px;
    margin: 24px 0;
    color: #6B7280;
    font-style: italic;
}
.shared-article-body code {
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #374151;
}
.shared-article-body pre {
    background: #1A1A1A;
    color: #F9FAFB;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}
.shared-article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
}

/* ── Article Header ───────────────────────────────────────────── */
.shared-article-header {
    max-width: 720px;
    margin: 0 auto;
}
.shared-article-header__meta {
    margin-bottom: 12px;
}
.shared-article-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1A1A1A;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.shared-article-header__excerpt {
    font-size: 1.125rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 12px;
}
.shared-article-header__date {
    font-size: 13px;
    color: #9CA3AF;
}

/* ── Hero Image ───────────────────────────────────────────────── */
.shared-article-hero-image {
    max-width: 720px;
    margin: 28px auto 0;
    border-radius: 10px;
    overflow: hidden;
}
.shared-article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Affiliate Banner ─────────────────────────────────────────── */
.shared-affiliate-banner {
    max-width: 720px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9CA3AF;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FAFAFA;
}
.shared-affiliate-banner svg { flex-shrink: 0; }
.shared-affiliate-banner a { color: inherit; text-decoration: underline; }
.shared-affiliate-banner a:hover { color: #6B7280; }

/* ── Podcast Player ───────────────────────────────────────────── */
.shared-podcast-player {
    max-width: 720px;
    margin: 24px auto 0;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px 20px;
}
.shared-podcast-player__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}
.shared-podcast-player__label svg { color: var(--card-accent, #DA1C5C); }
.shared-podcast-player__duration {
    font-weight: 400;
    color: #9CA3AF;
    margin-left: auto;
}
.shared-podcast-player audio {
    width: 100%;
    border-radius: 6px;
}

/* ── Tools / Problems Chips ───────────────────────────────────── */
.shared-article-tools,
.shared-article-problems {
    max-width: 720px;
    margin: 48px auto 0;
}
.shared-article-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #9CA3AF;
}
.shared-article-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shared-article-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #F3F4F6;
    text-decoration: none;
    transition: all 0.15s ease;
}
.shared-article-chip:hover {
    background: #E5E7EB;
    color: #1A1A1A;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .shared-blog-grid {
        grid-template-columns: 1fr;
    }
    .shared-article-header h1 {
        font-size: 1.75rem;
    }
    .shared-blog-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .shared-article-hero-image {
        border-radius: 0;
        margin-left: -24px;
        margin-right: -24px;
        max-width: none;
    }
}
