
:root {
    --primary-color: #007bff;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --on-surface-color: #e0e0e0;
    --on-surface-color-muted: #a0a0a0;
    --border-color: #333;
}

#profile-container {
    width: 100%;
    max-width: 800px;
}

#profile-header {
    text-align: center;
    margin-bottom: 40px;
}

#profile-username {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

#profile-email {
    font-size: 1.1rem;
    color: var(--on-surface-color-muted);
}

#profile-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    background-color: var(--surface-color);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 1.1rem;
    color: var(--on-surface-color-muted);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 2rem;
    font-weight: 700;
}

#genre-stats {
    margin-top: 40px;
    text-align: center;
}

#genre-stats h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#recent-history h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

#history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    justify-content: center; /* Center the grid items */
    overflow-y: auto; /* Add this line */
    max-height: calc(100vh - 450px); /* Add this line */
}

.history-item {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.history-item img {
    width: 100%;
    display: block;
}

.vote-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 0;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.vote-overlay.good { background-color: rgba(40, 167, 69, 0.9); }
.vote-overlay.bad { background-color: rgba(220, 53, 69, 0.9); }

#view-all-history {
    display: block;
    width: max-content;
    margin: 30px auto 0;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--on-surface-color-muted);
}
