/* =========================
   POPUP NOTE
========================= */

.note-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;

    background: rgba(0, 0, 0, 0.78);

    align-items: center;
    justify-content: center;

    padding: 20px;

    backdrop-filter: blur(6px);
}

.note-popup-overlay.active {
    display: flex;
    animation: noteOverlayIn 0.2s ease;
}

.note-popup {
    position: relative;

    width: 100%;
    max-width: 520px;

    background: linear-gradient(
        145deg,
        #252525,
        #151515
    );

    border: 1px solid rgba(255, 105, 180, 0.35);

    border-radius: 22px;

    padding: 30px;

    color: #fff;

    box-shadow:
        0 25px 70px rgba(0,0,0,0.75),
        0 0 35px rgba(255,105,180,0.12);

    animation: notePopupIn 0.3s ease;
}

.note-popup-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    color: #fff;

    font-size: 20px;

    cursor: pointer;

    transition: 0.2s;
	
	padding: 0;
}

.note-popup-close:hover {
    background: rgba(255,80,130,0.25);
    transform: rotate(90deg);
}


/* HEADER */

.note-popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.note-popup-icon {
    font-size: 42px;

    margin-bottom: 8px;

    filter: drop-shadow(
        0 0 12px rgba(255,215,0,0.5)
    );
}

.note-popup-header h2 {
    margin: 0;

    font-size: 26px;

    background: linear-gradient(
        90deg,
        #ff69b4,
        #ff9ad5
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.note-popup-header p {
    margin: 8px 0 0;

    color: #aaa;

    font-size: 14px;
}


/* NOTE */

.note-rating {
    text-align: center;

    margin-bottom: 25px;
}

.note-label {
    color: #ddd;

    font-weight: bold;

    margin-bottom: 10px;
}

.stars {
    display: flex;

    justify-content: center;

    gap: 7px;
}

.stars span {
    font-size: 42px;

    color: #444;

    cursor: pointer;

    transition:
        color 0.15s,
        transform 0.15s;
}

.stars span:hover {
    transform: scale(1.15);
}

.stars span.active {
    color: #ffd700;

    text-shadow:
        0 0 8px rgba(255,215,0,0.5);
}

.rating-text {
    margin-top: 8px;

    min-height: 20px;

    color: #aaa;

    font-size: 13px;
}


/* COMMENTAIRE */

.note-comment {
    position: relative;

    margin-bottom: 20px;
}

.note-comment label {
    display: block;

    margin-bottom: 8px;

    font-weight: bold;

    color: #eee;
}

.note-comment textarea {
    width: 100%;

    min-height: 130px;

    resize: vertical;

    box-sizing: border-box;

    padding: 14px;

    border-radius: 12px;

    border: 1px solid #444;

    background: #101010;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition: 0.2s;
}

.note-comment textarea:focus {
    border-color: #ff69b4;

    box-shadow:
        0 0 0 3px rgba(255,105,180,0.10);
}

.note-comment textarea::placeholder {
    color: #777;
}


/* COMPTEUR */

.note-counter {
    text-align: right;

    margin-top: 5px;

    color: #777;

    font-size: 12px;
}


/* MESSAGE */

.note-message {
    display: none;

    padding: 10px 12px;

    border-radius: 10px;

    margin-bottom: 15px;

    text-align: center;

    font-size: 14px;
}

.note-message.success {
    display: block;

    background: rgba(50,205,50,0.12);

    border: 1px solid rgba(50,205,50,0.3);

    color: #7cff7c;
}

.note-message.error {
    display: block;

    background: rgba(255,70,70,0.12);

    border: 1px solid rgba(255,70,70,0.3);

    color: #ff8c8c;
}


/* BOUTONS */

.note-popup-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 10px;
}

.bouton-gris {
    background: #444 !important;

    color: #fff !important;
}

/* Joueur */
.note-jeux-player {
    font-weight: bold;
	line-height: 20px;
	margin-top: 8px;
}

.note-jeux-player a img {
    display: inline-block;
}

.note-avatar-ranking {
	display: inline-block;
    width:50px;
	height:50px;
	border-radius:50%;
	vertical-align:middle;
	margin-right:5px;
    box-shadow: 0 0 5px #0ff;	
}


/* ANIMATIONS */

@keyframes noteOverlayIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes notePopupIn {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .note-popup {
        padding: 24px 18px;

        border-radius: 18px;
    }

    .stars span {
        font-size: 35px;
    }

    .note-popup-header h2 {
        font-size: 23px;
    }

}