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

.daggerheart.dh-style.setting {
    fieldset {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        &.two-columns {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 10px;

            &.even {
                grid-template-columns: 1fr 1fr;
            }
        }

        &.three-columns {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 2px;
        }

        &.six-columns {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
            gap: 2px;
        }

        &.start-align {
            align-self: flex-start;
        }
    }

    .toggleable-row {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 4px;

        &.spaced {
            padding-right: 28.5px;
        }

        .form-group {
            flex: 1;
        }
    }

    .setting-group-field {
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .settings-items {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;

        .settings-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border: 1px solid;
            border-radius: 8px;
            padding: 0 8px 0 0;

            .settings-sub-item {
                display: flex;
                align-items: center;
                gap: 8px;

                img {
                    width: 60px;
                    border-radius: 8px 0 0 8px;
                }

                i {
                    font-size: var(--font-size-18);
                }
            }
        }
    }

    .settings-item-header {
        display: flex;
        align-items: center;

        .profile {
            height: 100px;
            width: 100px;
            object-fit: cover;
            box-sizing: border-box;
            cursor: pointer;
        }

        .item-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            text-align: center;
            width: 80%;

            .item-name input[type='text'] {
                font-size: var(--font-size-32);
                height: 42px;
                text-align: center;
                width: 90%;
                transition: all 0.3s ease;
                outline: 2px solid transparent;
                border: 1px solid transparent;

                &:hover[type='text'],
                &:focus[type='text'] {
                    box-shadow: none;
                    outline: 2px solid light-dark(@dark-blue, @golden);
                }
            }
        }
    }

    .settings-col {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .trait-item {
        input {
            text-align: center;
        }
    }

    .settings-hint {
        width: 100%;
        display: flex;
        justify-content: end;

        label {
            width: 240px;
            font-style: italic;
            text-align: center;
        }
    }
}
