/* ==========================================================
   Blog components: tags, Summarize with AI, author card
   Order inside .blog-content: FAQs -> tags -> AI summary.
   Author card sits below the full content row.
   ========================================================== */
:root {
    --bc-navy: #022279;
    --bc-blue: #4169e1;
    --bc-red: #ff464c;
    --bc-ink: #1f2937;
    --bc-muted: #5b6475;
    --bc-line: #e3e8f2;
    --bc-soft: #f4f7fd;
}

/* ---------- Tags ---------- */
.blog-content .blog-hastag {
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px dashed var(--bc-line);
}

.blog-content .blog-hastag .tag-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.blog-content .blog-hastag .tag-box::before {
    content: "Tags:";
    flex: 0 0 auto;
    padding: 7px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--bc-navy);
}

.blog-content .tag-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.blog-content .tag-title span,
.blog-content .tag-title a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 6px 14px;
    background: var(--bc-soft);
    border: 1px solid var(--bc-line);
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bc-navy);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.blog-content .tag-title span::before,
.blog-content .tag-title a::before {
    content: "#";
    margin-right: 2px;
    font-weight: 700;
    color: var(--bc-blue);
    transition: color .2s ease;
}

.blog-content .tag-title span:hover,
.blog-content .tag-title a:hover {
    background: var(--bc-navy);
    border-color: var(--bc-navy);
    color: #fff;
    transform: translateY(-2px);
}

.blog-content .tag-title span:hover::before,
.blog-content .tag-title a:hover::before {
    color: #fff;
}

/* ---------- Summarize with AI ---------- */
.rc-ai-summary {
    margin: 28px 0 0;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f4f7fd 0%, #eef2fc 100%);
    border: 1px solid var(--bc-line);
    border-left: 4px solid var(--bc-blue);
    border-radius: 14px;
}

.rc-ai-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--bc-navy);
}

.rc-ai-title::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: var(--bc-blue);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c.5 4.6 2.4 6.5 7 7-4.6.5-6.5 2.4-7 7-.5-4.6-2.4-6.5-7-7 4.6-.5 6.5-2.4 7-7Zm7 11.5c.25 2 1 2.75 3 3-2 .25-2.75 1-3 3-.25-2-1-2.75-3-3 2-.25 2.75-1 3-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c.5 4.6 2.4 6.5 7 7-4.6.5-6.5 2.4-7 7-.5-4.6-2.4-6.5-7-7 4.6-.5 6.5-2.4 7-7Zm7 11.5c.25 2 1 2.75 3 3-2 .25-2.75 1-3 3-.25-2-1-2.75-3-3 2-.25 2.75-1 3-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rc-ai-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rc-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid var(--bc-line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--bc-ink) !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(2, 34, 121, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.rc-ai-btn svg {
    flex: 0 0 auto;
}

.rc-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(2, 34, 121, .12);
}

.rc-ai-chatgpt svg { color: #10a37f; }
.rc-ai-claude svg { color: #d97757; }
.rc-ai-perplexity svg { color: #20808d; }

.rc-ai-chatgpt:hover { border-color: #10a37f; color: #10a37f !important; }
.rc-ai-claude:hover { border-color: #d97757; color: #d97757 !important; }
.rc-ai-google:hover { border-color: #4285f4; color: #4285f4 !important; }
.rc-ai-perplexity:hover { border-color: #20808d; color: #20808d !important; }

/* ---------- Author card ---------- */
.rc-author-card {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0 0 56px;
    padding: 32px 36px;
    background: #fff;
    border: 1px solid var(--bc-line);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(2, 34, 121, .08);
    position: relative;
    overflow: hidden;
}

.rc-author-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bc-navy), var(--bc-blue) 60%, var(--bc-red));
}

.rc-author-photo {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bc-blue), var(--bc-navy));
}

.rc-author-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #fff;
}

.rc-author-info {
    flex: 1 1 auto;
    min-width: 0;
}

.rc-author-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: var(--bc-soft);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bc-blue);
}

.rc-author-name {
    margin: 0 0 4px;
    font-size: 26px;
    line-height: 1.25;
    color: var(--bc-navy);
}

.rc-author-role {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bc-red);
}

.rc-author-bio {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--bc-muted);
}

.rc-author-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rc-author-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--bc-navy);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.rc-author-btn-solid {
    background: var(--bc-navy);
    color: #fff !important;
}

.rc-author-btn-solid:hover {
    background: var(--bc-blue);
    border-color: var(--bc-blue);
    transform: translateY(-2px);
}

.rc-author-btn-line {
    background: transparent;
    color: var(--bc-navy) !important;
}

.rc-author-btn-line:hover {
    background: var(--bc-red);
    border-color: var(--bc-red);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .blog-content .blog-hastag .tag-box {
        flex-direction: column;
        gap: 10px;
    }

    .blog-content .blog-hastag .tag-box::before {
        padding: 0;
    }

    .rc-ai-summary {
        padding: 18px 16px;
    }

    .rc-ai-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .rc-ai-btn {
        justify-content: center;
        padding: 10px 8px;
        font-size: 13.5px;
    }

    .rc-author-card {
        flex-direction: column;
        text-align: center;
        gap: 18px;
        margin-bottom: 40px;
        padding: 30px 20px 24px;
    }

    .rc-author-photo {
        flex-basis: auto;
        width: 120px;
        height: 120px;
    }

    .rc-author-name {
        font-size: 22px;
    }

    .rc-author-actions {
        justify-content: center;
    }

    .rc-author-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}
