/* sg-ranks-manager/public/css/sgrm-public-style.css */
.sgrm-ranks-display-wrapper {
    font-family: sans-serif;
    margin-bottom: 20px;
}

.sgrm-ranks-display-wrapper h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sgrm-rank-card {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.sgrm-rank-card.is-achieved {
    border-left: 5px solid #4CAF50; /* Vert pour atteint */
}

.sgrm-rank-card.is-locked {
    border-left: 5px solid #ccc; /* Gris pour verrouillé */
    opacity: 0.8;
}
.sgrm-rank-card.is-locked .sgrm-rank-icon {
    filter: grayscale(80%);
}


.sgrm-rank-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 4px;
    object-fit: contain;
}

.sgrm-rank-details {
    flex-grow: 1;
}

.sgrm-rank-name {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.sgrm-rank-points-info,
.sgrm-rank-prerequisite {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #555;
}

.sgrm-status-achieved {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.9em;
}
.sgrm-status-locked {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}


.sgrm-progress-to-next-rank {
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f8ff; /* AliceBlue léger */
    border-radius: 5px;
}
.sgrm-progress-to-next-rank p {
    margin: 0 0 8px 0;
    font-size: 0.95em;
}

.sgrm-progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 5px;
    padding: 3px;
    height: 26px; /* Hauteur incluant padding */
    box-sizing: border-box;
}

.sgrm-progress-bar {
    background-color: #5cb85c; /* Vert pour la progression */
    height: 20px;
    line-height: 20px;
    color: white;
    text-align: center;
    font-size: 0.8em;
    border-radius: 3px;
    transition: width 0.5s ease-in-out;
}

/* Pour la grille de tous les rangs */
.sgrm-all-ranks-section .sgrm-ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Grille responsive */
    gap: 15px;
}

.sgrm-login-required, .sgrm-error {
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 15px;
}
.sgrm-login-required {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}
.sgrm-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}