@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap');

/* -----------------------------
   Wrapper principal du chat
----------------------------- */
#wlc-chat-wrapper {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    padding: 20px;
    color: #fbfbfb;
    max-width: 900px;
    margin: auto;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08),
                0 0 80px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

/* -----------------------------
   Liste des utilisateurs en ligne
----------------------------- */
#wlc-online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

/* Utilisateur en ligne */
.wlc-online-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wlc-online-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}


.wlc-online-name {
    font-size: 12px;
    color: #fbfbfb;
}

/* -----------------------------
   Messages container
----------------------------- */
#wlc-messages {
    height: 500px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 10px;
}

/* Message individuel */
.wlc-message {
    padding: 4px 8px;
    word-break: break-word;
    user-select: none; /* Empêche la sélection du texte sur double-clic */
}

.wlc-time-separator{
    text-align:center;
    font-size:12px;
    color:rgb(179, 87, 222);
    margin:12px 0;
    opacity:.8;
    width:100%;
}
.wlc-message .wlc-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wlc-message .wlc-user {
    color: #ac518c; /* violet vaporwave */
   text-shadow: 0 0 10px rgba(255, 113, 206, 0.6); /* glow vaporwave */
    font-weight: 600;
    font-size: 16px; /* légèrement plus gros que le texte */
    overflow-wrap: anywhere; /* pour éviter que les messages très longs cassent le layout */
}

.wlc-message .wlc-text {
    color: #fbfbfb;
    font-size: 15px;
    overflow-wrap: anywhere; /* pour messages très longs */
}

.wlc-message .wlc-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    opacity: 0.5;
    margin-top: 2px;
    align-items: center;
}

.wlc-message .wlc-likes {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    opacity: 0.8;
}

/* -----------------------------
   Formulaire input + bouton
----------------------------- */
#wlc-form {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

#wlc-chat-wrapper textarea,
#wlc-chat-wrapper button {
    flex-shrink: 0;
}

#wlc-message-input {
    flex: 1;
    box-sizing: border-box;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    resize: none;
    height: 60px;
    outline: none;
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

#wlc-message-input:focus {
    box-shadow: 0 0 10px rgba(255, 91, 154, 0.7);
    border-color: #a41cda;
}

#wlc-send-button {
    background: #000000;
    border: none;
    color: #fbfbfb;
    border-radius: 10px;
    padding: 0 25px;
    cursor: pointer;
    font-weight: bold;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#wlc-send-button:hover {
    background: #9c5bb6;
}

/* Bouton login */
.wlc-login-button {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    padding: 14px 20px;
    background: rgba(179, 87, 222, 0.521);
    color: #000;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease-in-out;
}

.wlc-login-button:hover {
    background: #AC518C;
}

/* -----------------------------
   Responsive mobile
----------------------------- */
@media (max-width: 600px) {
    #wlc-form {
        flex-direction: column;
        gap: 8px;
    }

    #wlc-send-button {
        width: 100%;
        padding: 12px 0;
        height: auto;
    }

    #wlc-message-input {
        height: 50px;
        font-size: 14px;
    }

    #wlc-messages {
        height: 350px;
    }
}