@import url('../_root.css');

.userModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modalOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modalContainer {
    position: relative;
    width: 600px;
    max-width: 90%;
    display: flex;
    background-color: var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1001;
    box-shadow: var(--card-shadow-hover);
}

.modalClose {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1002;
}

.modalClose:hover,
.modalClose:focus {
    color: var(--accent-color);
    outline: none;
}

.modalImageSection {
    width: 40%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modalImageSection img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.modalContentSection {
    width: 60%;
    padding: 40px;
    color: var(--text-color);
}

.modalContentSection h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.modalContentSection p {
    margin-bottom: 25px;
    line-height: 1.5;
}

.modalLinks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modalLink {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
}

.modalLink:hover,
.modalLink:focus {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .modalContainer {
        flex-direction: column;
    }

    .modalImageSection,
    .modalContentSection {
        width: 100%;
    }

    .modalImageSection {
        padding: 30px;
    }

    .modalContentSection {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .modalContentSection h3 {
        font-size: 1.5rem;
    }

    .modalLinks {
        flex-direction: column;
    }
}
