/* Basic styles for the Player Profile page */

body {
    font-family: 'Arial', sans-serif;
    background: var(--dark-bg); /* Use theme variable for background */
    color: var(--text-light); /* Use theme variable for text color */
    min-height: 100vh;
    padding-top: 60px; /* Add padding to prevent fixed header from overlapping content */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.chess-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg); /* Use theme variable for background pattern container */
    z-index: -1;
    overflow: hidden;
    /* Subtle background pattern */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCI+CiAgPHJlY3Qgd2lkdGg9IjEwIiBoZWlnaHQ9IjEwIiBmaWxsPSJicm93biIvPgogIDxyZWN0IHdpZHRoPSI1IiBoZWlnaHQ9IjUiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz4KICA8cmVjdCB4PSI1IiB5PSI1IiB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+Cjwvc3ZnPg==');
    background-size: 10px 10px;
    opacity: 0.5; /* Reduce opacity for subtlety */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1; /* Ensure container is above background */
}

/* Header styles (reusing classes from home/how_to_play) */
header {
    text-align: center;
    padding: 2rem 0;
}

.title {
    font-size: 3.5rem; /* Increased size */
    color: var(--text-light); /* Use theme variable */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3); /* Add subtle shadow */
    margin-bottom: 1.5rem;
}

/* Theme toggle (sticky position) - reusing styles from home/how_to_play */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

/* Profile Section */
.profile-section {
    background: var(--glass-bg); /* Use theme variable */
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); /* Use theme variable */
    padding: 2rem;
    margin-top: 2rem;
    color: var(--text-dim); /* Use theme variable */
    line-height: 1.6;
}

/* User Info */
.user-info {
    margin-bottom: 2rem;
    text-align: center;
    display: flex; /* Use flexbox for centering avatar and username */
    flex-direction: column; /* Stack avatar and username vertically */
    align-items: center;
}

.avatar-placeholder {
    width: 80px; /* Avatar size */
    height: 80px;
    background-color: var(--accent-bg); /* Placeholder color */
    border-radius: 50%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem; /* Icon size if using icon */
    color: var(--text-light); /* Icon color */
}

.user-info h2 {
    color: var(--text-light); /* Use theme variable */
    font-size: 2.5rem; /* Increased size */
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Statistics Section */
.statistics-section h3 {
    color: var(--text-light); /* Use theme variable */
    margin-bottom: 2rem; /* Increased margin */
    text-align: center;
    font-size: 2rem; /* Adjusted size */
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 2rem; /* Increased gap */
}

.stat-item {
    background: var(--glass-bg); /* Use theme variable */
    border: 1px solid var(--glass-border); /* Use theme variable */
    border-radius: 10px;
    padding: 1.5rem; /* Increased padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover */
}

.stat-item:hover {
    transform: translateY(-5px); /* Hover effect */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Hover effect */
}

.stat-item .stat-icon {
    font-size: 2rem; /* Icon size */
    color: var(--primary-color); /* Use theme variable */
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 1.1rem; /* Slightly increased size */
    color: var(--text-light); /* Use theme variable */
    margin-bottom: 0.5rem;
}

.stat-item .stat-value {
    font-size: 2rem; /* Increased size */
    font-weight: bold;
    color: var(--primary-color); /* Use theme variable */
}

/* Back Button */
.back-button-container {
    margin-top: 3rem; /* Increased margin */
    text-align: center;
}

.back-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: var(--primary-color); /* Use theme variable */
    color: var(--text-light); /* Use theme variable */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline */
    /* Add icon using a pseudo-element */
    position: relative;
    padding-left: 2rem; /* Make space for the icon */
}

.back-button::before {
    content: '←'; /* Left arrow icon */
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}

.back-button:hover {
    background: var(--primary-dark); /* Use theme variable */
    transform: translateY(-2px);
}

/* Footer styles (reusing classes) */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    color: var(--text-dim); /* Use theme variable */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .title {
        font-size: 2rem;
    }

    .profile-section {
        padding: 1.5rem;
    }

    .user-info h2 {
        font-size: 1.5rem;
    }
    
    .avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .statistics-section h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .statistics-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-item .stat-icon {
        font-size: 1.5rem;
    }

    .stat-item .stat-label {
        font-size: 1rem;
    }

    .stat-item .stat-value {
        font-size: 1.5rem;
    }
    
    .back-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        padding-left: 1.8rem; /* Adjust for smaller padding */
    }

    .back-button::before {
        left: 0.6rem;
    }
} 