/********************************************************************************
 * Eclipse Tractus-X - Industry Core Hub Frontend
 *
 * Copyright (c) 2025 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Apache License, Version 2.0 which is available at
 * https://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the
 * License for the specific language govern in permissions and limitations
 * under the License.
 *
 * SPDX-License-Identifier: Apache-2.0
********************************************************************************/

@use "../config/variables" as *;
@use '../config/mixins';

.custom-cards-list {
    display: flex;
    --ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: center;

    .custom-card-box {
        padding-right: 10px;
        padding-left: 10px;
        margin-bottom: 20px!important;
        border-radius: 5px;
        color: $brand-text;
        min-width: 280px;

        .custom-card {
            display: flex;
            flex-direction: column;
            width: 320px;
            max-width: 320px;
            min-width: 320px;
            justify-content: space-between;
            cursor: pointer;
            background: $brand-dark !important;
            @include mixins.space-shadow($brand-blue);
            @include mixins.rounded-bordered;

            &:hover {
                border: 2px solid rgba($brand-light-blue, 0.85) !important;
            }

            .custom-card-header {
                padding: 10px 10px 0px 10px;
                margin-bottom: 0px;
                display: flex;
                justify-content: space-between;
                width: 100%;
                align-items: center;

                .custom-card-header-buttons {
                    display: flex;
                    justify-self: right;

                    button {
                        padding: 0px;
                        margin: 0px 5px;
                        border-radius: 8px;

                        &:hover {
                            opacity: 0.5;
                            background-color: transparent;
                        }

                        svg {
                            font-size: 20px;
                        }
                    }
                }
            }

            .custom-card-content {
                padding: 10px 25px;

                h5 {
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    line-clamp: 2;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                    font-weight: bold;
                    font-size: 18px;
                    color: $brand-text;
                }

                span {
                    color: $brand-text;
                    height: 48px;
                }
            }

            .custom-card-button-box {
                width: 100%;

                button {
                    border-radius: 8px;
                    border-top-left-radius: 0px;
                    border-top-right-radius: 0px;
                    background: $brand-dark-gray;
                    width: 100%;

                    &:hover {
                        background: $blue-gradient-bg;
                    }
                }
            }
        }

        .MuiChip-icon {
            color: $brand-dark !important;
        }
        
    }
}