﻿
/* Container */
.dynamic-profile-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Card */
.dynamic-profile-wrapper {
    width: 520px;
    min-height: 520px;
    background: var(--mud-palette-surface);
    border-radius: 32px;
    padding: 3px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out, min-height 0.5s ease-in-out;
}

    .dynamic-profile-wrapper.active {
        transform: scale(1);
        opacity: 1;
    }

/* Header */
.dynamic-profile-header {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.dynamic-profile-header-icon {
    color: var(--mud-palette-primary);
    font-size: 1.5rem;
}

.dynamic-profile-type {
    font-size: 1.5rem;
    color: var(--mud-palette-primary);
    font-weight: bold;
}

/* Image */
/*.dynamic-profile-image {
    position: absolute;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    top: 3px;
    left: 3px;
    border-radius: 29px;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.8s ease-in-out;
}

    .dynamic-profile-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        transition: all 0.8s ease-in-out;
    }*/

.dynamic-profile-image {
    position: absolute;
    width: 60px; /* set final size */
    height: 60px;
    top: 10px;
    right: 10px;
    left: auto;
    border-radius: 50%;
    border: 5px solid #7494EC;
    box-shadow: rgba(96, 75, 74, 0.188) 0px 5px 5px;
    z-index: 3;
    overflow: hidden;
    /* remove transition */
    transition: none;
}

    .dynamic-profile-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        transition: none; /* remove transition */
    }


/* Footer */
.dynamic-profile-footer {
    position: relative;
    background: var(--mud-palette-surface);
    border-radius: 29px;
    z-index: 2;
    padding: 1.5rem;
    margin-top: calc(75px + 20px);
    transition: all 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
}

/* Description */
.dynamic-profile-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
}

.dynamic-profile-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dynamic-profile-row i {
        color: white;
        font-size: 1rem;
        width: 18px;
        text-align: center;
    }

.dynamic-profile-text {
    font-size: 0.9rem;
    color: white;
}

    .dynamic-profile-text.bold {
        font-weight: 600;
    }

.dynamic-profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.dynamic-profile-button {
    background: white;
    color: #7494EC;
    border: none;
    border-radius: 20px;
    font-size: 0.7rem;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

    .dynamic-profile-button:hover {
        background: #7494EC;
        color: white;
        border: 1px solid white;
    }

/* Hover & active transitions */
.dynamic-profile-wrapper.active .dynamic-profile-footer,
.dynamic-profile-wrapper:hover .dynamic-profile-footer {
    border-radius: 80px 29px 29px 29px;
}

.dynamic-profile-wrapper.active .dynamic-profile-image,
.dynamic-profile-wrapper:hover .dynamic-profile-image {
    width: 60px;
    height: 60px;
    top: 10px;
    right: 10px;
    left: auto;
    border-radius: 50%;
    z-index: 3;
    border: 5px solid var(--mud-palette-primary);
    box-shadow: rgba(96, 75, 74, 0.188) 0px 5px 5px;
}

    .dynamic-profile-wrapper.active .dynamic-profile-image img,
    .dynamic-profile-wrapper:hover .dynamic-profile-image img {
        transform: none;
        object-fit: cover;
        object-position: center;
    }

