/**
 * Styles for the celebrity game high scores display
 * 
 * @package Dona
 * @since 1.0.0
 */

.dona-hiscore-container {
    margin: 2em 0;
    font-family: inherit;
    max-width: 100%;
    box-sizing: border-box;
}

.dona-update-notice {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1em;
    font-style: italic;
}

.dona-hiscore-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dona-hiscore-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.dona-hiscore-table tr:last-child {
    border-bottom: none;
}

.dona-hiscore-table tr:hover {
    background-color: #f9f9f9;
}

.dona-hiscore-table td {
    padding: 12px 8px;
    vertical-align: middle;
}

.dona-champion {
    background-color: #fffde7;
}

.dona-champion:hover {
    background-color: #fff9c4 !important;
}

.dona-position {
    width: 60px;
    text-align: center;
}

.dona-rank-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #555;
}

.dona-champion-badge {
    margin: 0 auto;
    display: block;
    max-width: 40px;
    height: auto;
}

.dona-user {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dona-user .dona-user-avatar {
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.dona-user .dona-user-avatar:hover {
    transform: scale(1.05);
}

.dona-user a {
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dona-user a:hover {
    color: #1abc9c;
}

.dona-score {
    text-align: right;
    width: 100px;
}

.dona-score-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    text-align: right;
    padding-right: 15px;
}

.dona-champion .dona-score-value {
    color: #ff9800;
}

.dona-actions {
    margin-top: 1.5em;
    text-align: center;
}

.dona-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.dona-button:hover {
    background-color: #135e96;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dona-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .dona-hiscore-table {
        font-size: 14px;
    }
    
    .dona-rank-number {
        font-size: 1.2em;
    }
    
    .dona-score-value {
        font-size: 1.1em;
        padding-right: 5px;
    }
    
    .dona-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .dona-position {
        width: 40px;
    }
}

/* Support for RTL languages */
.rtl .dona-score-value {
    text-align: left;
    padding-right: 0;
    padding-left: 15px;
}

.rtl .dona-user {
    flex-direction: row-reverse;
}
