/* Bat Score Display Styles */
.bat-score {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Make image wrapper position relative for absolute positioning */
.quick-top-three-card .image-wrapper {
    position: relative;
}

/* Adjust grade position to not overlap with score */
.quick-top-three-card .bat-grade {
    right: 5px;
    bottom: 5px;
}

/* Add hover effect to show category breakdown */
.bat-score:hover::after {
    content: attr(data-categories);
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 10;
}

/* Add tooltip arrow */
.bat-score:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 10px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
    margin-bottom: -5px;
    z-index: 10;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bat-score {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Style for writeup sections */
.writeup-scores {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.9rem;
}

.writeup-scores .score-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.writeup-scores .score-label {
    font-weight: 600;
    color: #666;
}

.writeup-scores .score-value {
    font-weight: 700;
    color: #333;
}

.writeup-scores .score-grade {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #666;
}