@import '../../utils/fonts.less';
@import '../../utils/colors.less';

.daggerheart.levelup {
    .levelup-selections-container {
        padding: 10px 0;

        .achievement-experience-cards {
            display: flex;
            gap: 8px;

            .achievement-experience-card {
                display: flex;
                justify-content: space-between;
                align-items: center;
                background: light-dark(@dark-blue-40, @golden-40);
                border-radius: 3px;
                padding: 5px;
                font-size: var(--font-size-16);
                gap: 4px;
                width: 100%;

                input {
                    background: light-dark(@soft-shadow, @semi-transparent-dark-blue);
                    width: 80%;
                }

                .achievement-experience-marker {
                    border: 1px solid;
                    border-radius: 50%;
                    height: 18px;
                    width: 18px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: var(--font-size-12);
                }
            }
        }

        .levelup-card-selection {
            display: flex;
            justify-content: center;
            gap: 40px;
            height: 190px;
            align-items: stretch;

            .card-preview-container {
                height: 190px;
                max-width: 200px;
            }

            .levelup-domains-selection-container {
                display: grid;
                grid-auto-flow: column;
                grid-template-rows: repeat(2, minmax(0, 1fr));
                height: 100%;
                gap: 4px;

                .levelup-domain-selection-container {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    position: relative;
                    cursor: pointer;
                    overflow: hidden;
                    width: 93px;

                    &.disabled {
                        pointer-events: none;
                        opacity: 0.4;
                    }

                    .levelup-domain-label {
                        position: absolute;
                        left: 0;
                        right: 0;
                        bottom: 0;
                        text-align: center;
                        background: grey;
                        padding: 2px 12px;
                        z-index: 2;
                        line-height: 1;
                    }

                    img {
                        object-fit: cover;
                        width: auto;
                        height: auto;

                        &.svg {
                            filter: @beige-filter;
                        }
                    }

                    .levelup-domain-selected {
                        position: absolute;
                        height: 40px;
                        width: 40px;
                        border-radius: 50%;
                        border: 2px solid @golden;
                        font-size: var(--font-size-24);
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        background: @dark-golden;
                        color: @golden;
                        top: 10px;
                        z-index: 2;

                        i {
                            position: relative;
                            right: 2px;
                        }
                    }
                }
            }
        }

        .card-section {
            flex: 1 1 100%;

            .card-section-header {
                display: flex;
                align-items: center;
                gap: 20px;
                margin-bottom: 10px;

                h3 {
                    color: light-dark(@dark, @beige);
                    margin: 0;
                    white-space: nowrap;
                }
            }
        }

        .levelup-selections-title {
            margin-left: auto;
            margin-right: auto;
            font-size: 1.375rem;
            font-weight: bold;
            padding: 0 12px;
        }

        .levelup-trait-increases,
        .levelup-experience-increases {
            width: 100%;
        }

        .levelup-radio-choices {
            display: flex;
            gap: 8px;

            label {
                flex: 0;
            }
        }
    }

    .levelup-footer {
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }
}
