@use 'element-plus/theme-chalk/src/mixins/mixins.scss' as *;

@include b(pro-card){
    width: var(--wet-card-w,300px);
    flex: 1;
    @include when(layout){
        width: auto;
    }

    @include when(tab){
        width: 100%;
    }

    @include when(split){
        width: 100%;
        .#{$namespace}-pro-card__card-inner{
            border-radius: 0;
        }
    }

    @include e(card-inner){
        height: 100%;
        box-sizing: border-box;
        background-color: var(--wet-card-bg-c);
        display: flex;
        flex-direction: column;

        @include when(bordered){
            border: 1px solid var(--wet-card-border-color,getCssVar('color-info','light-7'));
            border-radius: getCssVar('border-radius','base');
        }

        @include when(always){
            box-shadow: 0 0 12px rgba(0,0,0,0.12);
        }

        @include when(hover){
            transition:  all 0.3s;
            cursor: pointer;
            &:hover{
                box-shadow: 0 0 12px rgba(0,0,0,0.12);
            }
        }
    }

    @include e(header){
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--wet-card-pad) var(--wet-card-pad) 0;

        @include m(title){
            display:flex;
            justify-content: space-between;
            align-items: center;
        }

        @include m(extra){
            margin-left: 15px;
            display: flex;
            align-items: center;
        }

        @include m(arrow-icon){
            transition: transform 0.3s;
            transform: rotate(90deg);
        }

        @include when(border-bottom){
            padding-bottom:var(--wet-card-pad);
            border-bottom: 1px solid var(--wet-card-border-color,getCssVar('color-info','light-7'));
        }

        @include when(collapsible){
            cursor: pointer;
        }
        @include when(collapse){
            border-bottom:none;
            .#{$namespace}-pro-card__header--arrow-icon{
                transform: rotate(0);
            }
        }
    }

    @include e(body){
        flex: 1;
        padding:var(--wet-card-pad);
        @include when(split-x){
            padding: 0;
            &>.#{$namespace}-pro-card{
                height: 100%;
                border-right: 1px solid var(--wet-card-border-color,getCssVar('color-info','light-7'));
                &:last-child{
                    border-right:none;
                }
            }
            
        }

        @include when(split-y){
            padding: 0;
            flex-direction: column;
            &>.#{$namespace}-pro-card{
                height: 100%;
                width: 100%;
                border-bottom: 1px solid var(--wet-card-border-color,getCssVar('color-info','light-7'));
                &:last-child{
                    border-bottom:none;
                }
            }
        }
    }

    @include e(footer){
        
    }
}