/**
 * Blog Button Block
 * Two variants share layout/typography; only background + button styling change.
 */

.blog-button__inner {
    max-width: 1000px;
    padding: 2.5rem;
    border-radius: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

/* Headline: match topics-template-experts CTA size (24px) */
.blog-button__headline {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 400;
}

/* Base CTA button geometry (same for both variants) */
.blog-button__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.blog-button__cta:hover {
    transform: translateY(-1px);
}

.blog-button__cta-text {
    display: inline-block;
}

/* Light variant (like topics-template-experts-cta) */
.blog-button--light {
    background: linear-gradient(90deg, #eef7ff 0%, #f5f4ff 100%);
}

.blog-button--light .blog-button__headline {
    color: #090a0b;
}

.blog-button--light .blog-button__cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: transparent;
    border: 2px solid rgba(213, 0, 195, 0.35);
    box-shadow: none;
}

.blog-button--light .blog-button__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    background: linear-gradient(90deg, #ff7ae3 13.48%, #d970ff 45.77%, #ab80ff 76.85%);
}

.blog-button--light .blog-button__cta:hover::before {
    opacity: 1;
}

.blog-button--light .blog-button__cta-text {
    position: relative;
    z-index: 1;
    background: linear-gradient(86deg, #b800a8 5.41%, #440d8f 49.98%, #2d0049 96.57%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.blog-button--light .blog-button__cta:hover .blog-button__cta-text {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

/* Dark variant (like home-page-topics-section CTA) */
.blog-button--dark {
    color: #fff;
    background-color: #090a0b;
    background-image: url('../../assets/images/banner-img.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-button--dark .blog-button__headline {
    color: #ffffff;
}

.blog-button--dark .blog-button__cta {
    background-color: #ffffff;
    border: none;
}

.blog-button--dark .blog-button__cta-text {
    background: linear-gradient(90deg, #7400b2 13.48%, #5511bc 56.52%, #d500c3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.blog-button--dark .blog-button__cta:hover {
    background: linear-gradient(90deg, rgba(248, 38, 255, 0.67) 13.48%, rgba(144, 0, 255, 0.67) 60.07%, rgba(51, 0, 255, 0.67) 100%), rgba(255, 255, 255, 0.46);
}

.blog-button--dark .blog-button__cta:hover .blog-button__cta-text {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

@media (max-width: 767px) {
    .blog-button__inner {
        padding: 2rem 1.25rem;
        border-radius: 22px;
    }

    .blog-button__headline {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }
}

