/*
* @package phpBB Extension - Avatar hover
* @copyright (c) 2026 Fred Rimbert
* GNU GPL v2
*/

/* Overlay global */
#nodal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
}

#nodal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Bloc Nodal centré */
.infoprof {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 400px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;

    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    text-align: center;
}

.infoprof.nodal-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Bouton fermeture */
.nodal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 10px;
    color: #fff;
    background: #3c67e7;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    transition: 0.2s ease;
}

.nodal-close:hover {
    background: #e74c3c;
}

/* Style des lignes */
.infoprof dd {
    margin: 0;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.infoprof dd:last-child {
    border-bottom: none;
}

/* Avatar rond dans le Nodal (à gauche) */
.nodal-avatar-wrapper {
    flex-shrink: 0;
    text-align: center;
}

.nodal-avatar-wrapper a {
    display: block;
}

.nodal-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.nodal-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
