components/search-card/SearchCard.module.scss
@use '/app/scss/mixins.scss' as *;
.wrapper {
    min-width: 300px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--box-shadow);
    border-radius: 16px;
    padding: 16px;
    border: var(--solid-border);
    position: relative;
    overflow: hidden;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-family: var(--large-retro-font-family);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black-low);
}

.title:first-child {
    font-size: 1.7rem;
}

.title:last-child {
    font-size: 2rem;
}

.content {
    display: flex;
}

.avatar {
    width: 100px;
    height: 120px;
    padding: 8px;
    margin-right: 12px;
    --radius: 4px;

    background-image: radial-gradient(var(--radius), transparent 98%, var(--red)), linear-gradient(var(--red) 0 0);
    background-repeat: round, no-repeat;
    background-position:
        calc(var(--radius) * -1.5) calc(var(--radius) * -1.5),
        50%;
    background-size:
        calc(var(--radius) * 3) calc(var(--radius) * 3),
        calc(100% - var(--radius) * 3) calc(100% - var(--radius) * 3);
}

.avatar-img {
    min-width: 84px;
    width: 100%;
    height: 100%;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    .label {
        font-family: var(--font-family);
        font-size: 1.3rem;
        color: var(--red);
        font-weight: 600;
        text-transform: uppercase;
    }

    .info-content {
        font-family: var(--font-family);
        font-size: 1.3rem;
        color: var(--text-color);
        font-weight: 500;
        word-break: break-word;
    }

    .status {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin-left: 6px;
        border-radius: 50%;
        background-color: red;
    }

    .online {
        background-color: green;
    }
}

// action
.action {
    display: flex;
    justify-content: center;
    gap: 32px;
    position: absolute;
    top: 70%;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: var(--search-card-action-bg);
    border-radius: 16px;
    visibility: hidden;
    transition: all 0.15s ease-in-out;

    .action-item {
        height: fit-content;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        max-width: 70px;
        position: relative;
        top: 36%;
        cursor: pointer;
    }

    .action-item:hover {
        .ai-icon {
            background-color: var(--red);
        }

        .ai-label {
            color: var(--red);
        }
    }

    .ai-icon {
        width: 36px;
        height: 36px;
        background-color: var(--white);
        border-radius: 50%;
        padding: 4px;
        margin-bottom: 8px;
        transition: all 0.2s ease-in-out;
    }

    .ai-label {
        @include font-default;
        color: #fff;
        font-weight: 500;
        text-align: center;
        transition: all 0.2s ease-in-out;
    }
}

.wrapper:hover {
    .action {
        visibility: visible;
        top: 0;
    }
}
