/* ==========================================================================
   STYLES COLOCALISÉS : PROFIL JOUEUR (FRONTEND/PROFIL/PROFIL.CSS)
   ========================================================================== */

/* Carte de profil en grille 2 colonnes */
.profile-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.profile-avatar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    padding-right: 1.5rem;
}

.avatar-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: rgba(30, 20, 10, 0.8);
    margin-bottom: 1rem;
}

/* Jauges RPG de PV et de Mana */
.rpg-bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--gold);
    border-radius: 10px;
    height: 16px;
    overflow: hidden;
    margin: 0.4rem 0 1rem 0;
}

.rpg-bar-fill-hp {
    background: linear-gradient(90deg, #d32f2f, #f44336);
    height: 100%;
    width: 85%;
    transition: width 0.3s ease;
}

.rpg-bar-fill-mana {
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    height: 100%;
    width: 65%;
    transition: width 0.3s ease;
}

/* Grille des caractéristiques */
.rpg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.rpg-stat-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
}

.rpg-stat-box .val {
    font-size: 1.6rem;
    color: var(--gold-light);
    font-weight: bold;
}

.rpg-stat-box .lbl {
    font-size: 0.8rem;
    color: var(--parchment-muted);
}

/* Lanceur de dés */
.dice-roller-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1.5rem;
}

.dice-roller-title {
    color: var(--gold);
    margin: 0 0 0.6rem 0;
    font-size: 1.15rem;
}

.dice-buttons-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.dice-result-display {
    font-size: 1.3rem;
    color: var(--gold-light);
    font-weight: bold;
    margin-left: 1rem;
}

/* Notes du joueur */
.player-notes-box {
    margin-top: 1.5rem;
}

.player-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.player-notes-textarea {
    width: 100%;
    min-height: 110px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--parchment);
    padding: 0.8rem;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
}

.player-notes-textarea:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* Métadonnées de compte & Sécurité */
.account-meta-box {
    width: 100%;
    background: rgba(15, 10, 5, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 0.86rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.account-meta-item {
    display: flex;
    justify-content: space-between;
    color: var(--parchment-muted);
}

.account-meta-item strong {
    color: var(--parchment);
}

.security-card {
    background: rgba(18, 12, 7, 0.7);
    border: 1px dashed rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    margin-top: 1.5rem;
}

@media screen and (max-width: 900px) {
    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-avatar-box {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        padding-right: 0;
        padding-bottom: 1.5rem;
    }
}
