/* Profile Page Styles */
.profile-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.profile-header {
    background: var(--secondary);
    border-radius: var(--borderradius);
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--border-col);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.player-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--fontcolor);
    border: 3px solid var(--hover);
}

.player-info h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--hover);
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--secondary);
    border-radius: var(--borderradius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-col);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    color: var(--hover);
    font-size: 2em;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--fontcolor);
    opacity: 0.8;
}

.profile-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.section {
    background: var(--secondary);
    border-radius: var(--borderradius);
    padding: 20px;
    border: 1px solid var(--border-col);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: var(--hover);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.records-list {
    max-height: 400px;
    overflow-y: auto;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-col);
}

.record-item:last-child {
    border-bottom: none;
}

.record-map {
    font-weight: 500;
}

.record-time {
    color: var(--hover);
    font-weight: 600;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.map-card {
    background: var(--background);
    border-radius: var(--borderradius);
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid var(--border-col);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-card:hover {
    background: var(--stripe-hover);
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--hover);
}

.map-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.map-time {
    color: var(--hover);
    font-size: 0.9em;
}

.navigation-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: var(--fontcolor);
    padding: 12px 20px;
    border-radius: var(--borderradius);
    text-decoration: none;
    border: 2px solid var(--border-col);
    transition: all 0.2s;
    font-weight: 500;
}

.home-button:hover {
    background: var(--hover);
    color: white;
    border-color: var(--hover);
    transform: translateY(-2px);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hover);
    color: white;
    padding: 12px 20px;
    border-radius: var(--borderradius);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.back-button:hover {
    background: var(--fontcolor);
    color: var(--background);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .profile-sections {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .player-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
