// Free Complete Template Styles
@use "@wp-rollback/shared-core/styles/variables" as *;

// Pro upgrade card — gradient, high-contrast
.wpr-pro-upgrade-card {
    padding: 20px 22px;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
    border-radius: 6px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;

    // Decorative background circle
    &::after {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 160px;
        height: 160px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 50%;
        pointer-events: none;
    }

    &__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 10px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.75) !important;
    }

    &__headline {
        margin: 0 0 8px 0 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #fff !important;
    }

    &__description {
        margin: 0 0 16px 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.85) !important;
        line-height: 1.55;
        text-wrap: pretty;
    }

    &__chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 18px;
    }

    &__actions {
        display: flex;
        align-items: center;
        gap: 14px;

        .wpr-pro-upgrade-card__cta.components-button {
            background: #fff !important;
            border-color: #fff !important;
            color: #4338ca !important;
            font-size: 13px;
            font-weight: 600;
            height: 34px;
            padding: 0 18px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);

            &:hover {
                background: #f5f3ff !important;
                border-color: #f5f3ff !important;
                color: #3730a3 !important;
            }

            &:focus {
                box-shadow: 0 0 0 2px #4338ca, 0 0 0 4px rgba(255, 255, 255, 0.5) !important;
            }
        }

        .components-external-link {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.85) !important;
            text-decoration: none;
            font-weight: 500;

            &:hover {
                color: #fff !important;
                text-decoration: underline;
            }

            svg {
                fill: rgba(255, 255, 255, 0.7) !important;
            }
        }
    }
}

// Feature chips — white on purple
.wpr-pro-upgrade-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    white-space: nowrap;

}

// Modal content padding
.wpr-modal-content {
    padding: 0;
}

// Responsive
@media ( max-width: 600px ) {
    .wpr-pro-upgrade-card__chips {
        flex-direction: column;
    }
}
