/* Personal Best styles */
#personal-best-container {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border-left: 4px solid var(--main-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.empty-pb-message {
    text-align: center;
    padding: 2rem;
    color: #aaa;
}

.empty-pb-message i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.pb-section h3, .recent-scores-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
}

.pb-section h3::before, .pb-section h3::after,
.recent-scores-section h3::before, .recent-scores-section h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.pb-section h3::before, .recent-scores-section h3::before {
    left: calc(50% - 100px);
}

.pb-section h3::after, .recent-scores-section h3::after {
    right: calc(50% - 100px);
}

.pb-card {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pb-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    color: white;
    padding: 1.5rem;
    width: 120px;
    text-align: center;
}

.pb-score-value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.pb-score-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.3rem;
    opacity: 0.8;
}

.pb-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    flex: 1;
}

.pb-detail {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.pb-detail i {
    color: var(--main-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.recent-scores-section {
    margin-top: 2rem;
}

.recent-scores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1rem;
}

.recent-score-card {
    display: flex;
    align-items: stretch; /* Change from center to stretch to fill height */
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.recent-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(123, 108, 246, 0.2);
    color: var(--main-color);
    padding: 1rem;
    width: 80px;
    text-align: center;
    /* Add this to ensure full height */
    align-self: stretch;
}

.recent-score-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.recent-score-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
    flex: 1;
    /* Make sure the details section takes full available space */
    height: 100%;
}

.recent-score-detail {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.recent-score-detail i {
    color: var(--secondary-color);
    margin-right: 8px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pb-details {
        grid-template-columns: 1fr;
    }
    
    .recent-scores {
        grid-template-columns: 1fr;
    }
    
    .pb-score {
        width: 90px;
        padding: 1rem;
    }
    
    .pb-score-value {
        font-size: 1.8rem;
    }
}
