@import url('/css/theme.css');

/* Profile Page Specific Styles */

.profile-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.profile-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(76, 52, 153, 0.3);
}

.avatar-edit-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-info h1 {
    color: var(--primary-light);
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-rank {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rank-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(76, 52, 153, 0.3);
}

.join-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-stats-summary {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

/* Stats Section */
.stats-section {
    margin-bottom: 2rem;
}

.stats-section h2 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.game-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.game-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.game-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.game-stat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-stat-header .game-icon {
    font-size: 2rem;
}

.game-stat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.game-stat-body {
    padding: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row.highlight {
    background: rgba(76, 52, 153, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid rgba(76, 52, 153, 0.2);
}

.stat-row.highlight span:last-child {
    color: var(--primary-light);
    font-weight: 600;
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 2rem;
}

.achievements-section h2 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.achievement-card.unlocked {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(76, 52, 153, 0.1), rgba(76, 52, 153, 0.05));
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-name {
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.achievement-placeholder {
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.achievement-placeholder span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Settings Modal */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: var(--text-primary);
    font-weight: 500;
}

.setting-item select,
.setting-item input[type="checkbox"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-light);
    color: var(--text-primary);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-stats-summary {
        justify-content: center;
    }
    
    .profile-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .game-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-row {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1.5rem;
    }
    
    .profile-stats-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
} 