/**
 * Product Module: Related Solutions (CTA Pills)
 *
 * Gradient background with centered title and pill-shaped CTA buttons.
 * Background gradient is customizable via ACF (inline style).
 * Modern hover states with darkening, scale, and shadow effects.
 *
 * Figma Node: 159-1243
 */

/* ==========================================================================
   SECTION CONTAINER
   ========================================================================== */

.workjam-related-solutions {
    /* Gradient applied inline via style attribute from ACF */
    padding: 77px 104px 48px 104px;
    min-height: 300px;
    height: fit-content;
}

.workjam-related-solutions__container {
    max-width: 1519px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
}

/* ==========================================================================
   SECTION TITLE
   ========================================================================== */

.workjam-related-solutions__title {
    font-family: 'Avenir Next', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 120.515%;
    color: #FFF;
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   PILLS CONTAINER
   ========================================================================== */

.workjam-related-solutions__pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 37px;
    flex-wrap: wrap;
    width: 100%;
}

/* ==========================================================================
   INDIVIDUAL PILL BUTTONS
   ========================================================================== */

.solution-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 280px;
    height: 58px;
    padding: 13px 36px;
    background-color: #FFFFFF;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 10px;
}

.solution-pill__text {
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: #000000;
    white-space: nowrap;
}

/* Arrow Icon - Override white stroke to black */
.solution-pill svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.solution-pill svg path {
    stroke: #000000 !important;
    transition: stroke 0.2s ease;
}

/* ==========================================================================
   HOVER & ACTIVE STATES
   ========================================================================== */

/* Hover State - Darken background (Module 1 lesson: darken not lighten) */
.solution-pill:hover {
    background-color: #F0F0F0;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Arrow slides right on hover (maintain rotation) */
.solution-pill:hover svg {
    transform: rotate(180deg) translateX(4px);
}

/* Active State - Press down effect */
.solution-pill:active {
    background-color: #E5E5E5;
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Focus-Visible State - Accessibility */
.solution-pill:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet - 980px */
@media (max-width: 980px) {
    .workjam-related-solutions {
        padding: 60px 40px 40px 40px;
        min-height: 250px;
    }

    .workjam-related-solutions__container {
        gap: 35px;
    }

    .workjam-related-solutions__title {
        font-size: 48px;
        max-width: 700px;
    }

    .workjam-related-solutions__pills {
        gap: 24px;
    }

    .solution-pill {
        width: 260px;
        height: 54px;
        padding: 12px 32px;
    }

    .solution-pill__text {
        font-size: 15px;
    }

    .solution-pill svg {
        width: 18px;
        height: 18px;
    }
}

/* Tablet Portrait - 768px */
@media (max-width: 768px) {
    .workjam-related-solutions {
        padding: 50px 32px 36px 32px;
        min-height: 220px;
    }

    .workjam-related-solutions__container {
        gap: 30px;
    }

    .workjam-related-solutions__title {
        font-size: 40px;
        max-width: 600px;
    }

    .workjam-related-solutions__pills {
        gap: 20px;
        flex-direction: column;
        max-width: 400px;
    }

    .solution-pill {
        width: 100%;
        max-width: 360px;
        height: 52px;
    }
}

/* Mobile - 600px */
@media (max-width: 600px) {
    .workjam-related-solutions {
        padding: 40px 24px 32px 24px;
        min-height: 200px;
    }

    .workjam-related-solutions__container {
        gap: 28px;
    }

    .workjam-related-solutions__title {
        font-size: 32px;
        max-width: 100%;
    }

    .workjam-related-solutions__pills {
        gap: 16px;
    }

    .solution-pill {
        height: 50px;
        padding: 12px 28px;
    }

    .solution-pill__text {
        font-size: 14px;
    }

    .solution-pill svg {
        width: 16px;
        height: 16px;
    }
}

/* Small Mobile - 400px */
@media (max-width: 400px) {
    .workjam-related-solutions {
        padding: 32px 20px 28px 20px;
        min-height: 180px;
    }

    .workjam-related-solutions__container {
        gap: 24px;
    }

    .workjam-related-solutions__title {
        font-size: 28px;
    }

    .workjam-related-solutions__pills {
        gap: 14px;
    }

    .solution-pill {
        height: 48px;
        padding: 10px 24px;
    }

    .solution-pill__text {
        font-size: 13px;
    }
}
