/* Modal Base (Overlay & Blur) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
}

/* Modal Content Box */
.modal-content {
    background-color: #2e2e2e;
    color: white;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #2e2e2e;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
    animation: expandBox 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Elastic Expand Animation */
@keyframes expandBox {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button styling */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
}

.close-btn:hover {
    background-color: #242424;
    transform: rotate(90deg);
}

.modal-header img {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid #242424;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#p-modal-name {
    font-size: 28px;
    margin-bottom: 30px;
    top: 10px;
    left: 10px;
    margin-top: 0;
    text-transform: uppercase;
    font-weight: bold;
}

.modal-desc {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Modal Social Links (Creators Modal) */
.modal-social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin-top: 20px;
}

.modal-social-list li a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    border-radius: 50%;
    border: 1px solid #242424;
    transition: all 0.3s ease;
}

.modal-social-list li a i {
    font-size: 24px;
}

.modal-social-list li a:hover {
    background-color: #c40808;
    border-color: #c40808;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(196, 8, 8, 0.4);
}

/* Product Modal Active Flex State */
#product-modal.active {
    display: flex;
}
