/* Styles pour l'interface multijoueur */

.multiplayer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.multiplayer-modal .modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(40, 40, 60, 0.95));
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.multiplayer-modal h2 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    text-align: center;
}

.multiplayer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #d4af37;
    color: #d4af37;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(212, 175, 55, 0.2);
}

.tab-btn.active {
    background: rgba(212, 175, 55, 0.3);
    border-color: #ffd700;
    color: #ffd700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content input,
.tab-content select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #d4af37;
    border-radius: 5px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
}

.tab-content button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(255, 215, 0, 0.2));
    border: 2px solid #d4af37;
    border-radius: 5px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-content button:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), rgba(255, 215, 0, 0.3));
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

#roomCodeDisplay {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #d4af37;
    border-radius: 5px;
    text-align: center;
}

#roomCodeDisplay strong {
    color: #ffd700;
    font-size: 1.5em;
    font-family: 'Courier New', monospace;
}

#multiplayerStatus {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #d4af37;
    border-radius: 5px;
}

#multiplayerStatus p {
    color: #d4af37;
    margin: 10px 0;
}

#multiplayerStatus span {
    color: #ffd700;
    font-weight: bold;
}

#multiplayerStatus button {
    margin-top: 10px;
    margin-right: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #ffd700;
}

#openMultiplayerBtn {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(255, 215, 0, 0.2));
    border: 2px solid #d4af37;
    border-radius: 5px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

#openMultiplayerBtn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), rgba(255, 215, 0, 0.3));
    border-color: #ffd700;
    color: #ffd700;
}

