/* Root button > .btn (always paired with a variant: .btn-primary or .btn-secondary) */

.btn {
    cursor: pointer;
    user-select: none;
    text-align: center;
    vertical-align: middle;
    padding: 1rem 2rem;
    font-family: var(--font-title);
    font-size: 1.7rem;
    font-weight: 700;
    border: 0;
    border-radius: 1rem;
    transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn[disabled] {
    pointer-events: none;
    color: var(--grey-dark);
    background: var(--grey-white);
    box-shadow: none;
    opacity: 0.7;
}


/* Primary button > .btn.btn-primary */

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-ocean), #0a7ea4);

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 77, 110, 0.35);
    }
}


/* Secondary button > .btn.btn-secondary (inset ring instead of border: same box as .btn-primary) */

.btn-secondary {
    color: var(--blue-ocean);
    box-shadow: inset 0 0 0 2px var(--blue-ocean);

    &:hover {
        background: linear-gradient(135deg, #fff, #e6f0f6);
        transform: translateY(-2px);
        box-shadow: inset 0 0 0 2px var(--blue-ocean), 0 8px 20px rgba(0, 77, 110, 0.35);
    }
}


/* Compact size > .btn.btn-sm (e.g. aside buttons) */

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 1.6rem;
}


/* Exercise button > .btn-choice */

.btn-choice {
    cursor: pointer;
    overflow: hidden;
    display: block;
    position: relative;
    margin-bottom: 1.4rem;
    padding: 1.4rem 2rem 1.4rem 2.4rem;
    width: 100%;
    text-align: left;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.25s;
}

.btn-choice::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: transparent;
    transition: background-color 0.25s;
}

.btn-choice:hover {
    border-color: var(--blue);
    background-color: var(--white-blue);
}

.btn-choice:hover::before {
    background-color: var(--blue);
}

.btn-choice-correct,
.btn-choice-correct:hover {
    cursor: default;
    border-color: var(--green);
    background-color: var(--white-green);
}

.btn-choice-correct::before,
.btn-choice-correct:hover::before {
    background-color: var(--green);
}
