/**
 * Compact Leaderboard Styles (Top 3)
 * Designed to fit on archive/list pages
 */

.wp-highscore-compact {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wp-highscore-compact-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

.wp-highscore-compact-header .highscore-icon {
    font-size: 16px;
}

.wp-highscore-compact-header .highscore-title {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-highscore-compact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compact-score-item {
    display: grid;
    grid-template-columns: 24px 50px 1fr;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.compact-score-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

/* Rank badge */
.compact-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    border-radius: 50%;
    background: #555;
    color: #fff;
}

/* Top 3 special colors */
.rank-1 .compact-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.rank-2 .compact-rank {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #000;
}

.rank-3 .compact-rank {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: #fff;
}

/* Nickname */
.compact-nickname {
    font-weight: 700;
    font-size: 14px;
    color: #FFD700;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

/* Score */
.compact-score {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    text-align: right;
}

/* Date (optional) */
.compact-date {
    font-size: 11px;
    color: #999;
    text-align: right;
}

/* With date enabled */
.compact-score-item.with-date {
    grid-template-columns: 24px 50px 1fr 70px;
}

/* Empty state */
.wp-highscore-compact-empty {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 12px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed #444;
}

/* Editor preview styles */
.wp-highscore-compact-editor {
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wp-highscore-compact-preview {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    max-width: 400px;
}

.wp-highscore-compact-preview .preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    color: #fff;
}

.wp-highscore-compact-preview .preview-icon {
    font-size: 16px;
}

.wp-highscore-compact-preview .preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wp-highscore-compact-preview .preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.wp-highscore-compact-preview .preview-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #555;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    border-radius: 50%;
}

.wp-highscore-compact-preview .preview-nick {
    font-weight: 700;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    min-width: 50px;
}

.wp-highscore-compact-preview .preview-score {
    font-weight: 600;
    color: #fff;
    margin-left: auto;
}

.wp-highscore-compact-preview .preview-date {
    font-size: 11px;
    color: #999;
}

.wp-highscore-compact-preview .preview-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    .compact-score-item {
        grid-template-columns: 20px 45px 1fr;
        gap: 6px;
        padding: 5px 6px;
    }
    
    .compact-rank {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .compact-nickname {
        font-size: 12px;
    }
    
    .compact-score {
        font-size: 12px;
    }
}
