/*
Theme Name: Astra Child
Template: astra
Description: Child theme for Astra with subtitle injection and callout styles
Version: 1.1.2
*/

/* ============================================================
   BLOG LISTING — ALIGN "READ MORE" TO BOTTOM OF EVERY CARD
   ============================================================ */

/* Make the card content area a flex column so the read-more
   button can be pushed to the bottom regardless of excerpt length */
article.ast-article-post .post-content {
    display: flex;
    flex-direction: column;
}

article.ast-article-post .ast-read-more-container {
    margin-top: auto;
}

/* ============================================================
   POST SUBTITLE LINE
   ============================================================ */
.post-subtitle-line {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
    margin: 0.25rem 0 0.5rem;
    letter-spacing: 0;
    font-family: inherit;
}

/* ============================================================
   CALLOUT BLOCKS  (.st-callout)
   ============================================================ */

.st-callout {
    display: block;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.75rem 0;
    border-left: 4px solid transparent;
}

.st-callout-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.st-callout-label svg {
    display: inline-block;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.st-callout-body {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0;
}

.st-callout-body ul {
    margin: 0;
    padding-left: 1.25rem;
}

.st-callout-body ul li {
    margin-bottom: 0.4rem;
}

.st-callout-body ul li:last-child {
    margin-bottom: 0;
}

/* Key takeaways — teal/green */
.st-callout--takeaway {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.st-callout--takeaway .st-callout-label {
    color: #15803d;
}

/* What to do — blue */
.st-callout--action {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.st-callout--action .st-callout-label {
    color: #1d4ed8;
}

/* Watch out — amber */
.st-callout--warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.st-callout--warning .st-callout-label {
    color: #b45309;
}

/* Join the conversation — purple */
.st-callout--community {
    background: #faf5ff;
    border-left-color: #a855f7;
}

.st-callout--community .st-callout-label {
    color: #7e22ce;
}

/* ============================================================
   EPISODE CONTEXT BLOCK  (.st-episode)
   ============================================================ */

.st-episode {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 2rem;
    flex-wrap: wrap;
}

.st-episode-meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.25rem;
}

.st-episode-tag {
    display: inline-block;
    background: #334155;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: middle;
}

.st-episode-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.st-episode-speakers {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

.st-episode-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    background: #334155;
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none !important;
    align-self: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.st-episode-cta:hover {
    background: #1e293b;
    color: #fff !important;
}

/* ============================================================
   DARK MODE ADJUSTMENTS
   ============================================================ */

@media (prefers-color-scheme: dark) {
    .st-callout--takeaway { background: #052e16; border-left-color: #22c55e; }
    .st-callout--takeaway .st-callout-label { color: #4ade80; }

    .st-callout--action { background: #0c1d3a; border-left-color: #3b82f6; }
    .st-callout--action .st-callout-label { color: #60a5fa; }

    .st-callout--warning { background: #2d1a00; border-left-color: #f59e0b; }
    .st-callout--warning .st-callout-label { color: #fbbf24; }

    .st-callout--community { background: #1e0a3c; border-left-color: #a855f7; }
    .st-callout--community .st-callout-label { color: #c084fc; }

    .st-episode {
        background: #1e293b;
        border-color: #334155;
    }

    .st-episode-title { color: #f1f5f9; }
    .st-episode-meta,
    .st-episode-speakers { color: #94a3b8; }
}
